{{ __('invoice_page.invoice_details') }}
@include('layouts.partials.flash')
{{ __('invoice_page.invoice_information') }}
| {{ __('invoice_page.invoice_number') }} |
{{ $invoice->invoice_number }} |
| Status |
@if($invoice->status === 'paid')
Paid
@elseif($invoice->status === 'overdue')
Overdue
@else
Unpaid
@endif
|
| {{ __('invoice_page.invoice_date') }} |
{{ $invoice->formatted_invoice_date }} |
| {{ __('invoice_page.due_date') }} |
{{ $invoice->formatted_due_date }} |
| {{ __('invoice_page.total_amount') }} |
Rp. {{ number_format($invoice->total_amount, 0, ',', '.') }} |
| {{ __('invoice_page.total_paid') }} |
Rp. {{ number_format($invoice->payments->sum('amount'), 0, ',', '.') }} |
| Remaining Balance |
Rp. {{ number_format($invoice->total_amount - $invoice->payments->sum('amount'), 0, ',', '.') }} |
{{ __('invoice_page.customer_information') }}
| Name |
{{ $invoice->customer->name ?? $invoice->customer->full_name ?? 'N/A' }} |
| Email |
{{ $invoice->customer->email ?? 'N/A' }} |
| Phone |
{{ $invoice->customer->phone ?? 'N/A' }} |
| {{ __('profile_page.address') }} |
{{ $invoice->customer->address ?? 'N/A' }} |
{{ __('shipment_page.shipment_information') }}
| Tracking Number |
{{ $invoice->shipment->tracking_number ?? $invoice->shipment->resi_number ?? 'N/A' }} |
| Status |
{{ $invoice->shipment->status ? ucfirst($invoice->shipment->status) : 'N/A' }} |
| Rate Plan |
{{ $invoice->shipment->ratePlan->name ?? 'N/A' }} |
| Total Charge |
Rp. {{ number_format($invoice->shipment->total_charge ?? 0, 0, ',', '.') }} |
| Date Received |
{{ $invoice->shipment->date_received ? \Carbon\Carbon::parse($invoice->shipment->date_received)->format('d-m-Y') : 'N/A' }} |
{{ __('invoice_page.payment_history') }}
| Date |
{{ __('dashboard_page.amount') }} |
{{ __('invoice_page.method') }} |
Reference Number |
@if($invoice->payments->count() > 0)
@foreach($invoice->payments as $payment)
| {{ $payment->formatted_payment_date }} |
Rp. {{ number_format($payment->amount, 0, ',', '.') }} |
{{ $payment->method }} |
{{ $payment->reference_number ?? '-' }} |
@endforeach
@else
| No payment records found |
@endif