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

@@ -38,6 +38,8 @@ class ReworkLocatorInvoiceValidationResource extends Resource
protected static ?string $navigationGroup = 'Export Dispatch';
protected static ?int $navigationSort = 7;
public static function form(Form $form): Form
{
return $form
@@ -241,6 +243,7 @@ class ReworkLocatorInvoiceValidationResource extends Resource
}),
Tables\Columns\TextColumn::make('plant.name')
->label('Plant')
->alignCenter()
->sortable(),
Tables\Columns\TextColumn::make('invoice_number')
->label('Invoice Number')
@@ -314,11 +317,15 @@ class ReworkLocatorInvoiceValidationResource extends Resource
->headerActions([
ImportAction::make()
->importer(ReworkLocatorInvoiceValidationImporter::class)
->label('Import Rework Invoice')
->color('warning')
->visible(function() {
return Filament::auth()->user()->can('view import rework invoice validation');
}),
ExportAction::make()
->exporter(ReworkLocatorInvoiceValidationExporter::class)
->label('Export Rework Invoice')
->color('warning')
->visible(function() {
return Filament::auth()->user()->can('view export rework invoice validation');
}),
@@ -531,6 +538,11 @@ class ReworkLocatorInvoiceValidationResource extends Resource
];
}
public static function getNavigationLabel(): string
{
return 'Scan Rework';
}
public static function getPages(): array
{
return [
@@ -540,10 +552,6 @@ class ReworkLocatorInvoiceValidationResource extends Resource
'edit' => Pages\EditReworkLocatorInvoiceValidation::route('/{record}/edit'),
];
}
public static function getNavigationLabel(): string
{
return 'Rework Invoice / Pallet';
}
public static function getEloquentQuery(): Builder
{