refactor: Remove navigationSort property from various Filament resource classes for cleaner code
This commit is contained in:
parent
cb8dac63fe
commit
926d25d6cf
@ -12,7 +12,6 @@ ## 1. Class Properties
|
||||
protected static ?string $navigationGroup = 'Master';
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::UserGroup;
|
||||
protected static ?string $navigationLabel = 'Pengguna';
|
||||
protected static ?int $navigationSort = 7;
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
protected static ?string $slug = 'master/users';
|
||||
```
|
||||
|
||||
@ -33,8 +33,6 @@ class AdminVerification extends Page implements HasActions, HasForms
|
||||
|
||||
protected static string|UnitEnum|null $navigationGroup = 'Kelola';
|
||||
|
||||
protected static ?int $navigationSort = 10;
|
||||
|
||||
protected static ?string $slug = 'manage/admin-verification';
|
||||
|
||||
protected string $view = 'filament.pages.admin-verification';
|
||||
|
||||
@ -35,8 +35,6 @@ class CustomCompany extends Page
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?int $navigationSort = 9;
|
||||
|
||||
public ?Company $company = null;
|
||||
|
||||
public array $data = [];
|
||||
|
||||
@ -41,8 +41,6 @@ class CustomMedia extends Page
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?int $navigationSort = 10;
|
||||
|
||||
public ?Company $company = null;
|
||||
|
||||
public ?PartnerMedia $media = null;
|
||||
|
||||
@ -35,8 +35,6 @@ class CustomVerification extends Page implements HasActions, HasForms
|
||||
|
||||
protected static ?string $slug = 'manage/verification';
|
||||
|
||||
protected static ?int $navigationSort = 12;
|
||||
|
||||
protected string $view = 'filament.pages.verification';
|
||||
|
||||
public ?Company $company = null;
|
||||
|
||||
@ -37,8 +37,6 @@ class CooperationResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Kerja Sama';
|
||||
|
||||
protected static ?int $navigationSort = 20;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'title';
|
||||
|
||||
protected static ?string $slug = 'manage/cooperations';
|
||||
|
||||
@ -43,8 +43,6 @@ class JournalistResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Jurnalis';
|
||||
|
||||
protected static ?int $navigationSort = 11;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'manage/journalists';
|
||||
|
||||
@ -35,8 +35,6 @@ class PartnerResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Rekanan';
|
||||
|
||||
protected static ?int $navigationSort = 8;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'manage/partners';
|
||||
|
||||
@ -36,8 +36,6 @@ class CategoryResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Kategori Berita';
|
||||
|
||||
protected static ?int $navigationSort = 7;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/categories';
|
||||
|
||||
@ -36,8 +36,6 @@ class ClassificationResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Klasifikasi';
|
||||
|
||||
protected static ?int $navigationSort = 1;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/classifications';
|
||||
|
||||
@ -36,8 +36,6 @@ class DepartmentResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'OPD';
|
||||
|
||||
protected static ?int $navigationSort = 5;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/departments';
|
||||
|
||||
@ -36,8 +36,6 @@ class LocationResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Lokasi';
|
||||
|
||||
protected static ?int $navigationSort = 3;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/locations';
|
||||
|
||||
@ -38,8 +38,6 @@ class SubClassificationResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Sub Klasifikasi';
|
||||
|
||||
protected static ?int $navigationSort = 2;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/sub-classifications';
|
||||
|
||||
@ -38,8 +38,6 @@ class SubLocationResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Sub Lokasi';
|
||||
|
||||
protected static ?int $navigationSort = 4;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/sub-locations';
|
||||
|
||||
@ -36,8 +36,6 @@ class ThemeResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Tema';
|
||||
|
||||
protected static ?int $navigationSort = 6;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/themes';
|
||||
|
||||
@ -40,8 +40,6 @@ class UserResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Pengguna';
|
||||
|
||||
protected static ?int $navigationSort = 7;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/users';
|
||||
|
||||
@ -27,8 +27,6 @@ class ContentRecapResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Rekap Konten';
|
||||
|
||||
protected static ?int $navigationSort = 13;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'title';
|
||||
|
||||
protected static ?string $slug = 'monitoring/content-recaps';
|
||||
|
||||
@ -27,8 +27,6 @@ class IssueManagementResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Manajemen Isu';
|
||||
|
||||
protected static ?int $navigationSort = 13;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'mediaMonitoring.title';
|
||||
|
||||
protected static ?string $slug = 'monitoring/issue-managements';
|
||||
|
||||
@ -27,8 +27,6 @@ class MediaMonitoringResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Monitoring Media';
|
||||
|
||||
protected static ?int $navigationSort = 12;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'code';
|
||||
|
||||
protected static ?string $slug = 'monitoring/media-monitorings';
|
||||
|
||||
@ -43,8 +43,6 @@ class AnnouncementResource extends Resource
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'title';
|
||||
|
||||
protected static ?int $navigationSort = 2;
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
|
||||
@ -31,8 +31,6 @@ class NewsResource extends Resource
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'title';
|
||||
|
||||
protected static ?int $navigationSort = 1;
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return NewsForm::configure($schema);
|
||||
|
||||
@ -24,8 +24,6 @@ class VisitorResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Pengunjung';
|
||||
|
||||
protected static ?int $navigationSort = 7;
|
||||
|
||||
protected static ?string $slug = 'monitoring/visitors';
|
||||
|
||||
public static function table(Table $table): Table
|
||||
|
||||
Loading…
Reference in New Issue
Block a user