From e13533376af0408a075e926fddd204db490837b6 Mon Sep 17 00:00:00 2001 From: Curtis Delicata Date: Fri, 28 Jun 2024 18:12:48 +0000 Subject: [PATCH] Configure Jetstream classes in providers and separate panels into Admin and App --- .../Resources/AccountResource.php | 0 .../AccountResource/Pages/CreateAccount.php | 0 .../AccountResource/Pages/EditAccount.php | 0 .../AccountResource/Pages/ListAccounts.php | 0 .../Resources/ActivationResource.php | 0 .../Pages/CreateActivation.php | 0 .../Pages/EditActivation.php | 0 .../Pages/ListActivations.php | 0 .../Resources/AssetAcquisitionResource.php | 0 .../Pages/CreateAssetAcquisition.php | 0 .../Pages/EditAssetAcquisition.php | 0 .../Pages/ListAssetAcquisitions.php | 0 .../Resources/AssetResource.php | 0 .../AssetResource/Pages/CreateAsset.php | 0 .../AssetResource/Pages/EditAsset.php | 0 .../AssetResource/Pages/ListAssets.php | 0 .../Resources/CategoryResource.php | 0 .../CategoryResource/Pages/CreateCategory.php | 0 .../CategoryResource/Pages/EditCategory.php | 0 .../CategoryResource/Pages/ListCategories.php | 0 .../Resources/CompanyResource.php | 0 .../CompanyResource/Pages/CreateCompany.php | 0 .../CompanyResource/Pages/EditCompany.php | 0 .../CompanyResource/Pages/ListCompanies.php | 0 .../Resources/CustomerResource.php | 0 .../CustomerResource/Pages/CreateCustomer.php | 0 .../CustomerResource/Pages/EditCustomer.php | 0 .../CustomerResource/Pages/ListCustomers.php | 0 .../Resources/InvoiceResource.php | 0 .../InvoiceResource/Pages/CreateInvoice.php | 0 .../InvoiceResource/Pages/EditInvoice.php | 0 .../InvoiceResource/Pages/ListInvoices.php | 0 .../Resources/PaymentResource.php | 0 .../PaymentResource/Pages/CreatePayment.php | 0 .../PaymentResource/Pages/EditPayment.php | 0 .../PaymentResource/Pages/ListPayments.php | 0 .../Resources/PaymentTermResource.php | 0 .../Pages/CreatePaymentTerm.php | 0 .../Pages/EditPaymentTerm.php | 0 .../Pages/ListPaymentTerms.php | 0 .../Resources/SupplierResource.php | 0 .../SupplierResource/Pages/CreateSupplier.php | 0 .../SupplierResource/Pages/EditSupplier.php | 0 .../SupplierResource/Pages/ListSuppliers.php | 0 .../Resources/TenantResource.php | 0 .../TenantResource/Pages/CreateTenant.php | 0 .../TenantResource/Pages/EditTenant.php | 0 .../TenantResource/Pages/ListTenants.php | 0 .../Resources/TransactionResource.php | 0 .../Pages/CreateTransaction.php | 0 .../Pages/EditTransaction.php | 0 .../Pages/ListTransactions.php | 0 app/Providers/Filament/AdminPanelProvider.php | 56 +------------------ 53 files changed, 1 insertion(+), 55 deletions(-) rename app/Filament/{Admin => App}/Resources/AccountResource.php (100%) rename app/Filament/{Admin => App}/Resources/AccountResource/Pages/CreateAccount.php (100%) rename app/Filament/{Admin => App}/Resources/AccountResource/Pages/EditAccount.php (100%) rename app/Filament/{Admin => App}/Resources/AccountResource/Pages/ListAccounts.php (100%) rename app/Filament/{Admin => App}/Resources/ActivationResource.php (100%) rename app/Filament/{Admin => App}/Resources/ActivationResource/Pages/CreateActivation.php (100%) rename app/Filament/{Admin => App}/Resources/ActivationResource/Pages/EditActivation.php (100%) rename app/Filament/{Admin => App}/Resources/ActivationResource/Pages/ListActivations.php (100%) rename app/Filament/{Admin => App}/Resources/AssetAcquisitionResource.php (100%) rename app/Filament/{Admin => App}/Resources/AssetAcquisitionResource/Pages/CreateAssetAcquisition.php (100%) rename app/Filament/{Admin => App}/Resources/AssetAcquisitionResource/Pages/EditAssetAcquisition.php (100%) rename app/Filament/{Admin => App}/Resources/AssetAcquisitionResource/Pages/ListAssetAcquisitions.php (100%) rename app/Filament/{Admin => App}/Resources/AssetResource.php (100%) rename app/Filament/{Admin => App}/Resources/AssetResource/Pages/CreateAsset.php (100%) rename app/Filament/{Admin => App}/Resources/AssetResource/Pages/EditAsset.php (100%) rename app/Filament/{Admin => App}/Resources/AssetResource/Pages/ListAssets.php (100%) rename app/Filament/{Admin => App}/Resources/CategoryResource.php (100%) rename app/Filament/{Admin => App}/Resources/CategoryResource/Pages/CreateCategory.php (100%) rename app/Filament/{Admin => App}/Resources/CategoryResource/Pages/EditCategory.php (100%) rename app/Filament/{Admin => App}/Resources/CategoryResource/Pages/ListCategories.php (100%) rename app/Filament/{Admin => App}/Resources/CompanyResource.php (100%) rename app/Filament/{Admin => App}/Resources/CompanyResource/Pages/CreateCompany.php (100%) rename app/Filament/{Admin => App}/Resources/CompanyResource/Pages/EditCompany.php (100%) rename app/Filament/{Admin => App}/Resources/CompanyResource/Pages/ListCompanies.php (100%) rename app/Filament/{Admin => App}/Resources/CustomerResource.php (100%) rename app/Filament/{Admin => App}/Resources/CustomerResource/Pages/CreateCustomer.php (100%) rename app/Filament/{Admin => App}/Resources/CustomerResource/Pages/EditCustomer.php (100%) rename app/Filament/{Admin => App}/Resources/CustomerResource/Pages/ListCustomers.php (100%) rename app/Filament/{Admin => App}/Resources/InvoiceResource.php (100%) rename app/Filament/{Admin => App}/Resources/InvoiceResource/Pages/CreateInvoice.php (100%) rename app/Filament/{Admin => App}/Resources/InvoiceResource/Pages/EditInvoice.php (100%) rename app/Filament/{Admin => App}/Resources/InvoiceResource/Pages/ListInvoices.php (100%) rename app/Filament/{Admin => App}/Resources/PaymentResource.php (100%) rename app/Filament/{Admin => App}/Resources/PaymentResource/Pages/CreatePayment.php (100%) rename app/Filament/{Admin => App}/Resources/PaymentResource/Pages/EditPayment.php (100%) rename app/Filament/{Admin => App}/Resources/PaymentResource/Pages/ListPayments.php (100%) rename app/Filament/{Admin => App}/Resources/PaymentTermResource.php (100%) rename app/Filament/{Admin => App}/Resources/PaymentTermResource/Pages/CreatePaymentTerm.php (100%) rename app/Filament/{Admin => App}/Resources/PaymentTermResource/Pages/EditPaymentTerm.php (100%) rename app/Filament/{Admin => App}/Resources/PaymentTermResource/Pages/ListPaymentTerms.php (100%) rename app/Filament/{Admin => App}/Resources/SupplierResource.php (100%) rename app/Filament/{Admin => App}/Resources/SupplierResource/Pages/CreateSupplier.php (100%) rename app/Filament/{Admin => App}/Resources/SupplierResource/Pages/EditSupplier.php (100%) rename app/Filament/{Admin => App}/Resources/SupplierResource/Pages/ListSuppliers.php (100%) rename app/Filament/{Admin => App}/Resources/TenantResource.php (100%) rename app/Filament/{Admin => App}/Resources/TenantResource/Pages/CreateTenant.php (100%) rename app/Filament/{Admin => App}/Resources/TenantResource/Pages/EditTenant.php (100%) rename app/Filament/{Admin => App}/Resources/TenantResource/Pages/ListTenants.php (100%) rename app/Filament/{Admin => App}/Resources/TransactionResource.php (100%) rename app/Filament/{Admin => App}/Resources/TransactionResource/Pages/CreateTransaction.php (100%) rename app/Filament/{Admin => App}/Resources/TransactionResource/Pages/EditTransaction.php (100%) rename app/Filament/{Admin => App}/Resources/TransactionResource/Pages/ListTransactions.php (100%) diff --git a/app/Filament/Admin/Resources/AccountResource.php b/app/Filament/App/Resources/AccountResource.php similarity index 100% rename from app/Filament/Admin/Resources/AccountResource.php rename to app/Filament/App/Resources/AccountResource.php diff --git a/app/Filament/Admin/Resources/AccountResource/Pages/CreateAccount.php b/app/Filament/App/Resources/AccountResource/Pages/CreateAccount.php similarity index 100% rename from app/Filament/Admin/Resources/AccountResource/Pages/CreateAccount.php rename to app/Filament/App/Resources/AccountResource/Pages/CreateAccount.php diff --git a/app/Filament/Admin/Resources/AccountResource/Pages/EditAccount.php b/app/Filament/App/Resources/AccountResource/Pages/EditAccount.php similarity index 100% rename from app/Filament/Admin/Resources/AccountResource/Pages/EditAccount.php rename to app/Filament/App/Resources/AccountResource/Pages/EditAccount.php diff --git a/app/Filament/Admin/Resources/AccountResource/Pages/ListAccounts.php b/app/Filament/App/Resources/AccountResource/Pages/ListAccounts.php similarity index 100% rename from app/Filament/Admin/Resources/AccountResource/Pages/ListAccounts.php rename to app/Filament/App/Resources/AccountResource/Pages/ListAccounts.php diff --git a/app/Filament/Admin/Resources/ActivationResource.php b/app/Filament/App/Resources/ActivationResource.php similarity index 100% rename from app/Filament/Admin/Resources/ActivationResource.php rename to app/Filament/App/Resources/ActivationResource.php diff --git a/app/Filament/Admin/Resources/ActivationResource/Pages/CreateActivation.php b/app/Filament/App/Resources/ActivationResource/Pages/CreateActivation.php similarity index 100% rename from app/Filament/Admin/Resources/ActivationResource/Pages/CreateActivation.php rename to app/Filament/App/Resources/ActivationResource/Pages/CreateActivation.php diff --git a/app/Filament/Admin/Resources/ActivationResource/Pages/EditActivation.php b/app/Filament/App/Resources/ActivationResource/Pages/EditActivation.php similarity index 100% rename from app/Filament/Admin/Resources/ActivationResource/Pages/EditActivation.php rename to app/Filament/App/Resources/ActivationResource/Pages/EditActivation.php diff --git a/app/Filament/Admin/Resources/ActivationResource/Pages/ListActivations.php b/app/Filament/App/Resources/ActivationResource/Pages/ListActivations.php similarity index 100% rename from app/Filament/Admin/Resources/ActivationResource/Pages/ListActivations.php rename to app/Filament/App/Resources/ActivationResource/Pages/ListActivations.php diff --git a/app/Filament/Admin/Resources/AssetAcquisitionResource.php b/app/Filament/App/Resources/AssetAcquisitionResource.php similarity index 100% rename from app/Filament/Admin/Resources/AssetAcquisitionResource.php rename to app/Filament/App/Resources/AssetAcquisitionResource.php diff --git a/app/Filament/Admin/Resources/AssetAcquisitionResource/Pages/CreateAssetAcquisition.php b/app/Filament/App/Resources/AssetAcquisitionResource/Pages/CreateAssetAcquisition.php similarity index 100% rename from app/Filament/Admin/Resources/AssetAcquisitionResource/Pages/CreateAssetAcquisition.php rename to app/Filament/App/Resources/AssetAcquisitionResource/Pages/CreateAssetAcquisition.php diff --git a/app/Filament/Admin/Resources/AssetAcquisitionResource/Pages/EditAssetAcquisition.php b/app/Filament/App/Resources/AssetAcquisitionResource/Pages/EditAssetAcquisition.php similarity index 100% rename from app/Filament/Admin/Resources/AssetAcquisitionResource/Pages/EditAssetAcquisition.php rename to app/Filament/App/Resources/AssetAcquisitionResource/Pages/EditAssetAcquisition.php diff --git a/app/Filament/Admin/Resources/AssetAcquisitionResource/Pages/ListAssetAcquisitions.php b/app/Filament/App/Resources/AssetAcquisitionResource/Pages/ListAssetAcquisitions.php similarity index 100% rename from app/Filament/Admin/Resources/AssetAcquisitionResource/Pages/ListAssetAcquisitions.php rename to app/Filament/App/Resources/AssetAcquisitionResource/Pages/ListAssetAcquisitions.php diff --git a/app/Filament/Admin/Resources/AssetResource.php b/app/Filament/App/Resources/AssetResource.php similarity index 100% rename from app/Filament/Admin/Resources/AssetResource.php rename to app/Filament/App/Resources/AssetResource.php diff --git a/app/Filament/Admin/Resources/AssetResource/Pages/CreateAsset.php b/app/Filament/App/Resources/AssetResource/Pages/CreateAsset.php similarity index 100% rename from app/Filament/Admin/Resources/AssetResource/Pages/CreateAsset.php rename to app/Filament/App/Resources/AssetResource/Pages/CreateAsset.php diff --git a/app/Filament/Admin/Resources/AssetResource/Pages/EditAsset.php b/app/Filament/App/Resources/AssetResource/Pages/EditAsset.php similarity index 100% rename from app/Filament/Admin/Resources/AssetResource/Pages/EditAsset.php rename to app/Filament/App/Resources/AssetResource/Pages/EditAsset.php diff --git a/app/Filament/Admin/Resources/AssetResource/Pages/ListAssets.php b/app/Filament/App/Resources/AssetResource/Pages/ListAssets.php similarity index 100% rename from app/Filament/Admin/Resources/AssetResource/Pages/ListAssets.php rename to app/Filament/App/Resources/AssetResource/Pages/ListAssets.php diff --git a/app/Filament/Admin/Resources/CategoryResource.php b/app/Filament/App/Resources/CategoryResource.php similarity index 100% rename from app/Filament/Admin/Resources/CategoryResource.php rename to app/Filament/App/Resources/CategoryResource.php diff --git a/app/Filament/Admin/Resources/CategoryResource/Pages/CreateCategory.php b/app/Filament/App/Resources/CategoryResource/Pages/CreateCategory.php similarity index 100% rename from app/Filament/Admin/Resources/CategoryResource/Pages/CreateCategory.php rename to app/Filament/App/Resources/CategoryResource/Pages/CreateCategory.php diff --git a/app/Filament/Admin/Resources/CategoryResource/Pages/EditCategory.php b/app/Filament/App/Resources/CategoryResource/Pages/EditCategory.php similarity index 100% rename from app/Filament/Admin/Resources/CategoryResource/Pages/EditCategory.php rename to app/Filament/App/Resources/CategoryResource/Pages/EditCategory.php diff --git a/app/Filament/Admin/Resources/CategoryResource/Pages/ListCategories.php b/app/Filament/App/Resources/CategoryResource/Pages/ListCategories.php similarity index 100% rename from app/Filament/Admin/Resources/CategoryResource/Pages/ListCategories.php rename to app/Filament/App/Resources/CategoryResource/Pages/ListCategories.php diff --git a/app/Filament/Admin/Resources/CompanyResource.php b/app/Filament/App/Resources/CompanyResource.php similarity index 100% rename from app/Filament/Admin/Resources/CompanyResource.php rename to app/Filament/App/Resources/CompanyResource.php diff --git a/app/Filament/Admin/Resources/CompanyResource/Pages/CreateCompany.php b/app/Filament/App/Resources/CompanyResource/Pages/CreateCompany.php similarity index 100% rename from app/Filament/Admin/Resources/CompanyResource/Pages/CreateCompany.php rename to app/Filament/App/Resources/CompanyResource/Pages/CreateCompany.php diff --git a/app/Filament/Admin/Resources/CompanyResource/Pages/EditCompany.php b/app/Filament/App/Resources/CompanyResource/Pages/EditCompany.php similarity index 100% rename from app/Filament/Admin/Resources/CompanyResource/Pages/EditCompany.php rename to app/Filament/App/Resources/CompanyResource/Pages/EditCompany.php diff --git a/app/Filament/Admin/Resources/CompanyResource/Pages/ListCompanies.php b/app/Filament/App/Resources/CompanyResource/Pages/ListCompanies.php similarity index 100% rename from app/Filament/Admin/Resources/CompanyResource/Pages/ListCompanies.php rename to app/Filament/App/Resources/CompanyResource/Pages/ListCompanies.php diff --git a/app/Filament/Admin/Resources/CustomerResource.php b/app/Filament/App/Resources/CustomerResource.php similarity index 100% rename from app/Filament/Admin/Resources/CustomerResource.php rename to app/Filament/App/Resources/CustomerResource.php diff --git a/app/Filament/Admin/Resources/CustomerResource/Pages/CreateCustomer.php b/app/Filament/App/Resources/CustomerResource/Pages/CreateCustomer.php similarity index 100% rename from app/Filament/Admin/Resources/CustomerResource/Pages/CreateCustomer.php rename to app/Filament/App/Resources/CustomerResource/Pages/CreateCustomer.php diff --git a/app/Filament/Admin/Resources/CustomerResource/Pages/EditCustomer.php b/app/Filament/App/Resources/CustomerResource/Pages/EditCustomer.php similarity index 100% rename from app/Filament/Admin/Resources/CustomerResource/Pages/EditCustomer.php rename to app/Filament/App/Resources/CustomerResource/Pages/EditCustomer.php diff --git a/app/Filament/Admin/Resources/CustomerResource/Pages/ListCustomers.php b/app/Filament/App/Resources/CustomerResource/Pages/ListCustomers.php similarity index 100% rename from app/Filament/Admin/Resources/CustomerResource/Pages/ListCustomers.php rename to app/Filament/App/Resources/CustomerResource/Pages/ListCustomers.php diff --git a/app/Filament/Admin/Resources/InvoiceResource.php b/app/Filament/App/Resources/InvoiceResource.php similarity index 100% rename from app/Filament/Admin/Resources/InvoiceResource.php rename to app/Filament/App/Resources/InvoiceResource.php diff --git a/app/Filament/Admin/Resources/InvoiceResource/Pages/CreateInvoice.php b/app/Filament/App/Resources/InvoiceResource/Pages/CreateInvoice.php similarity index 100% rename from app/Filament/Admin/Resources/InvoiceResource/Pages/CreateInvoice.php rename to app/Filament/App/Resources/InvoiceResource/Pages/CreateInvoice.php diff --git a/app/Filament/Admin/Resources/InvoiceResource/Pages/EditInvoice.php b/app/Filament/App/Resources/InvoiceResource/Pages/EditInvoice.php similarity index 100% rename from app/Filament/Admin/Resources/InvoiceResource/Pages/EditInvoice.php rename to app/Filament/App/Resources/InvoiceResource/Pages/EditInvoice.php diff --git a/app/Filament/Admin/Resources/InvoiceResource/Pages/ListInvoices.php b/app/Filament/App/Resources/InvoiceResource/Pages/ListInvoices.php similarity index 100% rename from app/Filament/Admin/Resources/InvoiceResource/Pages/ListInvoices.php rename to app/Filament/App/Resources/InvoiceResource/Pages/ListInvoices.php diff --git a/app/Filament/Admin/Resources/PaymentResource.php b/app/Filament/App/Resources/PaymentResource.php similarity index 100% rename from app/Filament/Admin/Resources/PaymentResource.php rename to app/Filament/App/Resources/PaymentResource.php diff --git a/app/Filament/Admin/Resources/PaymentResource/Pages/CreatePayment.php b/app/Filament/App/Resources/PaymentResource/Pages/CreatePayment.php similarity index 100% rename from app/Filament/Admin/Resources/PaymentResource/Pages/CreatePayment.php rename to app/Filament/App/Resources/PaymentResource/Pages/CreatePayment.php diff --git a/app/Filament/Admin/Resources/PaymentResource/Pages/EditPayment.php b/app/Filament/App/Resources/PaymentResource/Pages/EditPayment.php similarity index 100% rename from app/Filament/Admin/Resources/PaymentResource/Pages/EditPayment.php rename to app/Filament/App/Resources/PaymentResource/Pages/EditPayment.php diff --git a/app/Filament/Admin/Resources/PaymentResource/Pages/ListPayments.php b/app/Filament/App/Resources/PaymentResource/Pages/ListPayments.php similarity index 100% rename from app/Filament/Admin/Resources/PaymentResource/Pages/ListPayments.php rename to app/Filament/App/Resources/PaymentResource/Pages/ListPayments.php diff --git a/app/Filament/Admin/Resources/PaymentTermResource.php b/app/Filament/App/Resources/PaymentTermResource.php similarity index 100% rename from app/Filament/Admin/Resources/PaymentTermResource.php rename to app/Filament/App/Resources/PaymentTermResource.php diff --git a/app/Filament/Admin/Resources/PaymentTermResource/Pages/CreatePaymentTerm.php b/app/Filament/App/Resources/PaymentTermResource/Pages/CreatePaymentTerm.php similarity index 100% rename from app/Filament/Admin/Resources/PaymentTermResource/Pages/CreatePaymentTerm.php rename to app/Filament/App/Resources/PaymentTermResource/Pages/CreatePaymentTerm.php diff --git a/app/Filament/Admin/Resources/PaymentTermResource/Pages/EditPaymentTerm.php b/app/Filament/App/Resources/PaymentTermResource/Pages/EditPaymentTerm.php similarity index 100% rename from app/Filament/Admin/Resources/PaymentTermResource/Pages/EditPaymentTerm.php rename to app/Filament/App/Resources/PaymentTermResource/Pages/EditPaymentTerm.php diff --git a/app/Filament/Admin/Resources/PaymentTermResource/Pages/ListPaymentTerms.php b/app/Filament/App/Resources/PaymentTermResource/Pages/ListPaymentTerms.php similarity index 100% rename from app/Filament/Admin/Resources/PaymentTermResource/Pages/ListPaymentTerms.php rename to app/Filament/App/Resources/PaymentTermResource/Pages/ListPaymentTerms.php diff --git a/app/Filament/Admin/Resources/SupplierResource.php b/app/Filament/App/Resources/SupplierResource.php similarity index 100% rename from app/Filament/Admin/Resources/SupplierResource.php rename to app/Filament/App/Resources/SupplierResource.php diff --git a/app/Filament/Admin/Resources/SupplierResource/Pages/CreateSupplier.php b/app/Filament/App/Resources/SupplierResource/Pages/CreateSupplier.php similarity index 100% rename from app/Filament/Admin/Resources/SupplierResource/Pages/CreateSupplier.php rename to app/Filament/App/Resources/SupplierResource/Pages/CreateSupplier.php diff --git a/app/Filament/Admin/Resources/SupplierResource/Pages/EditSupplier.php b/app/Filament/App/Resources/SupplierResource/Pages/EditSupplier.php similarity index 100% rename from app/Filament/Admin/Resources/SupplierResource/Pages/EditSupplier.php rename to app/Filament/App/Resources/SupplierResource/Pages/EditSupplier.php diff --git a/app/Filament/Admin/Resources/SupplierResource/Pages/ListSuppliers.php b/app/Filament/App/Resources/SupplierResource/Pages/ListSuppliers.php similarity index 100% rename from app/Filament/Admin/Resources/SupplierResource/Pages/ListSuppliers.php rename to app/Filament/App/Resources/SupplierResource/Pages/ListSuppliers.php diff --git a/app/Filament/Admin/Resources/TenantResource.php b/app/Filament/App/Resources/TenantResource.php similarity index 100% rename from app/Filament/Admin/Resources/TenantResource.php rename to app/Filament/App/Resources/TenantResource.php diff --git a/app/Filament/Admin/Resources/TenantResource/Pages/CreateTenant.php b/app/Filament/App/Resources/TenantResource/Pages/CreateTenant.php similarity index 100% rename from app/Filament/Admin/Resources/TenantResource/Pages/CreateTenant.php rename to app/Filament/App/Resources/TenantResource/Pages/CreateTenant.php diff --git a/app/Filament/Admin/Resources/TenantResource/Pages/EditTenant.php b/app/Filament/App/Resources/TenantResource/Pages/EditTenant.php similarity index 100% rename from app/Filament/Admin/Resources/TenantResource/Pages/EditTenant.php rename to app/Filament/App/Resources/TenantResource/Pages/EditTenant.php diff --git a/app/Filament/Admin/Resources/TenantResource/Pages/ListTenants.php b/app/Filament/App/Resources/TenantResource/Pages/ListTenants.php similarity index 100% rename from app/Filament/Admin/Resources/TenantResource/Pages/ListTenants.php rename to app/Filament/App/Resources/TenantResource/Pages/ListTenants.php diff --git a/app/Filament/Admin/Resources/TransactionResource.php b/app/Filament/App/Resources/TransactionResource.php similarity index 100% rename from app/Filament/Admin/Resources/TransactionResource.php rename to app/Filament/App/Resources/TransactionResource.php diff --git a/app/Filament/Admin/Resources/TransactionResource/Pages/CreateTransaction.php b/app/Filament/App/Resources/TransactionResource/Pages/CreateTransaction.php similarity index 100% rename from app/Filament/Admin/Resources/TransactionResource/Pages/CreateTransaction.php rename to app/Filament/App/Resources/TransactionResource/Pages/CreateTransaction.php diff --git a/app/Filament/Admin/Resources/TransactionResource/Pages/EditTransaction.php b/app/Filament/App/Resources/TransactionResource/Pages/EditTransaction.php similarity index 100% rename from app/Filament/Admin/Resources/TransactionResource/Pages/EditTransaction.php rename to app/Filament/App/Resources/TransactionResource/Pages/EditTransaction.php diff --git a/app/Filament/Admin/Resources/TransactionResource/Pages/ListTransactions.php b/app/Filament/App/Resources/TransactionResource/Pages/ListTransactions.php similarity index 100% rename from app/Filament/Admin/Resources/TransactionResource/Pages/ListTransactions.php rename to app/Filament/App/Resources/TransactionResource/Pages/ListTransactions.php diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index ae5660e0..da1c2d91 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -3,7 +3,6 @@ namespace App\Providers\Filament; use App\Filament\Admin\Pages; -use App\Filament\Admin\Pages\EditProfile; use App\Http\Middleware\TeamsPermission; use App\Listeners\CreatePersonalTeam; use App\Listeners\SwitchTeam; @@ -43,26 +42,16 @@ public function panel(Panel $panel): Panel ->id('admin') ->path('admin') ->login([AuthenticatedSessionController::class, 'create']) - ->registration([RegisteredUserController::class, 'create']) ->passwordReset() ->emailVerification() ->viteTheme('resources/css/Filament/Admin/theme.css') ->colors([ 'primary' => Color::Gray, ]) - ->userMenuItems([ - MenuItem::make() - ->label('Profile') - ->icon('heroicon-o-user-circle') - ->url(fn () => $this->shouldRegisterMenuItem() - ? url(EditProfile::getUrl()) - : url($panel->getPath())), - ]) ->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([ - FilamentPage\Dashboard::class, - Pages\EditProfile::class, + Filament\Page\Dashboard::class, ]) ->discoverWidgets(in: app_path('Filament/Admin/Widgets/Home'), for: 'App\\Filament\\Admin\\Widgets\\Home') ->widgets([ @@ -82,39 +71,11 @@ public function panel(Panel $panel): Panel ]) ->authMiddleware([ Authenticate::class, - TeamsPermission::class, ]) ->plugins([ \BezhanSalleh\FilamentShield\FilamentShieldPlugin::make() ]); - if (Features::hasApiFeatures()) { - $panel->userMenuItems([ - MenuItem::make() - ->label('API Tokens') - ->icon('heroicon-o-key') - ->url(fn () => $this->shouldRegisterMenuItem() - ? url(Pages\ApiTokenManagerPage::getUrl()) - : url($panel->getPath())), - ]); - } - - if (Features::hasTeamFeatures()) { - $panel - ->tenant(Team::class, ownershipRelationship: 'team') - ->tenantRegistration(Pages\CreateTeam::class) - ->tenantProfile(Pages\EditTeam::class) - ->userMenuItems([ - MenuItem::make() - ->label('Team Settings') - ->icon('heroicon-o-cog-6-tooth') - ->url(fn () => $this->shouldRegisterMenuItem() - ? url(Pages\EditTeam::getUrl()) - : url($panel->getPath())), - ]); - } - - return $panel; } public function boot() @@ -129,21 +90,6 @@ public function boot() */ Jetstream::$registersRoutes = false; - /** - * Listen and create personal team for new accounts. - */ - Event::listen( - Registered::class, - CreatePersonalTeam::class, - ); - - /** - * Listen and switch team if tenant was changed. - */ - Event::listen( - TenantSet::class, - SwitchTeam::class, - ); } public function shouldRegisterMenuItem(): bool