@extends('layouts.master') @section('css') @include('transport_reports._style') @endsection @section('title') سجل صيانة الشاحنات @stop @section('page-header')
@endsection @section('content') @php $lp = Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale(); $m = function ($v) { return number_format((float) $v, 2); }; $fmt = function ($d) { return $d ? $d->format('Y/m/d h:i A') : '—'; }; @endphp @if (session('trip_ok'))| الشاحنة | السبب | الورشة | العداد | الدخول | الخروج | المدة | التكلفة | الحالة | سجلها | |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ optional($r->truck)->plate_number }} | {{ $r->reason }}@if ($r->notes) {{ $r->notes }} @endif
@if ($r->end_notes) {{ $r->end_notes }} @endif |
{{ $r->workshop ?: '—' }} | {{ $r->odometer ?: '—' }} | {{ $fmt($r->started_at) }} | @if ($r->ended_at) {{ $fmt($r->ended_at) }} @elseif ($r->expected_end_at) متوقع: {{ $fmt($r->expected_end_at) }} @else — @endif | {{ $r->days }} يوم | {{ $r->ended_at ? $m($r->cost) : '—' }}
@if ($r->truck_expense_id) {{ optional($r->expense)->posted ? 'مترحّل' : 'مصروف بدون ترحيل' }} @endif |
@if (!$r->ended_at) {{ $r->is_overdue ? 'متأخرة في الورشة' : 'في الصيانة' }} @else خرجت @endif | {{ optional($r->user)->name }}@if ($r->endedBy) خروج: {{ $r->endedBy->name }}@endif |
@if (!$r->ended_at) @endif |
| مفيش صيانة متسجلة في الفترة دي | ||||||||||
| الإجمالي | {{ $m($total) }} | |||||||||