@include('waybills._style') @php $fmt = function ($d) { if (!$d) return ''; try { return \Carbon\Carbon::parse($d)->format('Y/m/d'); } catch (\Throwable $e) { return $d; } }; $items = $waybill->items; $rows = max(7, $items->count()); $num = function ($n) { return $n ? rtrim(rtrim(number_format($n, 2, '.', ','), '0'), '.') : ''; }; @endphp
تعديل البوليصات السابقة بوليصة جديدة
@include('waybills._header', [ 'company' => $company, 'noHtml' => e($waybill->waybill_no), 'hijri' => $waybill->date_hijri, 'greg' => $fmt($waybill->date), ])
{{ $waybill->customer_name }} المحترم
{{ $waybill->destination_city }}
{{ $waybill->driver_name }}
{{ $waybill->driver_license_number }}
{{ $waybill->owner_name }}
{{ $waybill->driver_license_issue_date }}
{{ $waybill->plate_number }}
{{ $waybill->plate_region }}
{{ $waybill->operation_license_number }}
{{ $waybill->truck_type }}
{{ $waybill->operation_license_issuer }}
{{ $waybill->total_load }}
@for ($i = 0; $i < $rows; $i++) @php $it = $items[$i] ?? null; @endphp @endfor @if ($waybill->total_fare > 0) @endif
م الراسل اسم المرسل إليه نوع البضاعة وزن البضاعة
الاسمالأجرة
{{ $it ? $i + 1 : '' }} {{ $it->sender_name ?? '' }} {{ $it ? $num($it->fare) : '' }} {{ $it->receiver_name ?? '' }} {{ $it->goods_type ?? '' }} {{ $it->goods_weight ?? '' }}
الإجمالي{{ $num($waybill->total_fare) }}
تاريخ المغادرة : {{ $fmt($waybill->departure_date) }}
توقيع المسؤول
يجب تشريع البضاعة للمحافظة عليها
{{ $waybill->fare_paid_by }}
{{ $waybill->delivery_within }}
ملاحظة : أي نقصان أو تلف وأي تعطيل مسؤولية السائق
@if ($waybill->notes)
{{ $waybill->notes }}
@endif
@include('waybills._footer', ['company' => $company])
@if (request('auto')) @endif