@extends('layouts.master') @section('css') @endsection @section('title') تقرير الأحمال @stop @section('page-header')
@endsection @section('content') @php $lp = Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale(); $fmt = function ($d) { return $d ? $d->format('Y/m/d h:i A') : '—'; }; $maxRoute = max(1, (int) $routes->max('count')); $maxType = max(1, (int) $types->max('count')); @endphp| التاريخ | اسم السائق | رقم اللوحة | ايجار خارجي / خاص | من | الى | رقم الفاتورة | مرجع | السعر | اسم الشركة | المرفق | نوع التحميل | التنزيل المتوقع | التنزيل الفعلي | الحالة | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $fmt($tr->loading_at) }} | {{ $tr->driver_name ?: '—' }}@if (optional($tr->driver)->phone) {{ $tr->driver->phone }}@endif |
{{ optional($tr->truck)->plate_number }} | {{ \App\Models\truck_trip::ownershipLabel($tr->ownership) }} | {{ $tr->from_region }}{{ $tr->from_city ? ' - ' . $tr->from_city : '' }} | {{ $tr->to_region }}{{ $tr->to_city ? ' - ' . $tr->to_city : '' }} | {{ $tr->invoice_number ?: '—' }} | {{ $tr->reference_no ?: '—' }} | {{ $tr->price > 0 ? number_format($tr->price, 2) : '—' }} | {{ $tr->customer_name ?: '—' }} | @if ($tr->attachment) الحمولة@endif
@if ($tr->unload_attachment)@if ($tr->attachment) @endif التفريغ@endif @if (!$tr->attachment && !$tr->unload_attachment) — @endif |
{{ $tr->load_type }}{{ $tr->load_weight ? ' (' . $tr->load_weight . ')' : '' }} | {{ $fmt($tr->expected_unloading_at) }} | {{ $fmt($tr->unloaded_at) }} | @if ($tr->status == 1) @if ($tr->is_overdue) محمّلة - متأخرة @else محمّلة@endif @elseif ($late) اتفرغت متأخر @else تم التفريغ@endif | @if ($tr->status == 1) @endif |
| لا توجد أحمال في الفترة دي | |||||||||||||||