@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); }; $maxT = max(1, (float) $byTruck->max('total')); @endphp @if (session('trip_ok'))| {{ $r['plate'] }} | {{ $r['count'] }} مصروف | {{ $m($r['total']) }} | |
| لا توجد مصروفات |
| {{ $r['type'] }} | {{ $m($r['total']) }} | {{ $total ? round($r['total'] / $total * 100) : 0 }}% |
| لا توجد مصروفات |
| التاريخ | الشاحنة | النوع | البيان | المورد | المبلغ | مدفوع من | المرفق | سجلها | |
|---|---|---|---|---|---|---|---|---|---|
| {{ $e->expense_date->format('Y/m/d') }} | {{ optional($e->truck)->plate_number }} | {{ \App\Models\truck_expense::typeLabel($e->type) }} | {{ $e->description ?: '—' }} | {{ $e->vendor ?: '—' }} | {{ $m($e->amount) }} | @if ($e->posted){{ optional($e->payAccount)->name }}@elseبدون ترحيل@endif | @if ($e->attachment) عرض@else — @endif | {{ optional($e->user)->name }} | |
| لا توجد مصروفات في الفترة دي | |||||||||
| الإجمالي | {{ $m($total) }} | ||||||||