@php /* |-------------------------------------------------------------------------- | Number formatting helper || دالة تنسيق الأرقام |-------------------------------------------------------------------------- | $fmt(1234567.5) => "1,234,567.500" | $fmt(1200) => "1,200" (لا يضيف كسوراً لرقم صحيح) | $fmt(1234.5, 3) => "1,234.500" (عدد خانات محدد) | | تُعيد القيمة كما هي إن لم تكن رقمية (نص / فارغ / null). */ $fmt = function ($value, $decimals = null) { if ($value === null || $value === '') { return ''; } if (!is_numeric($value)) { return $value; } $value = (float) $value; if ($decimals === null) { $decimals = (floor($value) == $value) ? 0 : 3; } return number_format($value, $decimals); }; @endphp {{__('messages.sales bill')}} @if(App::isLocale('ar')) @else @endif
{{__('messages.Return to the main page')}}

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

ALNAAM CO. FOR MARKTING FOOD STUF

Your Image

{{__('messages.offer price')}}

{{ \Carbon\Carbon::parse($data->date_time)->year }} - ({{ $data->id}})

{{__('messages.Gentlemen')}}\ @php $customerCount = $uniqueCustomers->count(); @endphp @foreach($uniqueCustomers as $key => $customer) {{$customer->name}} @if($key < $customerCount - 1) , @endif @endforeach

{{__('messages.Serial number')}}: {{ $data->serial_number}}
{{__('messages.Date:')}} {{ $data->date_time }}
@php $totalQuantity = 0; $totalWeight = 0; @endphp @foreach($data->OfferSaleItemsPrice as $index => $item) @php $meatWeight = (float) ($item->meat_weight ?? 0); // الكمية تُعرض فقط للأصناف التي ليس لها وزن (اللحوم تُحسب بالوزن) $rowQuantity = $meatWeight ? 0 : (float) ($item->quantity ?? 0); $TotalAlajmaliu = ($item->meat_weight != null) ? ($meatWeight * (float) $item->unit_price) : ((float) $item->quantity * (float) $item->unit_price); @endphp @php // Increment the totals $totalQuantity += $rowQuantity; $totalWeight += $meatWeight; @endphp @endforeach
ت {{__('messages.Item')}} {{__('messages.Unit')}} {{ __('messages.weight') }} {{__('messages.Quantity')}} {{__('messages.price')}} {{__('messages.Total alajmaliu')}}
{{ $index + 1}} {{ $item->item->name }} {{ $item->item->unit_type }} {{ $fmt($meatWeight) }} {{ $fmt($rowQuantity) }} {{ $fmt($item->unit_price, 3) }} {{ $fmt($TotalAlajmaliu, 3) }}
{{__('messages.Total alajmaliu')}} {{ $fmt($totalWeight) }} {{ $fmt($totalQuantity) }} {{ $fmt($data->total_price, 3) }}
{{-- القيمة خام (بدون فواصل) لأن سكربت تحويل المبلغ إلى كلمات يقرأها --}}
{{__('messages.Preparation')}}
\ {{ $data->user->name }}
مصرف التجاري الوطني
\ 115012005716010
مصرف الوحدة
\ 115019978470013
مصرف التجارة والتنمية
\ 0012.774093.001
{{__('messages.The companys website')}}
\ مقر الشركة الرئيسي بوهادي بجانب بوابة الصاروخ بنغازي ليبيا
{{__('messages.sales')}}
: 0930320000
{{__('messages.sales')}}
: 0930340000
{{__('messages.email')}}
: info@neamFood.com
فيس بوك
: neamfood