update sorting and composer
This commit is contained in:
parent
1629e22b63
commit
ef96dc7cd8
@ -63,7 +63,8 @@ class BiddersResource extends Resource
|
|||||||
])
|
])
|
||||||
->bulkActions([
|
->bulkActions([
|
||||||
Tables\Actions\DeleteBulkAction::make(),
|
Tables\Actions\DeleteBulkAction::make(),
|
||||||
]);
|
])
|
||||||
|
->defaultSort('bidder_assigned_number');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getRelations(): array
|
public static function getRelations(): array
|
||||||
|
@ -50,7 +50,8 @@ class CarShowCategoryResource extends Resource
|
|||||||
])
|
])
|
||||||
->bulkActions([
|
->bulkActions([
|
||||||
Tables\Actions\DeleteBulkAction::make(),
|
Tables\Actions\DeleteBulkAction::make(),
|
||||||
]);
|
])
|
||||||
|
->defaultSort('category_name');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getRelations(): array
|
public static function getRelations(): array
|
||||||
|
@ -56,7 +56,8 @@ class CheckoutResource extends Resource
|
|||||||
])
|
])
|
||||||
->bulkActions([
|
->bulkActions([
|
||||||
Tables\Actions\DeleteBulkAction::make(),
|
Tables\Actions\DeleteBulkAction::make(),
|
||||||
]);
|
])
|
||||||
|
->defaultSort('bidders.bidder_assigned_number');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getRelations(): array
|
public static function getRelations(): array
|
||||||
|
@ -59,7 +59,8 @@ class ItemsResource extends Resource
|
|||||||
])
|
])
|
||||||
->bulkActions([
|
->bulkActions([
|
||||||
Tables\Actions\DeleteBulkAction::make(),
|
Tables\Actions\DeleteBulkAction::make(),
|
||||||
]);
|
])
|
||||||
|
->defaultSort('item_assigned_num');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getRelations(): array
|
public static function getRelations(): array
|
||||||
|
@ -44,8 +44,8 @@ class VehiclesResource extends Resource
|
|||||||
->label('Model'),
|
->label('Model'),
|
||||||
Select::make('type')
|
Select::make('type')
|
||||||
->label('Type')
|
->label('Type')
|
||||||
->options(CarShowCategory::orderBy('category_name')->vehtype()->pluck('category_name', 'id'))
|
->options(CarShowCategory::vehtype()->pluck('category_name', 'id'))
|
||||||
->searchable(),
|
->searchable(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,7 +90,8 @@ class VehiclesResource extends Resource
|
|||||||
])
|
])
|
||||||
->bulkActions([
|
->bulkActions([
|
||||||
Tables\Actions\DeleteBulkAction::make(),
|
Tables\Actions\DeleteBulkAction::make(),
|
||||||
]);
|
])
|
||||||
|
->defaultSort('vehicleOwner.bidder_assigned_number');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getRelations(): array
|
public static function getRelations(): array
|
||||||
|
@ -52,8 +52,11 @@ class WinningBidsResource extends Resource
|
|||||||
return $table
|
return $table
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('items.item_assigned_num')
|
TextColumn::make('items.item_assigned_num')
|
||||||
->label('Item Number')
|
->label('Item')
|
||||||
->sortable(),
|
->sortable(),
|
||||||
|
TextColumn::make('items.item_desc')
|
||||||
|
->label('Item Description')
|
||||||
|
->limit(15),
|
||||||
TextColumn::make('bidders.bidder_assigned_number')
|
TextColumn::make('bidders.bidder_assigned_number')
|
||||||
->label('Bidder Number')
|
->label('Bidder Number')
|
||||||
->sortable(),
|
->sortable(),
|
||||||
@ -70,7 +73,8 @@ class WinningBidsResource extends Resource
|
|||||||
])
|
])
|
||||||
->bulkActions([
|
->bulkActions([
|
||||||
Tables\Actions\DeleteBulkAction::make(),
|
Tables\Actions\DeleteBulkAction::make(),
|
||||||
]);
|
])
|
||||||
|
->defaultSort('items.item_assigned_num');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getRelations(): array
|
public static function getRelations(): array
|
||||||
|
@ -34,6 +34,6 @@ class CarShowCategory extends Model
|
|||||||
|
|
||||||
public function scopeVehtype($query)
|
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