@extends("WarehouseDashboard.layouts.pdf.header")
| {{__("المادة")}} | @foreach($branches as $branch){{$branch->store_name}} | @endforeach{{__('المجموع')}} | {{__('الملاحظات')}} | |
|---|---|---|---|---|
| {{$item->name}} | @foreach($branches as $key => $branch) @foreach($order_item as $o_item) @if($item->id == $o_item->id && $branch->id == $o_item->branch_id) @php $Quantity[$key]=[$o_item->quantity,$item->id] @endphp @break @endif @endforeach @endforeach @foreach($branches as $key => $branch) @if(isset($Quantity[$key][0]) && $Quantity[$key][0] != 0 && $Quantity[$key][1] == $item->id){{$Quantity[$key][0]}} | @php $total+=$Quantity[$key][0];@endphp @else0 | @endif @endforeach @php if(\App\Models\DailyCollectionOrder::whereDate("created_at",now())->where("item_id",$item->id)->exists()) { $DailyCollectionOrder = \App\Models\DailyCollectionOrder::whereDate("created_at", now())->where("item_id", $item->id)->first(); $total=$DailyCollectionOrder->new_collection; } @endphp{{$total}} |