update sorting and composer
This commit is contained in:
parent
1629e22b63
commit
ef96dc7cd8
@ -63,7 +63,8 @@ class BiddersResource extends Resource
|
||||
])
|
||||
->bulkActions([
|
||||
Tables\Actions\DeleteBulkAction::make(),
|
||||
]);
|
||||
])
|
||||
->defaultSort('bidder_assigned_number');
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
|
@ -50,7 +50,8 @@ class CarShowCategoryResource extends Resource
|
||||
])
|
||||
->bulkActions([
|
||||
Tables\Actions\DeleteBulkAction::make(),
|
||||
]);
|
||||
])
|
||||
->defaultSort('category_name');
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
|
@ -56,7 +56,8 @@ class CheckoutResource extends Resource
|
||||
])
|
||||
->bulkActions([
|
||||
Tables\Actions\DeleteBulkAction::make(),
|
||||
]);
|
||||
])
|
||||
->defaultSort('bidders.bidder_assigned_number');
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
|
@ -59,7 +59,8 @@ class ItemsResource extends Resource
|
||||
])
|
||||
->bulkActions([
|
||||
Tables\Actions\DeleteBulkAction::make(),
|
||||
]);
|
||||
])
|
||||
->defaultSort('item_assigned_num');
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
|
@ -44,8 +44,8 @@ class VehiclesResource extends Resource
|
||||
->label('Model'),
|
||||
Select::make('type')
|
||||
->label('Type')
|
||||
->options(CarShowCategory::orderBy('category_name')->vehtype()->pluck('category_name', 'id'))
|
||||
->searchable(),
|
||||
->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
|
||||
|
@ -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
|
||||
|
@ -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
1024
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user