From cf8cf1a00cf92b567f5eb5597905fbe5be9fd635 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sun, 14 Aug 2022 11:32:00 -0400 Subject: [PATCH] code cleanup --- app/Filament/Resources/VehiclesResource.php | 36 ++++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/app/Filament/Resources/VehiclesResource.php b/app/Filament/Resources/VehiclesResource.php index 466965c..d454464 100644 --- a/app/Filament/Resources/VehiclesResource.php +++ b/app/Filament/Resources/VehiclesResource.php @@ -37,14 +37,34 @@ class VehiclesResource extends Resource { return $table ->columns([ - TextColumn::make('owner')->label('Number')->sortable(), - TextColumn::make('year')->label('Year')->sortable(), - TextColumn::make('make')->label('Make')->sortable(), - TextColumn::make('model')->label('Model')->sortable(), - TextColumn::make('vehicleType.category_name')->label('Type')->sortable(), - BooleanColumn::make('doNotJudge')->label('Judged?')->sortable()->falseIcon('heroicon-o-badge-check')->trueIcon('heroicon-o-x-circle')->trueColor('danger')->falseColor('success'), - TextColumn::make('vehicleOwner.bidder_fname')->label('First Name')->sortable(), - TextColumn::make('vehicleOwner.bidder_lname')->label('Last Name')->sortable(), + TextColumn::make('owner') + ->label('Number') + ->sortable(), + TextColumn::make('year') + ->label('Year') + ->sortable(), + TextColumn::make('make') + ->label('Make') + ->sortable(), + TextColumn::make('model') + ->label('Model') + ->sortable(), + TextColumn::make('vehicleType.category_name') + ->label('Type') + ->sortable(), + BooleanColumn::make('doNotJudge') + ->label('Judged?') + ->sortable() + ->falseIcon('heroicon-o-badge-check') + ->trueIcon('heroicon-o-x-circle') + ->trueColor('danger') + ->falseColor('success'), + TextColumn::make('vehicleOwner.bidder_fname') + ->label('First Name') + ->sortable(), + TextColumn::make('vehicleOwner.bidder_lname') + ->label('Last Name') + ->sortable(), ]) ->filters([ //