Updated navigation sort order for GuardNameResource and TestingPanelReadingResource for consistent display in the Master Entries and Testing Panel groups

This commit is contained in:
dhanabalan
2025-09-15 14:26:33 +05:30
parent dc0b4ea75e
commit b48392a40c
3 changed files with 15 additions and 13 deletions

View File

@@ -28,7 +28,7 @@ class GuardNameResource extends Resource
protected static ?string $navigationGroup = 'Master Entries';
protected static ?int $navigationSort = 13;
protected static ?int $navigationSort = 14;
public static function form(Form $form): Form
{

View File

@@ -113,19 +113,19 @@ class TempLiveReadingResource extends Resource
Tables\Actions\ForceDeleteBulkAction::make(),
Tables\Actions\RestoreBulkAction::make(),
]),
])
->headerActions([
ImportAction::make()
->importer(TempLiveReadingImporter::class)
->visible(function() {
return Filament::auth()->user()->can('view import temp live reading');
}),
ExportAction::make()
->exporter(TempLiveReadingExporter::class)
->visible(function() {
return Filament::auth()->user()->can('view export temp live reading');
}),
]);
// ->headerActions([
// ImportAction::make()
// ->importer(TempLiveReadingImporter::class)
// ->visible(function() {
// return Filament::auth()->user()->can('view import temp live reading');
// }),
// ExportAction::make()
// ->exporter(TempLiveReadingExporter::class)
// ->visible(function() {
// return Filament::auth()->user()->can('view export temp live reading');
// }),
// ]);
}
public static function getRelations(): array

View File

@@ -42,6 +42,8 @@ class TestingPanelReadingResource extends Resource
protected static ?string $navigationGroup = 'Testing Panel';
protected static ?int $navigationSort = 3;
public static function form(Form $form): Form
{
return $form