fixing styles

This commit is contained in:
ludo
2024-01-07 20:42:37 +01:00
parent 5144c1f7fd
commit 4df8628a3e
39 changed files with 149 additions and 326 deletions

View File

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