code cleanup

This commit is contained in:
Russ Long 2022-08-14 11:32:00 -04:00
parent 0991c4b5eb
commit cf8cf1a00c

View File

@ -37,14 +37,34 @@ class VehiclesResource extends Resource
{ {
return $table return $table
->columns([ ->columns([
TextColumn::make('owner')->label('Number')->sortable(), TextColumn::make('owner')
TextColumn::make('year')->label('Year')->sortable(), ->label('Number')
TextColumn::make('make')->label('Make')->sortable(), ->sortable(),
TextColumn::make('model')->label('Model')->sortable(), TextColumn::make('year')
TextColumn::make('vehicleType.category_name')->label('Type')->sortable(), ->label('Year')
BooleanColumn::make('doNotJudge')->label('Judged?')->sortable()->falseIcon('heroicon-o-badge-check')->trueIcon('heroicon-o-x-circle')->trueColor('danger')->falseColor('success'), ->sortable(),
TextColumn::make('vehicleOwner.bidder_fname')->label('First Name')->sortable(), TextColumn::make('make')
TextColumn::make('vehicleOwner.bidder_lname')->label('Last Name')->sortable(), ->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([ ->filters([
// //