{{-- --}}
@if ($no->status == 5) @else @endif
{{ __('Item Trans No. ') }} {{ $no->no }}
{{ __('Dari Toko : ') }} {{ $no->whs_name ?? '-' }}
{{ __('Ke Toko : ') }} {{ $no->to_whs_name ?? '-' }}
{{ __('Date : ') }} {{ $no->date }}
{{ __('Remark : ') }} {{ $no->remark }}
{{ __('Status : ') }} @switch($no->status) @case(1) Open @break @case(2) Close @break @case(3) Close With Different @break @case(4) Cancel @break @case(5) Request @break @endswitch
{{-- @if ($no->status == 5)
@endif --}}
@if ($no->status == 5 || $no->status == 4) @foreach ($details as $key => $detail) @if($no->status == 5 || $no->status == 4) @elseif ($no->status == 1) @elseif($no->status == 2 || $no->status == 3) @endif @endforeach
# {{ __('Code') }} {{ __('Barcode') }} {{ __('Name') }}{{ __('Qty Request') }} {{ __('Qty Send') }} @elseif ($no->status == 1) {{ __('Qty Send') }} {{ __('Qty Receive') }} @elseif($no->status == 2 || $no->status == 3) {{ __('Qty Send') }} {{ __('Qty Receive') }} @endif
{{ $key + 1 }} {{ $detail->code }} {{ $detail->barcode }} {{ $detail->name }}{{ number_format($detail->qty_request) }}{{ number_format($detail->qty_open) }}{{ number_format($detail->qty_open) }} @if ($no->status == 1 || $no->status == 5) @else {{ $detail->actualqty }} @endif
@if ($no->status == 5 || $no->status == 4) @elseif ($no->status == 1) @elseif($no->status == 2 || $no->status == 3) @endif @if ($no->status == 5 || $no->status == 4) @elseif ($no->status == 1) @elseif($no->status == 2 || $no->status == 3) @endif
# {{ __('Total Qty Request') }} {{ __('Total Qty Send') }}{{ __('Total Qty Send') }} {{ __('Total Qty Receive') }}{{ __('Total Qty Send') }} {{ __('Total Qty Receive') }}
Total {{ number_format($details->sum('qty_request'), 0, ',', ',') }} {{ number_format($details->sum('qty_open'), 0, ',', ',') }} {{ number_format($details->sum('qty_open'), 0, ',', ',') }} @php $totalQty = array_sum(array_map('floatval', $quantities)); @endphp {{ number_format($totalQty, 0, ',', ',') }}
{{--
--}}
{{-- --}} {{-- --}}