From c7e01f404df817a8bb14ff41c4abd87b554e6919 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Tue, 29 Jul 2025 15:14:36 +0500 Subject: [PATCH] Update navigation groups for various resources: change navigation group names for AboutPageSettings, ContactPageSettings, AuthorResource, BrandResource, CommentResource, InternshipResource, NewsResource, SolutionResource, SuccessResource, and TeamMemberResource to better reflect their content. Enhance panel navigation structure by adding new groups for improved organization. --- app/Filament/Pages/AboutPageSettings.php | 2 +- app/Filament/Pages/ContactPageSettings.php | 4 +- app/Filament/Resources/AuthorResource.php | 2 +- app/Filament/Resources/BrandResource.php | 2 +- app/Filament/Resources/CommentResource.php | 2 +- app/Filament/Resources/InternshipResource.php | 2 +- app/Filament/Resources/NewsResource.php | 2 +- app/Filament/Resources/SolutionResource.php | 2 +- app/Filament/Resources/SuccessResource.php | 2 +- app/Filament/Resources/TeamMemberResource.php | 2 +- app/Providers/Filament/PanelPanelProvider.php | 11 +- config/filament.php | 101 ++++++++++++++++++ .../views/web/pages/careers/index.blade.php | 3 + .../web/pages/internships/index.blade.php | 3 + 14 files changed, 128 insertions(+), 12 deletions(-) create mode 100644 config/filament.php diff --git a/app/Filament/Pages/AboutPageSettings.php b/app/Filament/Pages/AboutPageSettings.php index 97a6893..f542029 100644 --- a/app/Filament/Pages/AboutPageSettings.php +++ b/app/Filament/Pages/AboutPageSettings.php @@ -223,7 +223,7 @@ class AboutPageSettings extends SettingsPage public static function getNavigationGroup(): ?string { - return __('CMS'); + return __('About US'); } public static function getNavigationLabel(): string diff --git a/app/Filament/Pages/ContactPageSettings.php b/app/Filament/Pages/ContactPageSettings.php index 1306df0..04e0130 100644 --- a/app/Filament/Pages/ContactPageSettings.php +++ b/app/Filament/Pages/ContactPageSettings.php @@ -12,7 +12,7 @@ use Illuminate\Contracts\Support\Htmlable; class ContactPageSettings extends SettingsPage { - protected static ?string $navigationGroup = 'CMS'; + protected static ?string $navigationGroup = 'Contact'; protected static ?string $navigationIcon = 'heroicon-o-phone'; @@ -62,7 +62,7 @@ class ContactPageSettings extends SettingsPage public static function getNavigationGroup(): ?string { - return __('CMS'); + return __('Contact'); } public static function getNavigationLabel(): string diff --git a/app/Filament/Resources/AuthorResource.php b/app/Filament/Resources/AuthorResource.php index 7f0600b..4b5aa0f 100644 --- a/app/Filament/Resources/AuthorResource.php +++ b/app/Filament/Resources/AuthorResource.php @@ -20,7 +20,7 @@ class AuthorResource extends Resource protected static ?string $navigationIcon = 'heroicon-o-users'; - protected static ?string $navigationGroup = 'News'; + protected static ?string $navigationGroup = 'News & Stories'; public static function form(Form $form): Form { diff --git a/app/Filament/Resources/BrandResource.php b/app/Filament/Resources/BrandResource.php index d2081e1..0237324 100644 --- a/app/Filament/Resources/BrandResource.php +++ b/app/Filament/Resources/BrandResource.php @@ -21,7 +21,7 @@ class BrandResource extends Resource protected static ?string $navigationIcon = 'heroicon-o-tag'; - protected static ?string $navigationGroup = 'Brands'; + protected static ?string $navigationGroup = 'Home'; public static function form(Form $form): Form { diff --git a/app/Filament/Resources/CommentResource.php b/app/Filament/Resources/CommentResource.php index fd1f09c..2fe71ba 100644 --- a/app/Filament/Resources/CommentResource.php +++ b/app/Filament/Resources/CommentResource.php @@ -19,7 +19,7 @@ class CommentResource extends Resource protected static ?string $navigationIcon = 'heroicon-o-chat-bubble-bottom-center-text'; - protected static ?string $navigationGroup = 'News'; + protected static ?string $navigationGroup = 'News & Stories'; public static function form(Form $form): Form { diff --git a/app/Filament/Resources/InternshipResource.php b/app/Filament/Resources/InternshipResource.php index fb079f7..3a98a61 100644 --- a/app/Filament/Resources/InternshipResource.php +++ b/app/Filament/Resources/InternshipResource.php @@ -18,7 +18,7 @@ class InternshipResource extends Resource { protected static ?string $model = Internship::class; - protected static ?string $navigationGroup = 'Internships'; + protected static ?string $navigationGroup = 'Careers'; protected static ?string $navigationIcon = 'heroicon-o-academic-cap'; diff --git a/app/Filament/Resources/NewsResource.php b/app/Filament/Resources/NewsResource.php index 57a18ee..882e5cc 100644 --- a/app/Filament/Resources/NewsResource.php +++ b/app/Filament/Resources/NewsResource.php @@ -24,7 +24,7 @@ class NewsResource extends Resource protected static ?string $navigationIcon = 'heroicon-o-newspaper'; - protected static ?string $navigationGroup = 'News'; + protected static ?string $navigationGroup = 'News & Stories'; public static function form(Form $form): Form { diff --git a/app/Filament/Resources/SolutionResource.php b/app/Filament/Resources/SolutionResource.php index 7cea512..8dd187d 100644 --- a/app/Filament/Resources/SolutionResource.php +++ b/app/Filament/Resources/SolutionResource.php @@ -17,7 +17,7 @@ class SolutionResource extends Resource protected static ?string $navigationIcon = 'heroicon-o-light-bulb'; - protected static ?string $navigationGroup = 'Solutions'; + protected static ?string $navigationGroup = 'Our Solutions'; public static function form(Form $form): Form { diff --git a/app/Filament/Resources/SuccessResource.php b/app/Filament/Resources/SuccessResource.php index dac3486..80c735c 100644 --- a/app/Filament/Resources/SuccessResource.php +++ b/app/Filament/Resources/SuccessResource.php @@ -22,7 +22,7 @@ class SuccessResource extends Resource protected static ?string $navigationIcon = 'heroicon-o-bookmark-square'; - protected static ?string $navigationGroup = 'Success Stories'; + protected static ?string $navigationGroup = 'News & Stories'; public static function form(Form $form): Form { diff --git a/app/Filament/Resources/TeamMemberResource.php b/app/Filament/Resources/TeamMemberResource.php index 21e80a8..3148aa1 100644 --- a/app/Filament/Resources/TeamMemberResource.php +++ b/app/Filament/Resources/TeamMemberResource.php @@ -26,7 +26,7 @@ class TeamMemberResource extends Resource protected static ?string $navigationIcon = 'heroicon-o-users'; - protected static ?string $navigationGroup = 'CMS'; + protected static ?string $navigationGroup = 'About US'; public static function form(Form $form): Form { diff --git a/app/Providers/Filament/PanelPanelProvider.php b/app/Providers/Filament/PanelPanelProvider.php index 2d58f54..9338c89 100644 --- a/app/Providers/Filament/PanelPanelProvider.php +++ b/app/Providers/Filament/PanelPanelProvider.php @@ -33,6 +33,16 @@ class PanelPanelProvider extends PanelProvider ->colors([ 'primary' => Color::Amber, ]) + ->navigationGroups([ + 'Home', + 'About US', + 'Our Solutions', + 'News & Stories', + 'Careers', + 'Contact', + 'Settings', + 'Activities', + ]) ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources') ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages') ->pages([ @@ -43,7 +53,6 @@ class PanelPanelProvider extends PanelProvider ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets') ->widgets([ Widgets\AccountWidget::class, - Widgets\FilamentInfoWidget::class, ]) ->middleware([ EncryptCookies::class, diff --git a/config/filament.php b/config/filament.php new file mode 100644 index 0000000..488a01f --- /dev/null +++ b/config/filament.php @@ -0,0 +1,101 @@ + [ + + // 'echo' => [ + // 'broadcaster' => 'pusher', + // 'key' => env('VITE_PUSHER_APP_KEY'), + // 'cluster' => env('VITE_PUSHER_APP_CLUSTER'), + // 'wsHost' => env('VITE_PUSHER_HOST'), + // 'wsPort' => env('VITE_PUSHER_PORT'), + // 'wssPort' => env('VITE_PUSHER_PORT'), + // 'authEndpoint' => '/broadcasting/auth', + // 'disableStats' => true, + // 'encrypted' => true, + // 'forceTLS' => true, + // ], + + ], + + /* + |-------------------------------------------------------------------------- + | Default Filesystem Disk + |-------------------------------------------------------------------------- + | + | This is the storage disk Filament will use to store files. You may use + | any of the disks defined in the `config/filesystems.php`. + | + */ + + 'default_filesystem_disk' => env('FILAMENT_FILESYSTEM_DISK', 'public'), + + /* + |-------------------------------------------------------------------------- + | Assets Path + |-------------------------------------------------------------------------- + | + | This is the directory where Filament's assets will be published to. It + | is relative to the `public` directory of your Laravel application. + | + | After changing the path, you should run `php artisan filament:assets`. + | + */ + + 'assets_path' => null, + + /* + |-------------------------------------------------------------------------- + | Cache Path + |-------------------------------------------------------------------------- + | + | This is the directory that Filament will use to store cache files that + | are used to optimize the registration of components. + | + | After changing the path, you should run `php artisan filament:cache-components`. + | + */ + + 'cache_path' => base_path('bootstrap/cache/filament'), + + /* + |-------------------------------------------------------------------------- + | Livewire Loading Delay + |-------------------------------------------------------------------------- + | + | This sets the delay before loading indicators appear. + | + | Setting this to 'none' makes indicators appear immediately, which can be + | desirable for high-latency connections. Setting it to 'default' applies + | Livewire's standard 200ms delay. + | + */ + + 'livewire_loading_delay' => 'default', + + /* + |-------------------------------------------------------------------------- + | System Route Prefix + |-------------------------------------------------------------------------- + | + | This is the prefix used for the system routes that Filament registers, + | such as the routes for downloading exports and failed import rows. + | + */ + + 'system_route_prefix' => 'filament', + +]; diff --git a/resources/views/web/pages/careers/index.blade.php b/resources/views/web/pages/careers/index.blade.php index 20ff5eb..f6b87f1 100644 --- a/resources/views/web/pages/careers/index.blade.php +++ b/resources/views/web/pages/careers/index.blade.php @@ -30,6 +30,9 @@
+
+

For general application, send your resume at career@gujurly.com

+
@forelse ($careers as $career)
diff --git a/resources/views/web/pages/internships/index.blade.php b/resources/views/web/pages/internships/index.blade.php index 7e4d281..3088738 100644 --- a/resources/views/web/pages/internships/index.blade.php +++ b/resources/views/web/pages/internships/index.blade.php @@ -30,6 +30,9 @@
+
+

For general application, send your resume at career@gujurly.com

+
@forelse ($internships as $internship)