@extends('layouts.master') @section('title') إذن صرف تحويل رقم {{ $movement->id }} @endsection @section('content') @include('financial_years.partials.alerts') @php $fmt = fn ($v) => rtrim(rtrim(number_format((float) $v, 4, '.', ''), '0'), '.'); $open = $movement->keeper_status === 'pending_issue'; @endphp @if ($errors->has('transfer'))
{{ $errors->first('transfer') }}
@endif

إذن صرف تحويل مخزون رقم {{ $movement->id }}

@if ($open) بانتظار تأكيد الصرف — الكمية لم تُخصم بعد @else تم الصرف @endif
{{ Namear }}
{{ optional($movement->created_at)->format('Y-m-d H:i') }}
من فرع{{ $branches[$movement->branch_from] ?? '-' }}إلى فرع{{ $branches[$movement->branch_to] ?? '-' }}
المرسل{{ $movement->userfrom->name ?? '-' }}المستلم{{ $movement->userto->name ?? '-' }}
أمين المستودع{{ $movement->issuer->name ?? ($movement->keeper->name ?? '-') }}تاريخ الصرف / القيد{{ $movement->issued_at ? \Carbon\Carbon::parse($movement->issued_at)->format('Y-m-d H:i') : '-' }} @if ($movement->issue_dely_record) / {{ $movement->issue_dely_record }} @endif
@foreach ($items as $i => $it) @php $short = $open && $it->product && (float) $it->quantity > (float) $it->product->numberofpice + 0.0001; @endphp @endforeach
#كود الصنفالصنفرصيد الفرع الآنالكمية المحوّلةالسعرالإجمالي
{{ $i + 1 }} {{ $it->product->Product_Code ?? '-' }} {{ $it->product->product_name ?? '-' }} {{ $fmt($it->product->numberofpice ?? 0) }} {{ $fmt($it->quantity) }} {{ number_format((float) $it->cost_per_each_withoud_tax, 2) }} {{ number_format((float) $it->cost_per_each_withoud_tax * (float) $it->quantity, 2) }}
أمين المستودع
الناقل / المستلم
المدير
@if ($open)
@csrf
@else @endif رجوع
@endsection