@extends('layouts.master') @section('css') @include('transport_reports._style') @endsection @section('title') كشف حساب {{ $account->name }} @stop @section('page-header') @endsection @section('content') @php $lp = Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale(); $m = function ($v) { return number_format((float) $v, 2); }; $opts = ''; foreach ($customers as $c) $opts .= ''; $extra = '
'; @endphp @include('transport_reports._tabs')

{{ defined('Namear') ? Namear : '' }}

كشف حساب {{ $account->name }} ({{ $account->account_number }}) من {{ $from }} إلى {{ $to }}
@include('transport_reports._filter', ['extra' => $extra])
رصيد أول المدة{{ $m($opening) }}
مدين (فواتير){{ $m($totals['debit']) }}
دائن (تحصيل / إلغاء){{ $m($totals['credit']) }}
الرصيد آخر المدة{{ $m($totals['closing']) }} ر.س
أحمال غير مفوترة{{ $unbilled->count() }} ({{ $m($unbilled->sum('price')) }})
حركة الحساب
@forelse ($lines as $l) @empty @endforelse
التاريخالبيانمديندائنالرصيد
{{ $from }}رصيد أول المدة{{ $m($opening) }}
{{ \Carbon\Carbon::parse($l['date'])->format('Y/m/d') }} {{ $l['note'] }} {{ $l['debit'] ? $m($l['debit']) : '' }} {{ $l['credit'] ? $m($l['credit']) : '' }} {{ $m($l['balance']) }}
لا توجد حركات في الفترة دي
الإجمالي{{ $m($totals['debit']) }}{{ $m($totals['credit']) }}{{ $m($totals['closing']) }}
فواتير النقل في الفترة
@forelse ($invoices as $inv) @empty @endforelse
رقمالتاريخالضريبةالإجماليالحالة
#{{ $inv->invoice_no }}{{ $inv->issue_date->format('Y/m/d') }}{{ $m($inv->vat_amount) }}{{ $m($inv->total) }} @if ($inv->is_cancelled)ملغاة@elseسارية@endif
لا توجد فواتير
أحمال لسه ما اتفوترتش (كل الفترات)
@forelse ($unbilled as $t) @empty @endforelse
التاريخاللوحةالمسارالسعر
{{ optional($t->loading_at)->format('Y/m/d') }}{{ optional($t->truck)->plate_number }}{{ $t->from_region }} ← {{ $t->to_region }}{{ $m($t->price) }}
كل الأحمال متفوترة
@endsection