| Fatura Tarihi | Randevu | Hizmetler | Toplam Tutar | Ödenen | Kalan | Durum |
|---|---|---|---|---|---|---|
| {{ $payment->invoice_date ? $payment->invoice_date->format('d/m/Y') : 'N/A' }} | @if($payment->appointment) {{ $payment->appointment->title ?? 'Randevu #' . $payment->appointment->id }} @else Randevu dışı @endif |
@foreach($payment->items->unique('service_id') as $item)
• {{ $item->service->name ?? 'Hizmet' }}
@endforeach
|
@foreach($itemsByCurrency as $currency => $items)
{{ number_format($items->sum('total'), 2) }} {{ $currency }}
@endforeach
|
@foreach($itemsByCurrency as $currency => $items)
@php
$paidAmount = $paidByCurrency->get($currency)?->sum('amount') ?? 0;
@endphp
{{ number_format($paidAmount, 2) }} {{ $currency }}
@endforeach
|
@foreach($itemsByCurrency as $currency => $items)
@php
$totalAmount = $items->sum('total');
$paidAmount = $paidByCurrency->get($currency)?->sum('amount') ?? 0;
$remaining = $totalAmount - $paidAmount;
@endphp
{{ number_format($remaining, 2) }} {{ $currency }}
@endforeach
|
@php $totalGrandTotal = $payment->items->sum('total'); $totalPaid = $payment->transactions->sum('amount'); $isFullyPaid = $totalPaid >= $totalGrandTotal; $isOverdue = $payment->due_date && $payment->due_date->isPast() && !$isFullyPaid; @endphp @if($isFullyPaid) Ödendi @elseif($isOverdue) Vadesi Geçmiş @else Beklemede @endif |
{{ $overduePayments->count() }} adet vadesi geçmiş fatura bulunmaktadır.
@foreach($overdueByCurrency as $currency => $amount){{ $currency }}: {{ number_format($amount, 2) }}
@endforeachBu müşterinin henüz herhangi bir fatura veya borç kaydı yoktur.