Updated navigation list order and import, export button color and navigation label
This commit is contained in:
@@ -36,8 +36,11 @@ class PalletValidationResource extends Resource
|
||||
protected static ?string $model = PalletValidation::class;
|
||||
|
||||
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
|
||||
|
||||
protected static ?string $navigationGroup = 'Export Dispatch';
|
||||
|
||||
protected static ?int $navigationSort = 1;
|
||||
|
||||
public static function form(Form $form): Form
|
||||
{
|
||||
|
||||
@@ -526,11 +529,15 @@ class PalletValidationResource extends Resource
|
||||
}),
|
||||
ImportAction::make()
|
||||
->importer(PalletValidationImporter::class)
|
||||
->label('Import Pallet')
|
||||
->color('warning')
|
||||
->visible(function() {
|
||||
return Filament::auth()->user()->can('view import pallet validation');
|
||||
}),
|
||||
ExportAction::make()
|
||||
->exporter(PalletValidationExporter::class)
|
||||
->label('Export Pallet')
|
||||
->color('warning')
|
||||
->visible(function() {
|
||||
return Filament::auth()->user()->can('view export pallet validation');
|
||||
}),
|
||||
@@ -544,6 +551,11 @@ class PalletValidationResource extends Resource
|
||||
];
|
||||
}
|
||||
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
return 'Scan Pallet';
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user