@php $action = $mode == 'edit' ? route('proforma-invoices.update', $invoice->id) : route('proforma-invoices.store'); $method = $mode == 'edit' ? 'PUT' : 'POST'; @endphp