@extends('layouts.invoices') @section('content')
Total Amount:
Paid Amount:
Status: {{ ucfirst($invoice->status) }}
Issue Date: {{ $invoice->invoice_date ? $invoice->invoice_date->format('d M Y') : 'N/A' }}
Due Date: {{ $invoice->due_date ? $invoice->due_date->format('d M Y') : 'N/A' }}
@if($invoice->payment_date)Last Payment: {{ $invoice->payment_date->format('d M Y') }}
@endif
{{ $invoice->client_name }}
{{ $invoice->client_city }}, {{ $invoice->client_country }}
{{ $invoice->client_email }}
{{ $invoice->client_phone }}
| # | Name | Passport | Stamping Fee | Arrival Fee | Total |
|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $worker['worker_name'] }} | {{ $worker['passport_number'] }} | {{ number_format($stampingFee, 2) }} | {{ number_format($arrivalFee, 2) }} | {{ number_format($workerTotal, 2) }} |
| Subtotals: | {{ number_format($totalStampingFee, 2) }} | {{ number_format($totalArrivalFee, 2) }} | {{ number_format($totalStampingFee + $totalArrivalFee, 2) }} | ||
| Grand Total: | {{ number_format($totalStampingFee + $totalArrivalFee, 2) }} | ||||
| Date | Amount | Method | Notes |
|---|---|---|---|
| {{ $payment->payment_date->format('d M Y') }} | ${{ number_format($payment->amount, 2) }} | {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }} | {{ $payment->payment_notes }} |