@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); }; $qs = http_build_query(['start_at' => $from, 'end_at' => $to]); @endphp @include('transport_reports._tabs')| العميل | الأحمال | قيمة الأحمال | غير مفوترة | قيمة غير المفوترة | الفواتير | المفوتر شامل الضريبة | الضريبة | رصيد الحساب الحالي | |
|---|---|---|---|---|---|---|---|---|---|
| {{ $r['name'] }} | {{ $r['trips'] }} | {{ $m($r['trips_value']) }} | @if ($r['unbilled']){{ $r['unbilled'] }}@else0@endif | {{ $m($r['unbilled_value']) }} | {{ $r['invoices'] }} | {{ $m($r['invoiced']) }} | {{ $m($r['vat']) }} | {{ $r['balance'] === null ? '—' : $m($r['balance']) }} | كشف حساب @if ($r['unbilled']) فوترة@endif |
| لا توجد بيانات في الفترة دي | |||||||||
| الإجمالي | {{ $rows->sum('trips') }} | {{ $m($rows->sum('trips_value')) }} | {{ $rows->sum('unbilled') }} | {{ $m($rows->sum('unbilled_value')) }} | {{ $rows->sum('invoices') }} | {{ $m($rows->sum('invoiced')) }} | {{ $m($rows->sum('vat')) }} | ||