@forelse($contracts as $contract)
Contract with {{ $contract->supplier->name ?? 'N/A' }} ({{ $contract->status }})

Value: {{ $procurement->currency }} {{ number_format($contract->value, 2) }}

Signed Date: {{ $contract->signed_at ? $contract->signed_at->format('d M Y') : 'Not Signed' }}

Invoices
@forelse($contract->invoices as $invoice) @empty @endforelse
Invoice # Amount Status Due Date Paid At
{{ $invoice->invoice_number }} {{ $procurement->currency }} {{ number_format($invoice->amount, 2) }} {{ $invoice->status }} {{ $invoice->due_date->format('d M Y') }} {{ $invoice->paid_at ? $invoice->paid_at->format('d M Y') : 'N/A' }}
No invoices for this contract.
Deliveries
@forelse($contract->deliveries as $delivery) @empty @endforelse
Item Quantity Status Delivered At
{{ $delivery->item_description }} {{ $delivery->quantity }} {{ $delivery->status }} {{ $delivery->delivered_at ? $delivery->delivered_at->format('d M Y') : 'N/A' }}
No deliveries for this contract.
@empty

No contracts found for this procurement.

@endforelse