@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'))
{{ $errors->first('transfer') }}
@endif

سند استلام تحويل مخزون رقم {{ $receipt->id }}

@if ($open) بانتظار تأكيد الاستلام — الكمية لم تدخل المخزن بعد @else تم الاستلام @endif
{{ Namear }}
{{ $receipt->created_at->format('Y-m-d H:i') }}
رقم التحويل{{ $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
@foreach (($p['product_code'] ?? []) as $i => $code) @endforeach
#كود الصنفالصنفرصيد الفرع الآنالكمية المستلمةالسعرالإجمالي
{{ $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) }}
أمين المستودع
الناقل / المسلِّم
المدير
@if ($open)
@csrf
@else @endif رجوع
@endsection