update sorting and composer

This commit is contained in:
Russ Long 2022-09-26 19:12:15 -04:00
parent 1629e22b63
commit ef96dc7cd8
8 changed files with 575 additions and 478 deletions

View File

@ -63,7 +63,8 @@ class BiddersResource extends Resource
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
])
->defaultSort('bidder_assigned_number');
}
public static function getRelations(): array

View File

@ -50,7 +50,8 @@ class CarShowCategoryResource extends Resource
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
])
->defaultSort('category_name');
}
public static function getRelations(): array

View File

@ -56,7 +56,8 @@ class CheckoutResource extends Resource
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
])
->defaultSort('bidders.bidder_assigned_number');
}
public static function getRelations(): array

View File

@ -59,7 +59,8 @@ class ItemsResource extends Resource
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
])
->defaultSort('item_assigned_num');
}
public static function getRelations(): array

View File

@ -44,7 +44,7 @@ class VehiclesResource extends Resource
->label('Model'),
Select::make('type')
->label('Type')
->options(CarShowCategory::orderBy('category_name')->vehtype()->pluck('category_name', 'id'))
->options(CarShowCategory::vehtype()->pluck('category_name', 'id'))
->searchable(),
]);
}
@ -90,7 +90,8 @@ class VehiclesResource extends Resource
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
])
->defaultSort('vehicleOwner.bidder_assigned_number');
}
public static function getRelations(): array

View File

@ -52,8 +52,11 @@ class WinningBidsResource extends Resource
return $table
->columns([
TextColumn::make('items.item_assigned_num')
->label('Item Number')
->label('Item')
->sortable(),
TextColumn::make('items.item_desc')
->label('Item Description')
->limit(15),
TextColumn::make('bidders.bidder_assigned_number')
->label('Bidder Number')
->sortable(),
@ -70,7 +73,8 @@ class WinningBidsResource extends Resource
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
])
->defaultSort('items.item_assigned_num');
}
public static function getRelations(): array

View File

@ -34,6 +34,6 @@ class CarShowCategory extends Model
public function scopeVehtype($query)
{
return $query->where('vehicle_type', 1);
return $query->where('vehicle_type', 1)->orderBy('category_name');
}
}

1024
composer.lock generated

File diff suppressed because it is too large Load Diff