@extends("WarehouseDashboard.layouts.dashboard.app") @section("page-nav-title")
| {{__("المادة")}} | @foreach($branches as $branch){{$branch->store_name}} | @endforeach{{__('المجموع')}} | {{__('الملاحظات')}} | @if(hasWarehousePermissions("daily_document_edit")){{__('control')}} | @endif|
|---|---|---|---|---|---|
| {{$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 @php $total_Daily=\App\Models\DailyCollectionOrder::whereDate("created_at",now())->where("item_id",$item->id); if($total_Daily->exists()){ $total_new= $total_Daily->first()->new_collection; } @endphp @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 @else@endif @endforeach @if(isset($total_new)) | *{{$total_new}} | @else{{$total}} | @endif