@if(App::isLocale('ar')) @else @endif
{{__('messages.Return to the main page')}}

{{__('messages.Al-Naam Company')}} {{__('messages.Food marketing')}}

Your Image

ALNAAM CO. FOR MARKTING FOOD STUF

{{__('messages.sales bill')}}

{{__('messages.Gentlemen')}}\ {{ $data->customer->name }}

{{__('messages.Date:')}} {{ $data->date_time }}
{{__('messages.Serial number')}}: {{ $data->serial_number}}
@php $totalQuantity = 0; $totalWeight = 0; $checkNot1 = 0; $total = 0; @endphp @foreach($data->salesItems as $index => $item) @php // Increment the total quantity $totalQuantity += $item->meat_weight ?? $item->meat_weight ? 0 : $item->quantity; $totalWeight += $item->meat_weight; $total += $item->unit_price * ($item->item->isMeat() ? $item->meat_weight : $item->quantity ); @endphp @endforeach
ت {{__('messages.Item')}} {{__('messages.Unit')}} {{ __('messages.weight') }} {{__('messages.Quantity')}} {{__('messages.price')}} {{__('Total')}}
{{ $index + 1}} {{ $item->item->name }} {{ $item->item->unit_type }} {{ $item->meat_weight ?? 0}} {{$item->meat_weight ?? $item->meat_weight ? 0 : $item->quantity}} {{ $item->unit_price }} {{ $item->unit_price * ($item->item->isMeat() ? $item->meat_weight : $item->quantity ) }}
{{__('messages.Total alajmaliu')}} {{$totalWeight}} {{$totalQuantity}} {{$total}}
{{__('messages.Preparation')}}
\ {{ $data->user->name }}
@if($data->note) {{__('messages.note')}} 1: @endif
@if($data->note) {{ $data->note }} @php $checkNot1 = 1; @endphp @else @endif
{{__('messages.note')}} @if ($checkNot1 == 1) 2 @elseif ($checkNot1 == 0) 1 @endif
{{__('messages.The maximum date for receiving all the quantities attached to the invoice is')}} {{ $data->max_receiving_date }} {{__('messages.After this date, the company is not responsible for any damage that may occur to the goods')}}
@php $mrginTop = 0; $calc = 0; $cuntItem = 0 ; $cuntItem = count($data->salesItems) - 1 ; $calc = 29.2 * $cuntItem ; $mrginTop = 250 - $calc ; @endphp