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.

This commit is contained in:
2025-07-29 15:14:36 +05:00
parent 0a3fdf347f
commit c7e01f404d
14 changed files with 128 additions and 12 deletions

View File

@@ -223,7 +223,7 @@ class AboutPageSettings extends SettingsPage
public static function getNavigationGroup(): ?string
{
return __('CMS');
return __('About US');
}
public static function getNavigationLabel(): string

View File

@@ -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

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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';

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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,

101
config/filament.php Normal file
View File

@@ -0,0 +1,101 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Broadcasting
|--------------------------------------------------------------------------
|
| By uncommenting the Laravel Echo configuration, you may connect Filament
| to any Pusher-compatible websockets server.
|
| This will allow your users to receive real-time notifications.
|
*/
'broadcasting' => [
// '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',
];

View File

@@ -30,6 +30,9 @@
<div class="price__area section-padding">
<div class="container">
<div class="row">
<div class="col-xl-12 mb-25 text-center">
<h3 class="section-title">For general application, send your resume at career@gujurly.com</h3>
</div>
@forelse ($careers as $career)
<div class="col-xl-4 col-md-6 xl-mb-25 wow fadeInUp" data-wow-delay=".4s">
<div class="price__area-item">

View File

@@ -30,6 +30,9 @@
<div class="price__area section-padding">
<div class="container">
<div class="row">
<div class="col-xl-12 mb-25 text-center">
<h3 class="section-title">For general application, send your resume at career@gujurly.com</h3>
</div>
@forelse ($internships as $internship)
<div class="col-xl-4 col-md-6 xl-mb-25 wow fadeInUp" data-wow-delay=".4s">
<div class="price__area-item">