@extends('layouts.master') @section('title') سند استلام تحويل رقم {{ $receipt->id }} @endsection @section('content') @include('financial_years.partials.alerts') @php $fmt = fn ($v) => rtrim(rtrim(number_format((float) $v, 4, '.', ''), '0'), '.'); $open = $receipt->status === 'pending'; $p = $receipt->payload; @endphp @if ($errors->has('transfer'))
| رقم التحويل | {{ $receipt->movement_id }} | من فرع | {{ $branches[$receipt->movement->branch_from ?? 0] ?? '-' }} |
|---|---|---|---|
| الفرع المستلم | {{ $branches[$receipt->branch_id] ?? '-' }} | المرسل | {{ $receipt->movement->userfrom->name ?? '-' }} |
| سجّل الاستلام | {{ $receipt->requester->name ?? '-' }} | أمين المستودع | {{ $receipt->receiver->name ?? ($receipt->keeper->name ?? '-') }} @if ($receipt->received_at) — {{ $receipt->received_at->format('Y-m-d H:i') }} @endif |
| # | كود الصنف | الصنف | رصيد الفرع الآن | الكمية المستلمة | السعر | الإجمالي |
|---|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $code }} | {{ $p['product_name'][$i] ?? '-' }}@if (!isset($stock[$code])) صنف جديد في الفرع@endif | {{ $fmt($stock[$code] ?? 0) }} | {{ $fmt($p['quantity'][$i] ?? 0) }} | {{ number_format((float) ($p['cost'][$i] ?? 0), 2) }} | {{ number_format((float) ($p['cost'][$i] ?? 0) * (float) ($p['quantity'][$i] ?? 0), 2) }} |