coding style

This commit is contained in:
ludo
2024-02-22 19:35:51 +01:00
parent 7a33245c1e
commit 00fc978217
33 changed files with 54 additions and 93 deletions

View File

@@ -29,6 +29,7 @@ class InvoicesDataTable extends DataTable
})
->editColumn('customer.last_name', function (Invoice $invoice) {
$customer = $invoice->customer ?? false;
return $customer ? $customer->last_name.' '.$customer->first_name : '';
})
->rawColumns(['action']);