@extends('layouts.app') @section('title', 'الفواتير') @section('content')

الفواتير

إجمالي المدفوع

{{ number_format($totalPaid / 100, 2) }} SAR

مستحقات معلقة

{{ number_format($totalPending / 100, 2) }} SAR

@forelse($invoices as $inv) @empty @endforelse
رقم الفاتورة العميل المبلغ الضريبة الإجمالي الحالة التاريخ
{{ $inv->invoice_number }} {{ $inv->tenant_name }} {{ number_format($inv->subtotal / 100, 2) }} {{ number_format($inv->vat_amount / 100, 2) }} {{ number_format($inv->total / 100, 2) }} SAR @php $invColors = ['paid'=>'success','sent'=>'info','overdue'=>'danger','draft'=>'secondary','cancelled'=>'dark']; @endphp @php $invLabels = ['paid'=>'مدفوعة','sent'=>'مرسلة','overdue'=>'متأخرة','draft'=>'مسودة','cancelled'=>'ملغاة']; @endphp {{ $invLabels[$inv->status] ?? $inv->status }} {{ $inv->issue_date }}
لا توجد فواتير
@if($invoices->hasPages()) @endif
@endsection