Updated navigation list order and import, export button color and navigation label

This commit is contained in:
dhanabalan
2025-07-08 18:59:23 +05:30
parent 0f6b62b47a
commit 3818fa612e
4 changed files with 38 additions and 5 deletions

View File

@@ -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 [