Updated navigation list order and import, export button color and navigation label
This commit is contained in:
@@ -43,6 +43,8 @@ class LocatorInvoiceValidationResource extends Resource
|
||||
|
||||
protected static ?string $navigationGroup = 'Export Dispatch';
|
||||
|
||||
protected static ?int $navigationSort = 5;
|
||||
|
||||
public static function form(Form $form): Form
|
||||
{
|
||||
return $form
|
||||
@@ -640,11 +642,15 @@ class LocatorInvoiceValidationResource extends Resource
|
||||
|
||||
ImportAction::make()
|
||||
->importer(LocatorInvoiceValidationImporter::class)
|
||||
->label('Import Locator Invoice')
|
||||
->color('warning')
|
||||
->visible(function() {
|
||||
return Filament::auth()->user()->can('view import locator invoice validation');
|
||||
}),
|
||||
ExportAction::make()
|
||||
->exporter(LocatorInvoiceValidationExporter::class)
|
||||
->label('Export Locator Invoice')
|
||||
->color('warning')
|
||||
->visible(function() {
|
||||
return Filament::auth()->user()->can('view export locator invoice validation');
|
||||
}),
|
||||
@@ -894,6 +900,11 @@ class LocatorInvoiceValidationResource extends Resource
|
||||
];
|
||||
}
|
||||
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
return 'Scan Invoice';
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user