From d8cf50ce1fceddac6246c5f77d58f9a0d1f5ff89 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Tue, 27 Jan 2026 21:11:59 +0700 Subject: [PATCH] refactor: Rename 'Lokasi' to 'Lokus' and 'Sub Lokasi' to 'Sub Lokus' in Filament resource labels and titles. --- .../Resources/Master/Locations/LocationResource.php | 4 ++-- .../Resources/Master/Locations/Pages/ManageLocations.php | 4 ++-- .../Master/SubLocations/Pages/ManageSubLocations.php | 4 ++-- .../Resources/Master/SubLocations/SubLocationResource.php | 8 ++++---- .../IssueManagements/Schemas/IssueManagementForm.php | 4 ++-- .../IssueManagements/Tables/IssueManagementTable.php | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/Filament/Resources/Master/Locations/LocationResource.php b/app/Filament/Resources/Master/Locations/LocationResource.php index f8cb585..bbd8445 100644 --- a/app/Filament/Resources/Master/Locations/LocationResource.php +++ b/app/Filament/Resources/Master/Locations/LocationResource.php @@ -35,7 +35,7 @@ class LocationResource extends Resource protected static string|BackedEnum|null $navigationIcon = Heroicon::MapPin; - protected static ?string $navigationLabel = 'Lokasi'; + protected static ?string $navigationLabel = 'Lokus'; protected static ?int $navigationSort = 3; @@ -97,7 +97,7 @@ public static function table(Table $table): Table ]) ->toolbarActions([ BulkActionGroup::make([ - ...DefaultBulkActions::make('Lokasi'), + ...DefaultBulkActions::make('Lokus'), ]), ]) ->emptyStateIcon(Heroicon::MapPin) diff --git a/app/Filament/Resources/Master/Locations/Pages/ManageLocations.php b/app/Filament/Resources/Master/Locations/Pages/ManageLocations.php index 16ed080..ff661b9 100644 --- a/app/Filament/Resources/Master/Locations/Pages/ManageLocations.php +++ b/app/Filament/Resources/Master/Locations/Pages/ManageLocations.php @@ -11,14 +11,14 @@ class ManageLocations extends ManageRecords { protected static string $resource = LocationResource::class; - protected static ?string $title = 'Lokasi'; + protected static ?string $title = 'Lokus'; protected function getHeaderActions(): array { return [ CreateAction::make() ->label('Tambah') - ->modalHeading('Tambah Lokasi') + ->modalHeading('Tambah Lokus') ->modalSubmitActionLabel('Simpan') ->modalCancelActionLabel('Batal') ->extraModalFooterActions(fn (CreateAction $action): array => [ diff --git a/app/Filament/Resources/Master/SubLocations/Pages/ManageSubLocations.php b/app/Filament/Resources/Master/SubLocations/Pages/ManageSubLocations.php index 3ccea5c..34ff930 100644 --- a/app/Filament/Resources/Master/SubLocations/Pages/ManageSubLocations.php +++ b/app/Filament/Resources/Master/SubLocations/Pages/ManageSubLocations.php @@ -9,7 +9,7 @@ class ManageSubLocations extends ManageRecords { - protected static ?string $title = 'Sub Lokasi'; + protected static ?string $title = 'Sub Lokus'; protected static string $resource = SubLocationResource::class; @@ -18,7 +18,7 @@ protected function getHeaderActions(): array return [ CreateAction::make() ->label('Tambah') - ->modalHeading('Tambah Sub Lokasi') + ->modalHeading('Tambah Sub Lokus') ->modalSubmitActionLabel('Simpan') ->modalCancelActionLabel('Batal') ->extraModalFooterActions(fn (CreateAction $action): array => [ diff --git a/app/Filament/Resources/Master/SubLocations/SubLocationResource.php b/app/Filament/Resources/Master/SubLocations/SubLocationResource.php index c1e0766..2e391eb 100644 --- a/app/Filament/Resources/Master/SubLocations/SubLocationResource.php +++ b/app/Filament/Resources/Master/SubLocations/SubLocationResource.php @@ -37,7 +37,7 @@ class SubLocationResource extends Resource protected static string|BackedEnum|null $navigationIcon = Heroicon::NumberedList; - protected static ?string $navigationLabel = 'Sub Lokasi'; + protected static ?string $navigationLabel = 'Sub Lokus'; protected static ?int $navigationSort = 4; @@ -50,7 +50,7 @@ public static function form(Schema $schema): Schema return $schema ->components([ Select::make('location_id') - ->label('Lokasi') + ->label('Lokus') ->options(Location::query()->pluck('name', 'id')) ->searchable() ->native(false) @@ -74,7 +74,7 @@ public static function table(Table $table): Table return $table ->columns([ TextColumn::make('location.name') - ->label('Lokasi') + ->label('Lokus') ->searchable() ->sortable(), @@ -113,7 +113,7 @@ public static function table(Table $table): Table ]) ->toolbarActions([ BulkActionGroup::make([ - ...DefaultBulkActions::make('Sub Lokasi'), + ...DefaultBulkActions::make('Sub Lokus'), ]), ]) ->emptyStateIcon(Heroicon::NumberedList) diff --git a/app/Filament/Resources/Monitoring/IssueManagements/Schemas/IssueManagementForm.php b/app/Filament/Resources/Monitoring/IssueManagements/Schemas/IssueManagementForm.php index 3b5694a..2a25336 100644 --- a/app/Filament/Resources/Monitoring/IssueManagements/Schemas/IssueManagementForm.php +++ b/app/Filament/Resources/Monitoring/IssueManagements/Schemas/IssueManagementForm.php @@ -31,7 +31,7 @@ public static function configure(Schema $schema): Schema Grid::make(2) ->schema([ Select::make('location_id') - ->label('Lokasi') + ->label('Lokus') ->relationship('location', 'name') ->searchable() ->preload() @@ -43,7 +43,7 @@ public static function configure(Schema $schema): Schema ->autocomplete(false), Select::make('sub_location_id') - ->label('Sub Lokasi') + ->label('Sub Lokus') ->relationship('subLocation', 'name', fn (Builder $query, Get $get): Builder => $query->where('location_id', $get('location_id'))) ->searchable() ->preload() diff --git a/app/Filament/Resources/Monitoring/IssueManagements/Tables/IssueManagementTable.php b/app/Filament/Resources/Monitoring/IssueManagements/Tables/IssueManagementTable.php index 73046e3..df53ba5 100644 --- a/app/Filament/Resources/Monitoring/IssueManagements/Tables/IssueManagementTable.php +++ b/app/Filament/Resources/Monitoring/IssueManagements/Tables/IssueManagementTable.php @@ -41,7 +41,7 @@ public static function configure(Table $table): Table ->sortable(), TextColumn::make('location.name') - ->label('Lokasi') + ->label('Lokus') ->searchable() ->sortable(),