diff --git a/app/Filament/Pages/Auth/Login.php b/app/Filament/Admin/Pages/Auth/Login.php similarity index 93% rename from app/Filament/Pages/Auth/Login.php rename to app/Filament/Admin/Pages/Auth/Login.php index 8511d83..d299ea0 100644 --- a/app/Filament/Pages/Auth/Login.php +++ b/app/Filament/Admin/Pages/Auth/Login.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace App\Filament\Pages\Auth; +namespace App\Filament\Admin\Pages\Auth; use Filament\Pages\Auth\Login as BaseLogin; diff --git a/app/Filament/Resources/CountryResource.php b/app/Filament/Admin/Resources/CountryResource.php similarity index 95% rename from app/Filament/Resources/CountryResource.php rename to app/Filament/Admin/Resources/CountryResource.php index 01e8495..6a90118 100644 --- a/app/Filament/Resources/CountryResource.php +++ b/app/Filament/Admin/Resources/CountryResource.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources; +namespace App\Filament\Admin\Resources; -use App\Filament\Resources\CountryResource\Pages; +use App\Filament\Admin\Resources\CountryResource\Pages; use App\Models\Country; use Filament\Forms\Components\TagsInput; use Filament\Forms\Components\TextInput; diff --git a/app/Filament/Resources/CountryResource/Pages/ManageCountries.php b/app/Filament/Admin/Resources/CountryResource/Pages/ManageCountries.php similarity index 75% rename from app/Filament/Resources/CountryResource/Pages/ManageCountries.php rename to app/Filament/Admin/Resources/CountryResource/Pages/ManageCountries.php index 724b4e5..9725c88 100644 --- a/app/Filament/Resources/CountryResource/Pages/ManageCountries.php +++ b/app/Filament/Admin/Resources/CountryResource/Pages/ManageCountries.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\CountryResource\Pages; +namespace App\Filament\Admin\Resources\CountryResource\Pages; -use App\Filament\Resources\CountryResource; +use App\Filament\Admin\Resources\CountryResource; use Filament\Actions; use Filament\Resources\Pages\ManageRecords; diff --git a/app/Filament/Resources/CountyResource.php b/app/Filament/Admin/Resources/CountyResource.php similarity index 94% rename from app/Filament/Resources/CountyResource.php rename to app/Filament/Admin/Resources/CountyResource.php index 3cea1f6..e24b71e 100644 --- a/app/Filament/Resources/CountyResource.php +++ b/app/Filament/Admin/Resources/CountyResource.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources; +namespace App\Filament\Admin\Resources; -use App\Filament\Resources\CountyResource\Pages; +use App\Filament\Admin\Resources\CountyResource\Pages; use App\Models\County; use Filament\Forms\Components\TextInput; use Filament\Forms\Form; diff --git a/app/Filament/Resources/CountyResource/Pages/ManageCounties.php b/app/Filament/Admin/Resources/CountyResource/Pages/ManageCounties.php similarity index 75% rename from app/Filament/Resources/CountyResource/Pages/ManageCounties.php rename to app/Filament/Admin/Resources/CountyResource/Pages/ManageCounties.php index 0e36835..07eb6e4 100644 --- a/app/Filament/Resources/CountyResource/Pages/ManageCounties.php +++ b/app/Filament/Admin/Resources/CountyResource/Pages/ManageCounties.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\CountyResource\Pages; +namespace App\Filament\Admin\Resources\CountyResource\Pages; -use App\Filament\Resources\CountyResource; +use App\Filament\Admin\Resources\CountyResource; use Filament\Actions; use Filament\Resources\Pages\ManageRecords; diff --git a/app/Filament/Resources/ElectionResource.php b/app/Filament/Admin/Resources/ElectionResource.php similarity index 98% rename from app/Filament/Resources/ElectionResource.php rename to app/Filament/Admin/Resources/ElectionResource.php index f964605..84730e6 100644 --- a/app/Filament/Resources/ElectionResource.php +++ b/app/Filament/Admin/Resources/ElectionResource.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources; +namespace App\Filament\Admin\Resources; -use App\Filament\Resources\ElectionResource\Pages; +use App\Filament\Admin\Resources\ElectionResource\Pages; use App\Models\Election; use Filament\Forms; use Filament\Forms\Components\Select; diff --git a/app/Filament/Resources/ElectionResource/Pages/CreateElection.php b/app/Filament/Admin/Resources/ElectionResource/Pages/CreateElection.php similarity index 62% rename from app/Filament/Resources/ElectionResource/Pages/CreateElection.php rename to app/Filament/Admin/Resources/ElectionResource/Pages/CreateElection.php index 981a863..1b58c37 100644 --- a/app/Filament/Resources/ElectionResource/Pages/CreateElection.php +++ b/app/Filament/Admin/Resources/ElectionResource/Pages/CreateElection.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\ElectionResource\Pages; +namespace App\Filament\Admin\Resources\ElectionResource\Pages; -use App\Filament\Resources\ElectionResource; +use App\Filament\Admin\Resources\ElectionResource; use Filament\Resources\Pages\CreateRecord; class CreateElection extends CreateRecord diff --git a/app/Filament/Resources/ElectionResource/Pages/EditElection.php b/app/Filament/Admin/Resources/ElectionResource/Pages/EditElection.php similarity index 74% rename from app/Filament/Resources/ElectionResource/Pages/EditElection.php rename to app/Filament/Admin/Resources/ElectionResource/Pages/EditElection.php index ab1a30b..f84bdb5 100644 --- a/app/Filament/Resources/ElectionResource/Pages/EditElection.php +++ b/app/Filament/Admin/Resources/ElectionResource/Pages/EditElection.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\ElectionResource\Pages; +namespace App\Filament\Admin\Resources\ElectionResource\Pages; -use App\Filament\Resources\ElectionResource; +use App\Filament\Admin\Resources\ElectionResource; use Filament\Actions; use Filament\Resources\Pages\EditRecord; diff --git a/app/Filament/Resources/ElectionResource/Pages/ListElections.php b/app/Filament/Admin/Resources/ElectionResource/Pages/ListElections.php similarity index 74% rename from app/Filament/Resources/ElectionResource/Pages/ListElections.php rename to app/Filament/Admin/Resources/ElectionResource/Pages/ListElections.php index 890490f..4ccd27f 100644 --- a/app/Filament/Resources/ElectionResource/Pages/ListElections.php +++ b/app/Filament/Admin/Resources/ElectionResource/Pages/ListElections.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\ElectionResource\Pages; +namespace App\Filament\Admin\Resources\ElectionResource\Pages; -use App\Filament\Resources\ElectionResource; +use App\Filament\Admin\Resources\ElectionResource; use Filament\Actions; use Filament\Resources\Pages\ListRecords; diff --git a/app/Filament/Resources/ElectionResource/Pages/ViewElection.php b/app/Filament/Admin/Resources/ElectionResource/Pages/ViewElection.php similarity index 82% rename from app/Filament/Resources/ElectionResource/Pages/ViewElection.php rename to app/Filament/Admin/Resources/ElectionResource/Pages/ViewElection.php index e5bc789..ff6f12c 100644 --- a/app/Filament/Resources/ElectionResource/Pages/ViewElection.php +++ b/app/Filament/Admin/Resources/ElectionResource/Pages/ViewElection.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\ElectionResource\Pages; +namespace App\Filament\Admin\Resources\ElectionResource\Pages; -use App\Filament\Resources\ElectionResource; +use App\Filament\Admin\Resources\ElectionResource; use Filament\Actions; use Filament\Resources\Pages\ViewRecord; diff --git a/app/Filament/Resources/ElectionTypeResource.php b/app/Filament/Admin/Resources/ElectionTypeResource.php similarity index 95% rename from app/Filament/Resources/ElectionTypeResource.php rename to app/Filament/Admin/Resources/ElectionTypeResource.php index 501cdbd..6213008 100644 --- a/app/Filament/Resources/ElectionTypeResource.php +++ b/app/Filament/Admin/Resources/ElectionTypeResource.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources; +namespace App\Filament\Admin\Resources; -use App\Filament\Resources\ElectionTypeResource\Pages; +use App\Filament\Admin\Resources\ElectionTypeResource\Pages; use App\Models\ElectionType; use Filament\Forms\Components\TextInput; use Filament\Forms\Form; diff --git a/app/Filament/Resources/ElectionTypeResource/Pages/ManageElectionTypes.php b/app/Filament/Admin/Resources/ElectionTypeResource/Pages/ManageElectionTypes.php similarity index 74% rename from app/Filament/Resources/ElectionTypeResource/Pages/ManageElectionTypes.php rename to app/Filament/Admin/Resources/ElectionTypeResource/Pages/ManageElectionTypes.php index 0ff4c7f..440e36e 100644 --- a/app/Filament/Resources/ElectionTypeResource/Pages/ManageElectionTypes.php +++ b/app/Filament/Admin/Resources/ElectionTypeResource/Pages/ManageElectionTypes.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\ElectionTypeResource\Pages; +namespace App\Filament\Admin\Resources\ElectionTypeResource\Pages; -use App\Filament\Resources\ElectionTypeResource; +use App\Filament\Admin\Resources\ElectionTypeResource; use Filament\Actions; use Filament\Resources\Pages\ManageRecords; diff --git a/app/Filament/Resources/LocalityResource.php b/app/Filament/Admin/Resources/LocalityResource.php similarity index 96% rename from app/Filament/Resources/LocalityResource.php rename to app/Filament/Admin/Resources/LocalityResource.php index 62e6d40..674bc3f 100644 --- a/app/Filament/Resources/LocalityResource.php +++ b/app/Filament/Admin/Resources/LocalityResource.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources; +namespace App\Filament\Admin\Resources; -use App\Filament\Resources\LocalityResource\Pages; +use App\Filament\Admin\Resources\LocalityResource\Pages; use App\Models\Locality; use Filament\Forms\Components\Select; use Filament\Forms\Components\TextInput; diff --git a/app/Filament/Resources/LocalityResource/Pages/ManageLocalities.php b/app/Filament/Admin/Resources/LocalityResource/Pages/ManageLocalities.php similarity index 75% rename from app/Filament/Resources/LocalityResource/Pages/ManageLocalities.php rename to app/Filament/Admin/Resources/LocalityResource/Pages/ManageLocalities.php index e918a9f..96e5bf9 100644 --- a/app/Filament/Resources/LocalityResource/Pages/ManageLocalities.php +++ b/app/Filament/Admin/Resources/LocalityResource/Pages/ManageLocalities.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\LocalityResource\Pages; +namespace App\Filament\Admin\Resources\LocalityResource\Pages; -use App\Filament\Resources\LocalityResource; +use App\Filament\Admin\Resources\LocalityResource; use Filament\Actions; use Filament\Resources\Pages\ManageRecords; diff --git a/app/Filament/Resources/PartyResource.php b/app/Filament/Admin/Resources/PartyResource.php similarity index 95% rename from app/Filament/Resources/PartyResource.php rename to app/Filament/Admin/Resources/PartyResource.php index f61211c..f939bef 100644 --- a/app/Filament/Resources/PartyResource.php +++ b/app/Filament/Admin/Resources/PartyResource.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources; +namespace App\Filament\Admin\Resources; -use App\Filament\Resources\PartyResource\Pages; +use App\Filament\Admin\Resources\PartyResource\Pages; use App\Models\Party; use Filament\Forms\Form; use Filament\Resources\Resource; diff --git a/app/Filament/Resources/PartyResource/Pages/ManageParties.php b/app/Filament/Admin/Resources/PartyResource/Pages/ManageParties.php similarity index 75% rename from app/Filament/Resources/PartyResource/Pages/ManageParties.php rename to app/Filament/Admin/Resources/PartyResource/Pages/ManageParties.php index f46055b..afa3d07 100644 --- a/app/Filament/Resources/PartyResource/Pages/ManageParties.php +++ b/app/Filament/Admin/Resources/PartyResource/Pages/ManageParties.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\PartyResource\Pages; +namespace App\Filament\Admin\Resources\PartyResource\Pages; -use App\Filament\Resources\PartyResource; +use App\Filament\Admin\Resources\PartyResource; use Filament\Actions; use Filament\Resources\Pages\ManageRecords; diff --git a/app/Filament/Resources/TurnoutResource.php b/app/Filament/Admin/Resources/TurnoutResource.php similarity index 97% rename from app/Filament/Resources/TurnoutResource.php rename to app/Filament/Admin/Resources/TurnoutResource.php index aa51441..79d9c12 100644 --- a/app/Filament/Resources/TurnoutResource.php +++ b/app/Filament/Admin/Resources/TurnoutResource.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources; +namespace App\Filament\Admin\Resources; -use App\Filament\Resources\TurnoutResource\Pages; +use App\Filament\Admin\Resources\TurnoutResource\Pages; use App\Models\Turnout; use Filament\Resources\Resource; use Filament\Tables; diff --git a/app/Filament/Resources/TurnoutResource/Pages/ManageTurnouts.php b/app/Filament/Admin/Resources/TurnoutResource/Pages/ManageTurnouts.php similarity index 62% rename from app/Filament/Resources/TurnoutResource/Pages/ManageTurnouts.php rename to app/Filament/Admin/Resources/TurnoutResource/Pages/ManageTurnouts.php index be9a37e..b9957c8 100644 --- a/app/Filament/Resources/TurnoutResource/Pages/ManageTurnouts.php +++ b/app/Filament/Admin/Resources/TurnoutResource/Pages/ManageTurnouts.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\TurnoutResource\Pages; +namespace App\Filament\Admin\Resources\TurnoutResource\Pages; -use App\Filament\Resources\TurnoutResource; +use App\Filament\Admin\Resources\TurnoutResource; use Filament\Resources\Pages\ManageRecords; class ManageTurnouts extends ManageRecords diff --git a/app/Filament/Resources/UserResource.php b/app/Filament/Admin/Resources/UserResource.php similarity index 97% rename from app/Filament/Resources/UserResource.php rename to app/Filament/Admin/Resources/UserResource.php index c0f53ed..56728e8 100644 --- a/app/Filament/Resources/UserResource.php +++ b/app/Filament/Admin/Resources/UserResource.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace App\Filament\Resources; +namespace App\Filament\Admin\Resources; use App\Enums\User\Role; -use App\Filament\Resources\UserResource\Pages; +use App\Filament\Admin\Resources\UserResource\Pages; use App\Models\User; use Filament\Forms; use Filament\Forms\Components\Group; diff --git a/app/Filament/Resources/UserResource/Pages/EditUser.php b/app/Filament/Admin/Resources/UserResource/Pages/EditUser.php similarity index 77% rename from app/Filament/Resources/UserResource/Pages/EditUser.php rename to app/Filament/Admin/Resources/UserResource/Pages/EditUser.php index 5198615..e8a226d 100644 --- a/app/Filament/Resources/UserResource/Pages/EditUser.php +++ b/app/Filament/Admin/Resources/UserResource/Pages/EditUser.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\UserResource\Pages; +namespace App\Filament\Admin\Resources\UserResource\Pages; -use App\Filament\Resources\UserResource; +use App\Filament\Admin\Resources\UserResource; use Filament\Actions; use Filament\Resources\Pages\EditRecord; diff --git a/app/Filament/Resources/UserResource/Pages/ListUsers.php b/app/Filament/Admin/Resources/UserResource/Pages/ListUsers.php similarity index 75% rename from app/Filament/Resources/UserResource/Pages/ListUsers.php rename to app/Filament/Admin/Resources/UserResource/Pages/ListUsers.php index 3298c13..7f6d59a 100644 --- a/app/Filament/Resources/UserResource/Pages/ListUsers.php +++ b/app/Filament/Admin/Resources/UserResource/Pages/ListUsers.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\UserResource\Pages; +namespace App\Filament\Admin\Resources\UserResource\Pages; -use App\Filament\Resources\UserResource; +use App\Filament\Admin\Resources\UserResource; use Filament\Actions; use Filament\Resources\Pages\ListRecords; diff --git a/app/Filament/Resources/UserResource/Pages/ManageUsers.php b/app/Filament/Admin/Resources/UserResource/Pages/ManageUsers.php similarity index 76% rename from app/Filament/Resources/UserResource/Pages/ManageUsers.php rename to app/Filament/Admin/Resources/UserResource/Pages/ManageUsers.php index 0eaef8d..1606658 100644 --- a/app/Filament/Resources/UserResource/Pages/ManageUsers.php +++ b/app/Filament/Admin/Resources/UserResource/Pages/ManageUsers.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\UserResource\Pages; +namespace App\Filament\Admin\Resources\UserResource\Pages; -use App\Filament\Resources\UserResource; +use App\Filament\Admin\Resources\UserResource; use Filament\Actions; use Filament\Resources\Pages\ManageRecords; diff --git a/app/Filament/Resources/UserResource/Pages/ViewUser.php b/app/Filament/Admin/Resources/UserResource/Pages/ViewUser.php similarity index 75% rename from app/Filament/Resources/UserResource/Pages/ViewUser.php rename to app/Filament/Admin/Resources/UserResource/Pages/ViewUser.php index 72db3c2..cbbc1a7 100644 --- a/app/Filament/Resources/UserResource/Pages/ViewUser.php +++ b/app/Filament/Admin/Resources/UserResource/Pages/ViewUser.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace App\Filament\Resources\UserResource\Pages; +namespace App\Filament\Admin\Resources\UserResource\Pages; -use App\Filament\Resources\UserResource; +use App\Filament\Admin\Resources\UserResource; use Filament\Actions; use Filament\Resources\Pages\ViewRecord; diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index 4c01bf8..d212820 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -4,7 +4,7 @@ namespace App\Providers\Filament; -use App\Filament\Pages\Auth\Login; +use App\Filament\Admin\Pages\Auth\Login; use App\Models\Election; use Filament\Forms\Components\DateTimePicker; use Filament\Http\Middleware\Authenticate; @@ -53,12 +53,12 @@ public function panel(Panel $panel): Panel ->myProfile(slug: 'profile') ->enableTwoFactorAuthentication(), ]) - ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources') - ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages') + ->discoverResources(in: app_path('Filament/Admin/Resources'), for: 'App\\Filament\\Admin\\Resources') + ->discoverPages(in: app_path('Filament/Admin/Pages'), for: 'App\\Filament\\Admin\\Pages') ->pages([ Pages\Dashboard::class, ]) - ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets') + ->discoverWidgets(in: app_path('Filament/Admin/Widgets'), for: 'App\\Filament\\Admin\\Widgets') ->widgets([ Widgets\AccountWidget::class, // Widgets\FilamentInfoWidget::class,