├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── README.md ├── TODO.md ├── app ├── Console │ └── Kernel.php ├── CoreLogic │ ├── Enums │ │ ├── LanguageEnum.php │ │ └── StatusEnum.php │ └── Interfaces │ │ └── HasColor.php ├── Exceptions │ └── Handler.php ├── Filament │ ├── Pages │ │ ├── AdminPanelSettings.php │ │ ├── GeneralSettings.php │ │ ├── NotificationConfiguration.php │ │ ├── PaymentConfiguration.php │ │ ├── ShippingConfiguration.php │ │ ├── SmsConfiguration.php │ │ └── WebsiteSettings.php │ └── Resources │ │ ├── UserResource.php │ │ └── UserResource │ │ ├── Pages │ │ ├── ChangePasswordUser.php │ │ ├── CreateUser.php │ │ ├── EditUser.php │ │ ├── ListActivitiesUser.php │ │ ├── ListUserActivitiesUser.php │ │ ├── ListUsers.php │ │ ├── ManageUser.php │ │ └── ViewUser.php │ │ └── Widgets │ │ ├── UserClosedWidget.php │ │ ├── UserLastLoginWidget.php │ │ ├── UserProfileWidget.php │ │ └── UserStatusWidget.php ├── Http │ ├── Controllers │ │ └── Controller.php │ ├── Kernel.php │ └── Middleware │ │ ├── Authenticate.php │ │ ├── EncryptCookies.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── TrustProxies.php │ │ ├── ValidateSignature.php │ │ └── VerifyCsrfToken.php ├── Models │ └── User.php ├── Policies │ └── RolePolicy.php └── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ ├── Filament │ └── AdminPanelProvider.php │ └── RouteServiceProvider.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── activitylog.php ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── cors.php ├── database.php ├── filament-shield.php ├── filament.php ├── filesystems.php ├── hashing.php ├── logging.php ├── mail.php ├── media-library.php ├── queue.php ├── sanctum.php ├── services.php ├── session.php └── view.php ├── database ├── .gitignore ├── factories │ └── UserFactory.php ├── migrations │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2014_10_12_100000_create_password_reset_tokens_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2019_12_14_000001_create_personal_access_tokens_table.php │ ├── 2023_03_17_200950_create_permission_tables.php │ ├── 2023_03_18_110536_create_media_table.php │ ├── 2023_03_18_111635_create_activity_log_table.php │ ├── 2023_03_18_111636_add_event_column_to_activity_log_table.php │ └── 2023_03_18_111637_add_batch_uuid_column_to_activity_log_table.php └── seeders │ ├── DatabaseSeeder.php │ └── UserSeeder.php ├── lang ├── ar.json └── vendor │ └── filament-shield │ ├── ar │ └── filament-shield.php │ ├── de │ └── filament-shield.php │ ├── en │ └── filament-shield.php │ ├── es │ └── filament-shield.php │ ├── fa │ └── filament-shield.php │ ├── fr │ └── filament-shield.php │ ├── hu │ └── filament-shield.php │ ├── id │ └── filament-shield.php │ ├── it │ └── filament-shield.php │ ├── ja │ └── filament-shield.php │ ├── nl │ └── filament-shield.php │ ├── pt_BR │ └── filament-shield.php │ ├── ro │ └── filament-shield.php │ ├── ru │ └── filament-shield.php │ ├── tr │ └── filament-shield.php │ ├── uk │ └── filament-shield.php │ └── vi │ └── filament-shield.php ├── package-lock.json ├── package.json ├── phpunit.xml ├── public ├── .htaccess ├── css │ ├── aymanalhattami │ │ └── filament-page-with-sidebar │ │ │ └── filament-page-with-sidebar.css │ ├── bezhansalleh │ │ └── filament-language-switch │ │ │ └── filament-language-switch.css │ └── filament │ │ ├── filament │ │ └── app.css │ │ ├── forms │ │ └── forms.css │ │ └── support │ │ └── support.css ├── favicon.ico ├── images │ ├── users-index.png │ ├── users-view-AR.png │ └── users-view-EN.png ├── index.php ├── js │ └── filament │ │ ├── filament │ │ ├── app.js │ │ └── echo.js │ │ ├── forms │ │ ├── components │ │ │ ├── color-picker.js │ │ │ ├── date-time-picker.js │ │ │ ├── file-upload.js │ │ │ ├── key-value.js │ │ │ ├── markdown-editor.js │ │ │ ├── rich-editor.js │ │ │ ├── select.js │ │ │ ├── tags-input.js │ │ │ └── textarea.js │ │ └── forms.js │ │ ├── notifications │ │ └── notifications.js │ │ ├── support │ │ ├── async-alpine.js │ │ └── support.js │ │ ├── tables │ │ ├── components │ │ │ └── table.js │ │ └── tables.js │ │ └── widgets │ │ └── components │ │ ├── chart.js │ │ └── stats-overview │ │ └── stat │ │ └── chart.js └── robots.txt ├── resources ├── css │ ├── app.css │ └── filament.css ├── js │ ├── app.js │ └── bootstrap.js └── views │ ├── components │ ├── alerts │ │ └── warning.blade.php │ └── badges │ │ └── index.blade.php │ ├── filament │ ├── pages │ │ ├── admin-panel-settings.blade.php │ │ ├── general-settings.blade.php │ │ ├── notification-configuration.blade.php │ │ ├── payment-configuration.blade.php │ │ ├── questions.blade.php │ │ ├── shipping-configuration.blade.php │ │ ├── sms-configuration.blade.php │ │ └── web-site-settings.blade.php │ └── resources │ │ └── user-resource │ │ ├── pages │ │ ├── change-password-user.blade.php │ │ ├── list-activities-user.blade.php │ │ ├── list-user-activities-user.blade.php │ │ └── manage-user.blade.php │ │ └── widgets │ │ ├── user-closed-widget.blade.php │ │ ├── user-last-login-widget.blade.php │ │ ├── user-profile-widget.blade.php │ │ └── user-status-widget.blade.php │ ├── vendor │ └── media-library │ │ ├── image.blade.php │ │ ├── placeholderSvg.blade.php │ │ ├── responsiveImage.blade.php │ │ └── responsiveImageWithPlaceholder.blade.php │ └── welcome.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── CreatesApplication.php ├── Feature │ └── ExampleTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── vite.config.js /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | 17 | [docker-compose.yml] 18 | indent_size = 4 19 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | LOG_DEPRECATIONS_CHANNEL=null 9 | LOG_LEVEL=debug 10 | 11 | DB_CONNECTION=mysql 12 | DB_HOST=127.0.0.1 13 | DB_PORT=3306 14 | DB_DATABASE=laravel 15 | DB_USERNAME=root 16 | DB_PASSWORD= 17 | 18 | BROADCAST_DRIVER=log 19 | CACHE_DRIVER=file 20 | FILESYSTEM_DISK=local 21 | QUEUE_CONNECTION=sync 22 | SESSION_DRIVER=file 23 | SESSION_LIFETIME=120 24 | 25 | MEMCACHED_HOST=127.0.0.1 26 | 27 | REDIS_HOST=127.0.0.1 28 | REDIS_PASSWORD=null 29 | REDIS_PORT=6379 30 | 31 | MAIL_MAILER=smtp 32 | MAIL_HOST=mailpit 33 | MAIL_PORT=1025 34 | MAIL_USERNAME=null 35 | MAIL_PASSWORD=null 36 | MAIL_ENCRYPTION=null 37 | MAIL_FROM_ADDRESS="hello@example.com" 38 | MAIL_FROM_NAME="${APP_NAME}" 39 | 40 | AWS_ACCESS_KEY_ID= 41 | AWS_SECRET_ACCESS_KEY= 42 | AWS_DEFAULT_REGION=us-east-1 43 | AWS_BUCKET= 44 | AWS_USE_PATH_STYLE_ENDPOINT=false 45 | 46 | PUSHER_APP_ID= 47 | PUSHER_APP_KEY= 48 | PUSHER_APP_SECRET= 49 | PUSHER_HOST= 50 | PUSHER_PORT=443 51 | PUSHER_SCHEME=https 52 | PUSHER_APP_CLUSTER=mt1 53 | 54 | VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 55 | VITE_PUSHER_HOST="${PUSHER_HOST}" 56 | VITE_PUSHER_PORT="${PUSHER_PORT}" 57 | VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" 58 | VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 59 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | 3 | *.blade.php diff=html 4 | *.css diff=css 5 | *.html diff=html 6 | *.md diff=markdown 7 | *.php diff=php 8 | 9 | /.github export-ignore 10 | CHANGELOG.md export-ignore 11 | .styleci.yml export-ignore 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.phpunit.cache 2 | /node_modules 3 | /public/build 4 | /public/hot 5 | /public/storage 6 | /storage/*.key 7 | /vendor 8 | .env 9 | .env.backup 10 | .env.production 11 | .phpunit.result.cache 12 | Homestead.json 13 | Homestead.yaml 14 | auth.json 15 | npm-debug.log 16 | yarn-error.log 17 | /.fleet 18 | /.idea 19 | /.vscode 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Filament Page With Sidebar Demo Project 3 | 4 | > **Note:** 5 | > For Filament 2.x use [filament-v2 branch](https://github.com/aymanalhattami/filament-page-with-sidebar-project/tree/filament-v2) 6 | 7 | 8 | Demo project for [Filament Page With Sidebar](https://github.com/aymanalhattami/filament-page-with-sidebar) package 9 | 10 | ## Screenshots 11 | ![AdvancedFilters](public/images/users-view-EN.png) 12 | 13 | ![AdvancedFilters](public/images/users-view-AR.png) 14 | 15 | # Installation 16 | ```bash 17 | git clone https://github.com/aymanalhattami/filament-page-with-sidebar-project.git 18 | ``` 19 | 20 | ```bash 21 | cd filament-page-with-sidebar-project 22 | ``` 23 | 24 | ```bash 25 | composer install 26 | ``` 27 | 28 | ```bash 29 | copy .env.example .env 30 | ``` 31 | 32 | Create database and prepare database connection 33 | 34 | ```bash 35 | php artisan key:generate 36 | ``` 37 | 38 | ```bash 39 | php artisan migrate --seed 40 | ``` 41 | 42 | ```bash 43 | php artisan serve 44 | ``` 45 | 46 | ```bash 47 | email: admin@admin.com 48 | password: password 49 | ``` 50 | 51 | Go to 52 | 53 | http://127.0.0.1:8008/admin/users 54 | 55 | and then click 'view' button of any user -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- 1 | tmp -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 16 | } 17 | 18 | /** 19 | * Register the commands for the application. 20 | */ 21 | protected function commands(): void 22 | { 23 | $this->load(__DIR__.'/Commands'); 24 | 25 | require base_path('routes/console.php'); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/CoreLogic/Enums/LanguageEnum.php: -------------------------------------------------------------------------------- 1 | 'Arabic', 16 | self::English => 'English', 17 | default => 'Arabic' 18 | }; 19 | } 20 | 21 | // public function color(): string 22 | // { 23 | // return match ($this) { 24 | // self::Arabic => ColorEnum::Blue->value, 25 | // self::English => ColorEnum::Indigo->value, 26 | // default => ColorEnum::Blue->value 27 | // }; 28 | // } 29 | 30 | public static function toArray() 31 | { 32 | $statuses = []; 33 | 34 | foreach (self::cases() as $status) { 35 | $statuses[$status->value] = $status->name; 36 | } 37 | 38 | return $statuses; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/CoreLogic/Enums/StatusEnum.php: -------------------------------------------------------------------------------- 1 | trans(self::Pending->name, [], $language ?? 'en'), 27 | self::Completed => trans(self::Completed->name, [], $language ?? 'en'), 28 | self::Failed => trans(self::Failed->name, [], $language ?? 'en'), 29 | self::Progress => trans(self::Progress->name, [], $language ?? 'en'), 30 | self::Reversed => trans(self::Reversed->name, [], $language ?? 'en'), 31 | self::Canceled => trans(self::Canceled->name, [], $language ?? 'en'), 32 | self::Rejected => trans(self::Rejected->name, [], $language ?? 'en'), 33 | self::Closed => trans(self::Active->name, [], $language ?? 'en'), 34 | self::Blocked => trans(self::Blocked->name, [], $language ?? 'en'), 35 | self::Active => trans(self::Active->name, [], $language ?? 'en'), 36 | self::InActive => trans(self::InActive->name, [], $language ?? 'en'), 37 | self::Locked => trans(self::Locked->name, [], $language ?? 'en'), 38 | self::Normal => trans(self::Normal->name, [], $language ?? 'en'), 39 | default => trans(self::Pending->name, [], $language ?? 'en') 40 | }; 41 | } 42 | 43 | // public function color(): string 44 | // { 45 | // return match ($this) { 46 | // self::Pending => ColorEnum::Gray->value, 47 | // self::Completed => ColorEnum::Green->value, 48 | // self::Failed => ColorEnum::Red->value, 49 | // self::Progress => ColorEnum::Gray->value, 50 | // self::Reversed => ColorEnum::Red->value, 51 | // self::Canceled => ColorEnum::Red->value, 52 | // self::Rejected => ColorEnum::Red->value, 53 | // self::Active => ColorEnum::Green->value, 54 | // self::InActive => ColorEnum::Red->value, 55 | // self::Closed => ColorEnum::Red->value, 56 | // self::Blocked => ColorEnum::Yellow->value, 57 | // self::Locked => ColorEnum::Red->value, 58 | // self::Normal => ColorEnum::Gray->value, 59 | // default => ColorEnum::Gray->value 60 | // }; 61 | // } 62 | 63 | public static function forUser() 64 | { 65 | return [ 66 | self::Pending, 67 | self::Active, 68 | self::Blocked, 69 | self::Closed, 70 | ]; 71 | } 72 | 73 | public static function forUserToArray() 74 | { 75 | $statuses = []; 76 | 77 | foreach (self::forUser() as $status) { 78 | $statuses[$status->value] = $status->name; 79 | } 80 | 81 | return $statuses; 82 | } 83 | 84 | public static function forAccount() 85 | { 86 | return [ 87 | self::Pending, 88 | self::Active, 89 | self::Blocked, 90 | self::Closed, 91 | self::Locked, 92 | ]; 93 | } 94 | 95 | public static function forAccountToArray() 96 | { 97 | $statuses = []; 98 | 99 | foreach (self::forAccount() as $status) { 100 | $statuses[$status->value] = $status->name; 101 | } 102 | 103 | return $statuses; 104 | } 105 | 106 | public static function forBoolean() 107 | { 108 | return [ 109 | self::Active, 110 | self::InActive, 111 | ]; 112 | } 113 | 114 | public static function forBooleanToArray() 115 | { 116 | $statuses = []; 117 | 118 | foreach (self::forBoolean() as $status) { 119 | $statuses[$status->value] = $status->name; 120 | } 121 | 122 | return $statuses; 123 | } 124 | 125 | public static function toArray() 126 | { 127 | $statuses = []; 128 | 129 | foreach (self::cases() as $status) { 130 | $statuses[$status->value] = $status->name; 131 | } 132 | 133 | return $statuses; 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /app/CoreLogic/Interfaces/HasColor.php: -------------------------------------------------------------------------------- 1 | , \Psr\Log\LogLevel::*> 14 | */ 15 | protected $levels = [ 16 | // 17 | ]; 18 | 19 | /** 20 | * A list of the exception types that are not reported. 21 | * 22 | * @var array> 23 | */ 24 | protected $dontReport = [ 25 | // 26 | ]; 27 | 28 | /** 29 | * A list of the inputs that are never flashed to the session on validation exceptions. 30 | * 31 | * @var array 32 | */ 33 | protected $dontFlash = [ 34 | 'current_password', 35 | 'password', 36 | 'password_confirmation', 37 | ]; 38 | 39 | /** 40 | * Register the exception handling callbacks for the application. 41 | */ 42 | public function register(): void 43 | { 44 | $this->reportable(function (Throwable $e) { 45 | // 46 | }); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /app/Filament/Pages/AdminPanelSettings.php: -------------------------------------------------------------------------------- 1 | setTitle('Application Settings') 28 | ->setDescription('general, admin, website, sms, payments, notifications, shipping') 29 | ->setNavigationItems([ 30 | PageNavigationItem::make('General Settings') 31 | ->translateLabel() 32 | ->url(GeneralSettings::getUrl()) 33 | ->icon('heroicon-o-cog-6-tooth') 34 | ->isActiveWhen(function () { 35 | return request()->routeIs(GeneralSettings::getRouteName()); 36 | }) 37 | ->visible(true), 38 | PageNavigationItem::make('Admin Panel Settings') 39 | ->translateLabel() 40 | ->url(AdminPanelSettings::getUrl()) 41 | ->icon('heroicon-o-cog-6-tooth') 42 | ->isActiveWhen(function () { 43 | return request()->routeIs(AdminPanelSettings::getRouteName()); 44 | }) 45 | ->visible(true), 46 | PageNavigationItem::make('Web Settings') 47 | ->translateLabel() 48 | ->url(WebsiteSettings::getUrl()) 49 | ->icon('heroicon-o-cog-6-tooth') 50 | ->isActiveWhen(function () { 51 | return request()->routeIs(WebsiteSettings::getRouteName()); 52 | }) 53 | ->visible(true), 54 | PageNavigationItem::make('SMS Configuration') 55 | ->translateLabel() 56 | ->url(SmsConfiguration::getUrl()) 57 | ->icon('heroicon-o-chat-bubble-bottom-center-text') 58 | ->isActiveWhen(function () { 59 | return request()->routeIs(SmsConfiguration::getRouteName()); 60 | }) 61 | ->visible(true), 62 | PageNavigationItem::make('Notification Configuration') 63 | ->translateLabel() 64 | ->url(NotificationConfiguration::getUrl()) 65 | ->icon('heroicon-o-bell') 66 | ->isActiveWhen(function () { 67 | return request()->routeIs(NotificationConfiguration::getRouteName()); 68 | }) 69 | ->visible(true), 70 | PageNavigationItem::make('Payment Configuration') 71 | ->translateLabel() 72 | ->url(PaymentConfiguration::getUrl()) 73 | ->icon('heroicon-o-currency-dollar') 74 | ->isActiveWhen(function () { 75 | return request()->routeIs(PaymentConfiguration::getRouteName()); 76 | }) 77 | ->visible(true), 78 | PageNavigationItem::make('Shipping Configuration') 79 | ->translateLabel() 80 | ->url(ShippingConfiguration::getUrl()) 81 | ->icon('heroicon-o-truck') 82 | ->isActiveWhen(function () { 83 | return request()->routeIs(ShippingConfiguration::getRouteName()); 84 | }) 85 | ->visible(true), 86 | ]); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /app/Filament/Pages/GeneralSettings.php: -------------------------------------------------------------------------------- 1 | setTitle('Application Settings') 22 | ->setDescription('general, admin, website, sms, payments, notifications, shipping') 23 | ->setNavigationItems([ 24 | PageNavigationItem::make('General Settings') 25 | ->translateLabel() 26 | ->url(GeneralSettings::getUrl()) 27 | ->icon('heroicon-o-cog-6-tooth') 28 | ->isActiveWhen(function () { 29 | return request()->routeIs(GeneralSettings::getRouteName()); 30 | }) 31 | ->visible(true) 32 | ->group('Settings'), 33 | PageNavigationItem::make('Admin Panel Settings') 34 | ->translateLabel() 35 | ->url(AdminPanelSettings::getUrl()) 36 | ->icon('heroicon-o-cog-6-tooth') 37 | ->isActiveWhen(function () { 38 | return request()->routeIs(AdminPanelSettings::getRouteName()); 39 | }) 40 | ->visible(true) 41 | ->group('Settings'), 42 | PageNavigationItem::make('Web Settings') 43 | ->translateLabel() 44 | ->url(WebsiteSettings::getUrl()) 45 | ->icon('heroicon-o-cog-6-tooth') 46 | ->isActiveWhen(function () { 47 | return request()->routeIs(WebsiteSettings::getRouteName()); 48 | }) 49 | ->visible(true), 50 | PageNavigationItem::make('SMS Configuration') 51 | ->translateLabel() 52 | ->url(SmsConfiguration::getUrl()) 53 | ->icon('heroicon-o-chat-bubble-bottom-center-text') 54 | ->isActiveWhen(function () { 55 | return request()->routeIs(SmsConfiguration::getRouteName()); 56 | }) 57 | ->visible(true), 58 | PageNavigationItem::make('Notification Configuration') 59 | ->translateLabel() 60 | ->url(NotificationConfiguration::getUrl()) 61 | ->icon('heroicon-o-bell') 62 | ->isActiveWhen(function () { 63 | return request()->routeIs(NotificationConfiguration::getRouteName()); 64 | }) 65 | ->visible(true), 66 | PageNavigationItem::make('Payment Configuration') 67 | ->translateLabel() 68 | ->url(PaymentConfiguration::getUrl()) 69 | ->icon('heroicon-o-currency-dollar') 70 | ->isActiveWhen(function () { 71 | return request()->routeIs(PaymentConfiguration::getRouteName()); 72 | }) 73 | ->visible(true), 74 | PageNavigationItem::make('Shipping Configuration') 75 | ->translateLabel() 76 | ->url(ShippingConfiguration::getUrl()) 77 | ->icon('heroicon-o-truck') 78 | ->isActiveWhen(function () { 79 | return request()->routeIs(ShippingConfiguration::getRouteName()); 80 | }) 81 | ->visible(true), 82 | ]); 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /app/Filament/Pages/NotificationConfiguration.php: -------------------------------------------------------------------------------- 1 | setTitle('Application Settings') 22 | ->setDescription('general, admin, website, sms, payments, notifications, shipping') 23 | ->setNavigationItems([ 24 | PageNavigationItem::make('General Settings') 25 | ->translateLabel() 26 | ->url(GeneralSettings::getUrl()) 27 | ->icon('heroicon-o-cog-6-tooth') 28 | ->isActiveWhen(function () { 29 | return request()->routeIs(GeneralSettings::getRouteName()); 30 | }) 31 | ->visible(true), 32 | PageNavigationItem::make('Admin Panel Settings') 33 | ->translateLabel() 34 | ->url(AdminPanelSettings::getUrl()) 35 | ->icon('heroicon-o-cog-6-tooth') 36 | ->isActiveWhen(function () { 37 | return request()->routeIs(AdminPanelSettings::getRouteName()); 38 | }) 39 | ->visible(true), 40 | PageNavigationItem::make('Web Settings') 41 | ->translateLabel() 42 | ->url(WebsiteSettings::getUrl()) 43 | ->icon('heroicon-o-cog-6-tooth') 44 | ->isActiveWhen(function () { 45 | return request()->routeIs(WebsiteSettings::getRouteName()); 46 | }) 47 | ->visible(true), 48 | PageNavigationItem::make('SMS Configuration') 49 | ->translateLabel() 50 | ->url(SmsConfiguration::getUrl()) 51 | ->icon('heroicon-o-chat-bubble-bottom-center-text') 52 | ->isActiveWhen(function () { 53 | return request()->routeIs(SmsConfiguration::getRouteName()); 54 | }) 55 | ->visible(true), 56 | PageNavigationItem::make('Notification Configuration') 57 | ->translateLabel() 58 | ->url(NotificationConfiguration::getUrl()) 59 | ->icon('heroicon-o-bell') 60 | ->isActiveWhen(function () { 61 | return request()->routeIs(NotificationConfiguration::getRouteName()); 62 | }) 63 | ->visible(true), 64 | PageNavigationItem::make('Payment Configuration') 65 | ->translateLabel() 66 | ->url(PaymentConfiguration::getUrl()) 67 | ->icon('heroicon-o-currency-dollar') 68 | ->isActiveWhen(function () { 69 | return request()->routeIs(PaymentConfiguration::getRouteName()); 70 | }) 71 | ->visible(true), 72 | PageNavigationItem::make('Shipping Configuration') 73 | ->translateLabel() 74 | ->url(ShippingConfiguration::getUrl()) 75 | ->icon('heroicon-o-truck') 76 | ->isActiveWhen(function () { 77 | return request()->routeIs(ShippingConfiguration::getRouteName()); 78 | }) 79 | ->visible(true), 80 | ]); 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /app/Filament/Pages/PaymentConfiguration.php: -------------------------------------------------------------------------------- 1 | setTitle('Application Settings') 22 | ->setDescription('general, admin, website, sms, payments, notifications, shipping') 23 | ->setNavigationItems([ 24 | PageNavigationItem::make('General Settings') 25 | ->translateLabel() 26 | ->url(GeneralSettings::getUrl()) 27 | ->icon('heroicon-o-cog-6-tooth') 28 | ->isActiveWhen(function () { 29 | return request()->routeIs(GeneralSettings::getRouteName()); 30 | }) 31 | ->visible(true), 32 | PageNavigationItem::make('Admin Panel Settings') 33 | ->translateLabel() 34 | ->url(AdminPanelSettings::getUrl()) 35 | ->icon('heroicon-o-cog-6-tooth') 36 | ->isActiveWhen(function () { 37 | return request()->routeIs(AdminPanelSettings::getRouteName()); 38 | }) 39 | ->visible(true), 40 | PageNavigationItem::make('Web Settings') 41 | ->translateLabel() 42 | ->url(WebsiteSettings::getUrl()) 43 | ->icon('heroicon-o-cog-6-tooth') 44 | ->isActiveWhen(function () { 45 | return request()->routeIs(WebsiteSettings::getRouteName()); 46 | }) 47 | ->visible(true), 48 | PageNavigationItem::make('SMS Configuration') 49 | ->translateLabel() 50 | ->url(SmsConfiguration::getUrl()) 51 | ->icon('heroicon-o-chat-bubble-bottom-center-text') 52 | ->isActiveWhen(function () { 53 | return request()->routeIs(SmsConfiguration::getRouteName()); 54 | }) 55 | ->visible(true), 56 | PageNavigationItem::make('Notification Configuration') 57 | ->translateLabel() 58 | ->url(NotificationConfiguration::getUrl()) 59 | ->icon('heroicon-o-bell') 60 | ->isActiveWhen(function () { 61 | return request()->routeIs(NotificationConfiguration::getRouteName()); 62 | }) 63 | ->visible(true), 64 | PageNavigationItem::make('Payment Configuration') 65 | ->translateLabel() 66 | ->url(PaymentConfiguration::getUrl()) 67 | ->icon('heroicon-o-currency-dollar') 68 | ->isActiveWhen(function () { 69 | return request()->routeIs(PaymentConfiguration::getRouteName()); 70 | }) 71 | ->visible(true), 72 | PageNavigationItem::make('Shipping Configuration') 73 | ->translateLabel() 74 | ->url(ShippingConfiguration::getUrl()) 75 | ->icon('heroicon-o-truck') 76 | ->isActiveWhen(function () { 77 | return request()->routeIs(ShippingConfiguration::getRouteName()); 78 | }) 79 | ->visible(true), 80 | ]); 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /app/Filament/Pages/ShippingConfiguration.php: -------------------------------------------------------------------------------- 1 | setTitle('Application Settings') 22 | ->setDescription('general, admin, website, sms, payments, notifications, shipping') 23 | ->setNavigationItems([ 24 | PageNavigationItem::make('General Settings') 25 | ->translateLabel() 26 | ->url(GeneralSettings::getUrl()) 27 | ->icon('heroicon-o-cog-6-tooth') 28 | ->isActiveWhen(function () { 29 | return request()->routeIs(GeneralSettings::getRouteName()); 30 | }) 31 | ->visible(true), 32 | PageNavigationItem::make('Admin Panel Settings') 33 | ->translateLabel() 34 | ->url(AdminPanelSettings::getUrl()) 35 | ->icon('heroicon-o-cog-6-tooth') 36 | ->isActiveWhen(function () { 37 | return request()->routeIs(AdminPanelSettings::getRouteName()); 38 | }) 39 | ->visible(true), 40 | PageNavigationItem::make('Web Settings') 41 | ->translateLabel() 42 | ->url(WebsiteSettings::getUrl()) 43 | ->icon('heroicon-o-cog-6-tooth') 44 | ->isActiveWhen(function () { 45 | return request()->routeIs(WebsiteSettings::getRouteName()); 46 | }) 47 | ->visible(true), 48 | PageNavigationItem::make('SMS Configuration') 49 | ->translateLabel() 50 | ->url(SmsConfiguration::getUrl()) 51 | ->icon('heroicon-o-chat-bubble-bottom-center-text') 52 | ->isActiveWhen(function () { 53 | return request()->routeIs(SmsConfiguration::getRouteName()); 54 | }) 55 | ->visible(true), 56 | PageNavigationItem::make('Notification Configuration') 57 | ->translateLabel() 58 | ->url(NotificationConfiguration::getUrl()) 59 | ->icon('heroicon-o-bell') 60 | ->isActiveWhen(function () { 61 | return request()->routeIs(NotificationConfiguration::getRouteName()); 62 | }) 63 | ->visible(true), 64 | PageNavigationItem::make('Payment Configuration') 65 | ->translateLabel() 66 | ->url(PaymentConfiguration::getUrl()) 67 | ->icon('heroicon-o-currency-dollar') 68 | ->isActiveWhen(function () { 69 | return request()->routeIs(PaymentConfiguration::getRouteName()); 70 | }) 71 | ->visible(true), 72 | PageNavigationItem::make('Shipping Configuration') 73 | ->translateLabel() 74 | ->url(ShippingConfiguration::getUrl()) 75 | ->icon('heroicon-o-truck') 76 | ->isActiveWhen(function () { 77 | return request()->routeIs(ShippingConfiguration::getRouteName()); 78 | }) 79 | ->visible(true), 80 | ]); 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /app/Filament/Pages/SmsConfiguration.php: -------------------------------------------------------------------------------- 1 | setTitle('Application Settings') 22 | ->setDescription('general, admin, website, sms, payments, notifications, shipping') 23 | ->setNavigationItems([ 24 | PageNavigationItem::make('General Settings') 25 | ->translateLabel() 26 | ->url(GeneralSettings::getUrl()) 27 | ->icon('heroicon-o-cog-6-tooth') 28 | ->isActiveWhen(function () { 29 | return request()->routeIs(GeneralSettings::getRouteName()); 30 | }) 31 | ->visible(true), 32 | PageNavigationItem::make('Admin Panel Settings') 33 | ->translateLabel() 34 | ->url(AdminPanelSettings::getUrl()) 35 | ->icon('heroicon-o-cog-6-tooth') 36 | ->isActiveWhen(function () { 37 | return request()->routeIs(AdminPanelSettings::getRouteName()); 38 | }) 39 | ->visible(true), 40 | PageNavigationItem::make('Web Settings') 41 | ->translateLabel() 42 | ->url(WebsiteSettings::getUrl()) 43 | ->icon('heroicon-o-cog-6-tooth') 44 | ->isActiveWhen(function () { 45 | return request()->routeIs(WebsiteSettings::getRouteName()); 46 | }) 47 | ->visible(true), 48 | PageNavigationItem::make('SMS Configuration') 49 | ->translateLabel() 50 | ->url(SmsConfiguration::getUrl()) 51 | ->icon('heroicon-o-chat-bubble-bottom-center-text') 52 | ->isActiveWhen(function () { 53 | return request()->routeIs(SmsConfiguration::getRouteName()); 54 | }) 55 | ->visible(true), 56 | PageNavigationItem::make('Notification Configuration') 57 | ->translateLabel() 58 | ->url(NotificationConfiguration::getUrl()) 59 | ->icon('heroicon-o-bell') 60 | ->isActiveWhen(function () { 61 | return request()->routeIs(NotificationConfiguration::getRouteName()); 62 | }) 63 | ->visible(true), 64 | PageNavigationItem::make('Payment Configuration') 65 | ->translateLabel() 66 | ->url(PaymentConfiguration::getUrl()) 67 | ->icon('heroicon-o-currency-dollar') 68 | ->isActiveWhen(function () { 69 | return request()->routeIs(PaymentConfiguration::getRouteName()); 70 | }) 71 | ->visible(true), 72 | PageNavigationItem::make('Shipping Configuration') 73 | ->translateLabel() 74 | ->url(ShippingConfiguration::getUrl()) 75 | ->icon('heroicon-o-truck') 76 | ->isActiveWhen(function () { 77 | return request()->routeIs(ShippingConfiguration::getRouteName()); 78 | }) 79 | ->visible(true), 80 | ]); 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /app/Filament/Pages/WebsiteSettings.php: -------------------------------------------------------------------------------- 1 | setTitle('Application Settings') 22 | ->setDescription('general, admin, website, sms, payments, notifications, shipping') 23 | ->setNavigationItems([ 24 | PageNavigationItem::make('General Settings') 25 | ->translateLabel() 26 | ->url(GeneralSettings::getUrl()) 27 | ->icon('heroicon-o-cog-6-tooth') 28 | ->isActiveWhen(function () { 29 | return request()->routeIs(GeneralSettings::getRouteName()); 30 | }) 31 | ->visible(true), 32 | PageNavigationItem::make('Admin Panel Settings') 33 | ->translateLabel() 34 | ->url(AdminPanelSettings::getUrl()) 35 | ->icon('heroicon-o-cog-6-tooth') 36 | ->isActiveWhen(function () { 37 | return request()->routeIs(AdminPanelSettings::getRouteName()); 38 | }) 39 | ->visible(true), 40 | PageNavigationItem::make('Web Settings') 41 | ->translateLabel() 42 | ->url(WebsiteSettings::getUrl()) 43 | ->icon('heroicon-o-cog-6-tooth') 44 | ->isActiveWhen(function () { 45 | return request()->routeIs(WebsiteSettings::getRouteName()); 46 | }) 47 | ->visible(true), 48 | PageNavigationItem::make('SMS Configuration') 49 | ->translateLabel() 50 | ->url(SmsConfiguration::getUrl()) 51 | ->icon('heroicon-o-chat-bubble-bottom-center-text') 52 | ->isActiveWhen(function () { 53 | return request()->routeIs(SmsConfiguration::getRouteName()); 54 | }) 55 | ->visible(true), 56 | PageNavigationItem::make('Notification Configuration') 57 | ->translateLabel() 58 | ->url(NotificationConfiguration::getUrl()) 59 | ->icon('heroicon-o-bell') 60 | ->isActiveWhen(function () { 61 | return request()->routeIs(NotificationConfiguration::getRouteName()); 62 | }) 63 | ->visible(true), 64 | PageNavigationItem::make('Payment Configuration') 65 | ->translateLabel() 66 | ->url(PaymentConfiguration::getUrl()) 67 | ->icon('heroicon-o-currency-dollar') 68 | ->isActiveWhen(function () { 69 | return request()->routeIs(PaymentConfiguration::getRouteName()); 70 | }) 71 | ->visible(true), 72 | PageNavigationItem::make('Shipping Configuration') 73 | ->translateLabel() 74 | ->url(ShippingConfiguration::getUrl()) 75 | ->icon('heroicon-o-truck') 76 | ->isActiveWhen(function () { 77 | return request()->routeIs(ShippingConfiguration::getRouteName()); 78 | }) 79 | ->visible(true), 80 | ]); 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /app/Filament/Resources/UserResource/Pages/ChangePasswordUser.php: -------------------------------------------------------------------------------- 1 | schema([ 40 | TextInput::make('password') 41 | ->translateLabel() 42 | ->password() 43 | ->required() 44 | ->minLength(6) 45 | ->confirmed(), 46 | TextInput::make('password_confirmation') 47 | ->label('Password confirmation') 48 | ->translateLabel() 49 | ->password() 50 | ->required(), 51 | Textarea::make('reason') 52 | ->label('Reason') 53 | ->translateLabel() 54 | ->required() 55 | ->minLength(5), 56 | ]), 57 | ]; 58 | } 59 | 60 | public function save(): void 61 | { 62 | $this->validate(); 63 | 64 | DB::transaction(function () { 65 | 66 | $this->record->update([ 67 | 'password' => Hash::make($this->password), 68 | ]); 69 | 70 | activity() 71 | ->causedBy(auth()->user()) 72 | ->performedOn($this->record) 73 | ->event('change password') 74 | ->log($this->reason); 75 | }); 76 | 77 | unset($this->password); 78 | unset($this->password_confirmation); 79 | unset($this->reason); 80 | 81 | Notification::make() 82 | ->title('Password Changed Successfully') 83 | ->success() 84 | ->send(); 85 | } 86 | 87 | public function saveAction(): Action 88 | { 89 | return Action::make('save') 90 | ->action(fn () => $this->save()); 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /app/Filament/Resources/UserResource/Pages/CreateUser.php: -------------------------------------------------------------------------------- 1 | schema([ 41 | Select::make('status')->label('Status') 42 | ->translateLabel() 43 | ->options(function () { 44 | $filteredArray = []; 45 | foreach (StatusEnum::forUserToArray() as $key => $value) { 46 | if ($key != $this->record->status) { 47 | $filteredArray[$key] = $value; 48 | } 49 | } 50 | 51 | return $filteredArray; 52 | }) 53 | ->searchable() 54 | ->required(), 55 | Textarea::make('reason') 56 | ->translateLabel() 57 | ->label('Reason') 58 | ->required() 59 | ->minLength(5), 60 | ]), 61 | ]; 62 | } 63 | 64 | public function save(): void 65 | { 66 | $this->validate(); 67 | 68 | DB::transaction(function () { 69 | $oldStatus = $this->record->status; 70 | 71 | $this->record->status = $this->status; 72 | $this->record->save(); 73 | 74 | activity() 75 | ->causedBy(auth()->user()) 76 | ->performedOn($this->record) 77 | ->event('manage') 78 | ->withProperties([ 79 | 'status' => [ 80 | 'old_value' => $oldStatus, 81 | 'new_value' => $this->status, 82 | ], 83 | ]) 84 | ->log($this->reason); 85 | }); 86 | 87 | unset($this->status); 88 | unset($this->reason); 89 | 90 | Notification::make() 91 | ->title('Saved successfully') 92 | ->success() 93 | ->send(); 94 | } 95 | 96 | public function saveAction(): Action 97 | { 98 | return Action::make('save') 99 | ->action(fn () => $this->save()); 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /app/Filament/Resources/UserResource/Pages/ViewUser.php: -------------------------------------------------------------------------------- 1 | activity = Activity::where('event', 'Login')->latest()->first(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/Filament/Resources/UserResource/Widgets/UserProfileWidget.php: -------------------------------------------------------------------------------- 1 | 15 | */ 16 | protected $middleware = [ 17 | // \App\Http\Middleware\TrustHosts::class, 18 | \App\Http\Middleware\TrustProxies::class, 19 | \Illuminate\Http\Middleware\HandleCors::class, 20 | \App\Http\Middleware\PreventRequestsDuringMaintenance::class, 21 | \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, 22 | \App\Http\Middleware\TrimStrings::class, 23 | \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, 24 | ]; 25 | 26 | /** 27 | * The application's route middleware groups. 28 | * 29 | * @var array> 30 | */ 31 | protected $middlewareGroups = [ 32 | 'web' => [ 33 | \App\Http\Middleware\EncryptCookies::class, 34 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 35 | \Illuminate\Session\Middleware\StartSession::class, 36 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 37 | \App\Http\Middleware\VerifyCsrfToken::class, 38 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 39 | ], 40 | 41 | 'api' => [ 42 | // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, 43 | \Illuminate\Routing\Middleware\ThrottleRequests::class.':api', 44 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 45 | ], 46 | ]; 47 | 48 | /** 49 | * The application's middleware aliases. 50 | * 51 | * Aliases may be used to conveniently assign middleware to routes and groups. 52 | * 53 | * @var array 54 | */ 55 | protected $middlewareAliases = [ 56 | 'auth' => \App\Http\Middleware\Authenticate::class, 57 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 58 | 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, 59 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 60 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 61 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 62 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 63 | 'signed' => \App\Http\Middleware\ValidateSignature::class, 64 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 65 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 66 | ]; 67 | } 68 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson() ? null : route('login'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/PreventRequestsDuringMaintenance.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 24 | return redirect(RouteServiceProvider::HOME); 25 | } 26 | } 27 | 28 | return $next($request); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | 'current_password', 16 | 'password', 17 | 'password_confirmation', 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustHosts.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | public function hosts(): array 15 | { 16 | return [ 17 | $this->allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | |string|null 14 | */ 15 | protected $proxies; 16 | 17 | /** 18 | * The headers that should be used to detect proxies. 19 | * 20 | * @var int 21 | */ 22 | protected $headers = 23 | Request::HEADER_X_FORWARDED_FOR | 24 | Request::HEADER_X_FORWARDED_HOST | 25 | Request::HEADER_X_FORWARDED_PORT | 26 | Request::HEADER_X_FORWARDED_PROTO | 27 | Request::HEADER_X_FORWARDED_AWS_ELB; 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Middleware/ValidateSignature.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 'fbclid', 16 | // 'utm_campaign', 17 | // 'utm_content', 18 | // 'utm_medium', 19 | // 'utm_source', 20 | // 'utm_term', 21 | ]; 22 | } 23 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | 22 | */ 23 | protected $fillable = [ 24 | 'name', 25 | 'email', 26 | 'password', 27 | ]; 28 | 29 | /** 30 | * The attributes that should be hidden for serialization. 31 | * 32 | * @var array 33 | */ 34 | protected $hidden = [ 35 | 'password', 36 | 'remember_token', 37 | ]; 38 | 39 | /** 40 | * The attributes that should be cast. 41 | * 42 | * @var array 43 | */ 44 | protected $casts = [ 45 | 'email_verified_at' => 'datetime', 46 | ]; 47 | } 48 | -------------------------------------------------------------------------------- /app/Policies/RolePolicy.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | protected $policies = [ 16 | // 'App\Models\Model' => 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | */ 22 | public function boot(): void 23 | { 24 | // 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | > 16 | */ 17 | protected $listen = [ 18 | Registered::class => [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | */ 26 | public function boot(): void 27 | { 28 | // 29 | } 30 | 31 | /** 32 | * Determine if events and listeners should be automatically discovered. 33 | */ 34 | public function shouldDiscoverEvents(): bool 35 | { 36 | return false; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Providers/Filament/AdminPanelProvider.php: -------------------------------------------------------------------------------- 1 | default() 29 | ->id('admin') 30 | ->path('admin') 31 | ->login() 32 | ->colors([ 33 | 'primary' => Color::Amber, 34 | ]) 35 | ->sidebarCollapsibleOnDesktop() 36 | ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources') 37 | ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages') 38 | ->pages([ 39 | Pages\Dashboard::class, 40 | ]) 41 | ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets') 42 | ->widgets([ 43 | Widgets\AccountWidget::class, 44 | Widgets\FilamentInfoWidget::class, 45 | ]) 46 | ->middleware([ 47 | EncryptCookies::class, 48 | AddQueuedCookiesToResponse::class, 49 | StartSession::class, 50 | AuthenticateSession::class, 51 | ShareErrorsFromSession::class, 52 | VerifyCsrfToken::class, 53 | SubstituteBindings::class, 54 | DisableBladeIconComponents::class, 55 | DispatchServingFilamentEvent::class, 56 | ]) 57 | ->authMiddleware([ 58 | Authenticate::class, 59 | ]) 60 | ->plugins([ 61 | FilamentShieldPlugin::make(), 62 | FilamentLanguageSwitchPlugin::make(), 63 | ]); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | configureRateLimiting(); 28 | 29 | $this->routes(function () { 30 | Route::middleware('api') 31 | ->prefix('api') 32 | ->group(base_path('routes/api.php')); 33 | 34 | Route::middleware('web') 35 | ->group(base_path('routes/web.php')); 36 | }); 37 | } 38 | 39 | /** 40 | * Configure the rate limiters for the application. 41 | */ 42 | protected function configureRateLimiting(): void 43 | { 44 | RateLimiter::for('api', function (Request $request) { 45 | return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); 46 | }); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "type": "project", 4 | "description": "The Laravel Framework.", 5 | "keywords": ["framework", "laravel"], 6 | "license": "MIT", 7 | "require": { 8 | "php": "^8.1", 9 | "aymanalhattami/filament-page-with-sidebar": "main-dev", 10 | "bezhansalleh/filament-language-switch": "^2.0", 11 | "bezhansalleh/filament-shield": "^3.0", 12 | "filament/filament": "^3.0", 13 | "filament/spatie-laravel-media-library-plugin": "^3.0", 14 | "guzzlehttp/guzzle": "^7.2", 15 | "laravel/framework": "^10.0", 16 | "laravel/sanctum": "^3.2", 17 | "laravel/tinker": "^2.8", 18 | "spatie/laravel-activitylog": "^4.7" 19 | }, 20 | "require-dev": { 21 | "fakerphp/faker": "^1.9.1", 22 | "filament/upgrade": "3.0-stable", 23 | "laravel/pint": "^1.11", 24 | "laravel/sail": "^1.18", 25 | "mockery/mockery": "^1.4.4", 26 | "nunomaduro/collision": "^7.0", 27 | "phpunit/phpunit": "^10.0", 28 | "spatie/laravel-ignition": "^2.0" 29 | }, 30 | "autoload": { 31 | "psr-4": { 32 | "App\\": "app/", 33 | "Database\\Factories\\": "database/factories/", 34 | "Database\\Seeders\\": "database/seeders/" 35 | } 36 | }, 37 | "autoload-dev": { 38 | "psr-4": { 39 | "Tests\\": "tests/" 40 | } 41 | }, 42 | "scripts": { 43 | "post-autoload-dump": [ 44 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 45 | "@php artisan package:discover --ansi", 46 | "@php artisan filament:upgrade" 47 | ], 48 | "post-update-cmd": [ 49 | "@php artisan vendor:publish --tag=laravel-assets --ansi --force" 50 | ], 51 | "post-root-package-install": [ 52 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 53 | ], 54 | "post-create-project-cmd": [ 55 | "@php artisan key:generate --ansi" 56 | ] 57 | }, 58 | "extra": { 59 | "laravel": { 60 | "dont-discover": [] 61 | } 62 | }, 63 | "config": { 64 | "optimize-autoloader": true, 65 | "preferred-install": "dist", 66 | "sort-packages": true, 67 | "allow-plugins": { 68 | "pestphp/pest-plugin": true, 69 | "php-http/discovery": true 70 | } 71 | }, 72 | "minimum-stability": "dev", 73 | "prefer-stable": true, 74 | "repositories": [ 75 | { 76 | "type": "path", 77 | "url": "../@packages/aymanalhattami/filament-page-with-sidebar" 78 | } 79 | ] 80 | } 81 | -------------------------------------------------------------------------------- /config/activitylog.php: -------------------------------------------------------------------------------- 1 | env('ACTIVITY_LOGGER_ENABLED', true), 9 | 10 | /* 11 | * When the clean-command is executed, all recording activities older than 12 | * the number of days specified here will be deleted. 13 | */ 14 | 'delete_records_older_than_days' => 365, 15 | 16 | /* 17 | * If no log name is passed to the activity() helper 18 | * we use this default log name. 19 | */ 20 | 'default_log_name' => 'default', 21 | 22 | /* 23 | * You can specify an auth driver here that gets user models. 24 | * If this is null we'll use the current Laravel auth driver. 25 | */ 26 | 'default_auth_driver' => null, 27 | 28 | /* 29 | * If set to true, the subject returns soft deleted models. 30 | */ 31 | 'subject_returns_soft_deleted_models' => false, 32 | 33 | /* 34 | * This model will be used to log activity. 35 | * It should implement the Spatie\Activitylog\Contracts\Activity interface 36 | * and extend Illuminate\Database\Eloquent\Model. 37 | */ 38 | 'activity_model' => \Spatie\Activitylog\Models\Activity::class, 39 | 40 | /* 41 | * This is the name of the table that will be created by the migration and 42 | * used by the Activity model shipped with this package. 43 | */ 44 | 'table_name' => 'activity_log', 45 | 46 | /* 47 | * This is the database connection that will be used by the migration and 48 | * the Activity model shipped with this package. In case it's not set 49 | * Laravel's database.default will be used instead. 50 | */ 51 | 'database_connection' => env('ACTIVITY_LOGGER_DB_CONNECTION'), 52 | ]; 53 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | ], 44 | 45 | /* 46 | |-------------------------------------------------------------------------- 47 | | User Providers 48 | |-------------------------------------------------------------------------- 49 | | 50 | | All authentication drivers have a user provider. This defines how the 51 | | users are actually retrieved out of your database or other storage 52 | | mechanisms used by this application to persist your user's data. 53 | | 54 | | If you have multiple user tables or models you may configure multiple 55 | | sources which represent each model / table. These sources may then 56 | | be assigned to any extra authentication guards you have defined. 57 | | 58 | | Supported: "database", "eloquent" 59 | | 60 | */ 61 | 62 | 'providers' => [ 63 | 'users' => [ 64 | 'driver' => 'eloquent', 65 | 'model' => App\Models\User::class, 66 | ], 67 | 68 | // 'users' => [ 69 | // 'driver' => 'database', 70 | // 'table' => 'users', 71 | // ], 72 | ], 73 | 74 | /* 75 | |-------------------------------------------------------------------------- 76 | | Resetting Passwords 77 | |-------------------------------------------------------------------------- 78 | | 79 | | You may specify multiple password reset configurations if you have more 80 | | than one user table or model in the application and you want to have 81 | | separate password reset settings based on the specific user types. 82 | | 83 | | The expiry time is the number of minutes that each reset token will be 84 | | considered valid. This security feature keeps tokens short-lived so 85 | | they have less time to be guessed. You may change this as needed. 86 | | 87 | | The throttle setting is the number of seconds a user must wait before 88 | | generating more password reset tokens. This prevents the user from 89 | | quickly generating a very large amount of password reset tokens. 90 | | 91 | */ 92 | 93 | 'passwords' => [ 94 | 'users' => [ 95 | 'provider' => 'users', 96 | 'table' => 'password_reset_tokens', 97 | 'expire' => 60, 98 | 'throttle' => 60, 99 | ], 100 | ], 101 | 102 | /* 103 | |-------------------------------------------------------------------------- 104 | | Password Confirmation Timeout 105 | |-------------------------------------------------------------------------- 106 | | 107 | | Here you may define the amount of seconds before a password confirmation 108 | | times out and the user is prompted to re-enter their password via the 109 | | confirmation screen. By default, the timeout lasts for three hours. 110 | | 111 | */ 112 | 113 | 'password_timeout' => 10800, 114 | 115 | ]; 116 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', 40 | 'port' => env('PUSHER_PORT', 443), 41 | 'scheme' => env('PUSHER_SCHEME', 'https'), 42 | 'encrypted' => true, 43 | 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', 44 | ], 45 | 'client_options' => [ 46 | // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html 47 | ], 48 | ], 49 | 50 | 'ably' => [ 51 | 'driver' => 'ably', 52 | 'key' => env('ABLY_KEY'), 53 | ], 54 | 55 | 'redis' => [ 56 | 'driver' => 'redis', 57 | 'connection' => 'default', 58 | ], 59 | 60 | 'log' => [ 61 | 'driver' => 'log', 62 | ], 63 | 64 | 'null' => [ 65 | 'driver' => 'null', 66 | ], 67 | 68 | ], 69 | 70 | ]; 71 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Cache Stores 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the cache "stores" for your application as 26 | | well as their drivers. You may even define multiple stores for the 27 | | same cache driver to group types of items stored in your caches. 28 | | 29 | | Supported drivers: "apc", "array", "database", "file", 30 | | "memcached", "redis", "dynamodb", "octane", "null" 31 | | 32 | */ 33 | 34 | 'stores' => [ 35 | 36 | 'apc' => [ 37 | 'driver' => 'apc', 38 | ], 39 | 40 | 'array' => [ 41 | 'driver' => 'array', 42 | 'serialize' => false, 43 | ], 44 | 45 | 'database' => [ 46 | 'driver' => 'database', 47 | 'table' => 'cache', 48 | 'connection' => null, 49 | 'lock_connection' => null, 50 | ], 51 | 52 | 'file' => [ 53 | 'driver' => 'file', 54 | 'path' => storage_path('framework/cache/data'), 55 | ], 56 | 57 | 'memcached' => [ 58 | 'driver' => 'memcached', 59 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 60 | 'sasl' => [ 61 | env('MEMCACHED_USERNAME'), 62 | env('MEMCACHED_PASSWORD'), 63 | ], 64 | 'options' => [ 65 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 66 | ], 67 | 'servers' => [ 68 | [ 69 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 70 | 'port' => env('MEMCACHED_PORT', 11211), 71 | 'weight' => 100, 72 | ], 73 | ], 74 | ], 75 | 76 | 'redis' => [ 77 | 'driver' => 'redis', 78 | 'connection' => 'cache', 79 | 'lock_connection' => 'default', 80 | ], 81 | 82 | 'dynamodb' => [ 83 | 'driver' => 'dynamodb', 84 | 'key' => env('AWS_ACCESS_KEY_ID'), 85 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 86 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 87 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 88 | 'endpoint' => env('DYNAMODB_ENDPOINT'), 89 | ], 90 | 91 | 'octane' => [ 92 | 'driver' => 'octane', 93 | ], 94 | 95 | ], 96 | 97 | /* 98 | |-------------------------------------------------------------------------- 99 | | Cache Key Prefix 100 | |-------------------------------------------------------------------------- 101 | | 102 | | When utilizing the APC, database, memcached, Redis, or DynamoDB cache 103 | | stores there might be other applications using the same cache. For 104 | | that reason, you may prefix every cache key to avoid collisions. 105 | | 106 | */ 107 | 108 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), 109 | 110 | ]; 111 | -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*', 'sanctum/csrf-cookie'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /config/filament-shield.php: -------------------------------------------------------------------------------- 1 | [ 5 | 'should_register_navigation' => true, 6 | 'slug' => 'shield/roles', 7 | 'navigation_sort' => -1, 8 | 'navigation_badge' => true, 9 | 'navigation_group' => true, 10 | 'is_globally_searchable' => false, 11 | 'show_model_path' => true, 12 | ], 13 | 14 | 'auth_provider_model' => [ 15 | 'fqcn' => 'App\\Models\\User', 16 | ], 17 | 18 | 'super_admin' => [ 19 | 'enabled' => true, 20 | 'name' => 'super_admin', 21 | 'define_via_gate' => false, 22 | 'intercept_gate' => 'before', // after 23 | ], 24 | 25 | 'filament_user' => [ 26 | 'enabled' => true, 27 | 'name' => 'filament_user', 28 | ], 29 | 30 | 'permission_prefixes' => [ 31 | 'resource' => [ 32 | 'view', 33 | 'view_any', 34 | 'create', 35 | 'update', 36 | 'restore', 37 | 'restore_any', 38 | 'replicate', 39 | 'reorder', 40 | 'delete', 41 | 'delete_any', 42 | 'force_delete', 43 | 'force_delete_any', 44 | ], 45 | 46 | 'page' => 'page', 47 | 'widget' => 'widget', 48 | ], 49 | 50 | 'entities' => [ 51 | 'pages' => true, 52 | 'widgets' => true, 53 | 'resources' => true, 54 | 'custom_permissions' => false, 55 | ], 56 | 57 | 'generator' => [ 58 | 'option' => 'policies_and_permissions', 59 | ], 60 | 61 | 'exclude' => [ 62 | 'enabled' => true, 63 | 64 | 'pages' => [ 65 | 'Dashboard', 66 | ], 67 | 68 | 'widgets' => [ 69 | 'AccountWidget', 'FilamentInfoWidget', 70 | ], 71 | 72 | 'resources' => [], 73 | ], 74 | 75 | 'register_role_policy' => [ 76 | 'enabled' => true, 77 | ], 78 | 79 | ]; 80 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DISK', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Filesystem Disks 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure as many filesystem "disks" as you wish, and you 24 | | may even configure multiple disks of the same driver. Defaults have 25 | | been set up for each driver as an example of the required values. 26 | | 27 | | Supported Drivers: "local", "ftp", "sftp", "s3" 28 | | 29 | */ 30 | 31 | 'disks' => [ 32 | 33 | 'local' => [ 34 | 'driver' => 'local', 35 | 'root' => storage_path('app'), 36 | 'throw' => false, 37 | ], 38 | 39 | 'public' => [ 40 | 'driver' => 'local', 41 | 'root' => storage_path('app/public'), 42 | 'url' => env('APP_URL').'/storage', 43 | 'visibility' => 'public', 44 | 'throw' => false, 45 | ], 46 | 47 | 's3' => [ 48 | 'driver' => 's3', 49 | 'key' => env('AWS_ACCESS_KEY_ID'), 50 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 51 | 'region' => env('AWS_DEFAULT_REGION'), 52 | 'bucket' => env('AWS_BUCKET'), 53 | 'url' => env('AWS_URL'), 54 | 'endpoint' => env('AWS_ENDPOINT'), 55 | 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 56 | 'throw' => false, 57 | ], 58 | 59 | ], 60 | 61 | /* 62 | |-------------------------------------------------------------------------- 63 | | Symbolic Links 64 | |-------------------------------------------------------------------------- 65 | | 66 | | Here you may configure the symbolic links that will be created when the 67 | | `storage:link` Artisan command is executed. The array keys should be 68 | | the locations of the links and the values should be their targets. 69 | | 70 | */ 71 | 72 | 'links' => [ 73 | public_path('storage') => storage_path('app/public'), 74 | ], 75 | 76 | ]; 77 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 65536, 48 | 'threads' => 1, 49 | 'time' => 4, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Deprecations Log Channel 25 | |-------------------------------------------------------------------------- 26 | | 27 | | This option controls the log channel that should be used to log warnings 28 | | regarding deprecated PHP and library features. This allows you to get 29 | | your application ready for upcoming major versions of dependencies. 30 | | 31 | */ 32 | 33 | 'deprecations' => [ 34 | 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), 35 | 'trace' => false, 36 | ], 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Log Channels 41 | |-------------------------------------------------------------------------- 42 | | 43 | | Here you may configure the log channels for your application. Out of 44 | | the box, Laravel uses the Monolog PHP logging library. This gives 45 | | you a variety of powerful log handlers / formatters to utilize. 46 | | 47 | | Available Drivers: "single", "daily", "slack", "syslog", 48 | | "errorlog", "monolog", 49 | | "custom", "stack" 50 | | 51 | */ 52 | 53 | 'channels' => [ 54 | 'stack' => [ 55 | 'driver' => 'stack', 56 | 'channels' => ['single'], 57 | 'ignore_exceptions' => false, 58 | ], 59 | 60 | 'single' => [ 61 | 'driver' => 'single', 62 | 'path' => storage_path('logs/laravel.log'), 63 | 'level' => env('LOG_LEVEL', 'debug'), 64 | ], 65 | 66 | 'daily' => [ 67 | 'driver' => 'daily', 68 | 'path' => storage_path('logs/laravel.log'), 69 | 'level' => env('LOG_LEVEL', 'debug'), 70 | 'days' => 14, 71 | ], 72 | 73 | 'slack' => [ 74 | 'driver' => 'slack', 75 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 76 | 'username' => 'Laravel Log', 77 | 'emoji' => ':boom:', 78 | 'level' => env('LOG_LEVEL', 'critical'), 79 | ], 80 | 81 | 'papertrail' => [ 82 | 'driver' => 'monolog', 83 | 'level' => env('LOG_LEVEL', 'debug'), 84 | 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), 85 | 'handler_with' => [ 86 | 'host' => env('PAPERTRAIL_URL'), 87 | 'port' => env('PAPERTRAIL_PORT'), 88 | 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), 89 | ], 90 | ], 91 | 92 | 'stderr' => [ 93 | 'driver' => 'monolog', 94 | 'level' => env('LOG_LEVEL', 'debug'), 95 | 'handler' => StreamHandler::class, 96 | 'formatter' => env('LOG_STDERR_FORMATTER'), 97 | 'with' => [ 98 | 'stream' => 'php://stderr', 99 | ], 100 | ], 101 | 102 | 'syslog' => [ 103 | 'driver' => 'syslog', 104 | 'level' => env('LOG_LEVEL', 'debug'), 105 | 'facility' => LOG_USER, 106 | ], 107 | 108 | 'errorlog' => [ 109 | 'driver' => 'errorlog', 110 | 'level' => env('LOG_LEVEL', 'debug'), 111 | ], 112 | 113 | 'null' => [ 114 | 'driver' => 'monolog', 115 | 'handler' => NullHandler::class, 116 | ], 117 | 118 | 'emergency' => [ 119 | 'path' => storage_path('logs/laravel.log'), 120 | ], 121 | ], 122 | 123 | ]; 124 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_MAILER', 'smtp'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Mailer Configurations 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure all of the mailers used by your application plus 24 | | their respective settings. Several examples have been configured for 25 | | you and you are free to add your own as your application requires. 26 | | 27 | | Laravel supports a variety of mail "transport" drivers to be used while 28 | | sending an e-mail. You will specify which one you are using for your 29 | | mailers below. You are free to add additional mailers as required. 30 | | 31 | | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", 32 | | "postmark", "log", "array", "failover" 33 | | 34 | */ 35 | 36 | 'mailers' => [ 37 | 'smtp' => [ 38 | 'transport' => 'smtp', 39 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 40 | 'port' => env('MAIL_PORT', 587), 41 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 42 | 'username' => env('MAIL_USERNAME'), 43 | 'password' => env('MAIL_PASSWORD'), 44 | 'timeout' => null, 45 | 'local_domain' => env('MAIL_EHLO_DOMAIN'), 46 | ], 47 | 48 | 'ses' => [ 49 | 'transport' => 'ses', 50 | ], 51 | 52 | 'mailgun' => [ 53 | 'transport' => 'mailgun', 54 | // 'client' => [ 55 | // 'timeout' => 5, 56 | // ], 57 | ], 58 | 59 | 'postmark' => [ 60 | 'transport' => 'postmark', 61 | // 'client' => [ 62 | // 'timeout' => 5, 63 | // ], 64 | ], 65 | 66 | 'sendmail' => [ 67 | 'transport' => 'sendmail', 68 | 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), 69 | ], 70 | 71 | 'log' => [ 72 | 'transport' => 'log', 73 | 'channel' => env('MAIL_LOG_CHANNEL'), 74 | ], 75 | 76 | 'array' => [ 77 | 'transport' => 'array', 78 | ], 79 | 80 | 'failover' => [ 81 | 'transport' => 'failover', 82 | 'mailers' => [ 83 | 'smtp', 84 | 'log', 85 | ], 86 | ], 87 | ], 88 | 89 | /* 90 | |-------------------------------------------------------------------------- 91 | | Global "From" Address 92 | |-------------------------------------------------------------------------- 93 | | 94 | | You may wish for all e-mails sent by your application to be sent from 95 | | the same address. Here, you may specify a name and address that is 96 | | used globally for all e-mails that are sent by your application. 97 | | 98 | */ 99 | 100 | 'from' => [ 101 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 102 | 'name' => env('MAIL_FROM_NAME', 'Example'), 103 | ], 104 | 105 | /* 106 | |-------------------------------------------------------------------------- 107 | | Markdown Mail Settings 108 | |-------------------------------------------------------------------------- 109 | | 110 | | If you are using Markdown based email rendering, you may configure your 111 | | theme and component paths here, allowing you to customize the design 112 | | of the emails. Or, you may simply stick with the Laravel defaults! 113 | | 114 | */ 115 | 116 | 'markdown' => [ 117 | 'theme' => 'default', 118 | 119 | 'paths' => [ 120 | resource_path('views/vendor/mail'), 121 | ], 122 | ], 123 | 124 | ]; 125 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | 'after_commit' => false, 43 | ], 44 | 45 | 'beanstalkd' => [ 46 | 'driver' => 'beanstalkd', 47 | 'host' => 'localhost', 48 | 'queue' => 'default', 49 | 'retry_after' => 90, 50 | 'block_for' => 0, 51 | 'after_commit' => false, 52 | ], 53 | 54 | 'sqs' => [ 55 | 'driver' => 'sqs', 56 | 'key' => env('AWS_ACCESS_KEY_ID'), 57 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 58 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 59 | 'queue' => env('SQS_QUEUE', 'default'), 60 | 'suffix' => env('SQS_SUFFIX'), 61 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 62 | 'after_commit' => false, 63 | ], 64 | 65 | 'redis' => [ 66 | 'driver' => 'redis', 67 | 'connection' => 'default', 68 | 'queue' => env('REDIS_QUEUE', 'default'), 69 | 'retry_after' => 90, 70 | 'block_for' => null, 71 | 'after_commit' => false, 72 | ], 73 | 74 | ], 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | Failed Queue Jobs 79 | |-------------------------------------------------------------------------- 80 | | 81 | | These options configure the behavior of failed queue job logging so you 82 | | can control which database and table are used to store the jobs that 83 | | have failed. You may change them to any database / table you wish. 84 | | 85 | */ 86 | 87 | 'failed' => [ 88 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 89 | 'database' => env('DB_CONNECTION', 'mysql'), 90 | 'table' => 'failed_jobs', 91 | ], 92 | 93 | ]; 94 | -------------------------------------------------------------------------------- /config/sanctum.php: -------------------------------------------------------------------------------- 1 | explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( 19 | '%s%s', 20 | 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', 21 | Sanctum::currentApplicationUrlWithPort() 22 | ))), 23 | 24 | /* 25 | |-------------------------------------------------------------------------- 26 | | Sanctum Guards 27 | |-------------------------------------------------------------------------- 28 | | 29 | | This array contains the authentication guards that will be checked when 30 | | Sanctum is trying to authenticate a request. If none of these guards 31 | | are able to authenticate the request, Sanctum will use the bearer 32 | | token that's present on an incoming request for authentication. 33 | | 34 | */ 35 | 36 | 'guard' => ['web'], 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Expiration Minutes 41 | |-------------------------------------------------------------------------- 42 | | 43 | | This value controls the number of minutes until an issued token will be 44 | | considered expired. If this value is null, personal access tokens do 45 | | not expire. This won't tweak the lifetime of first-party sessions. 46 | | 47 | */ 48 | 49 | 'expiration' => null, 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | Sanctum Middleware 54 | |-------------------------------------------------------------------------- 55 | | 56 | | When authenticating your first-party SPA with Sanctum you may need to 57 | | customize some of the middleware Sanctum uses while processing the 58 | | request. You may change the middleware listed below as required. 59 | | 60 | */ 61 | 62 | 'middleware' => [ 63 | 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, 64 | 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, 65 | ], 66 | 67 | ]; 68 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | 'scheme' => 'https', 22 | ], 23 | 24 | 'postmark' => [ 25 | 'token' => env('POSTMARK_TOKEN'), 26 | ], 27 | 28 | 'ses' => [ 29 | 'key' => env('AWS_ACCESS_KEY_ID'), 30 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 31 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 32 | ], 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | class UserFactory extends Factory 12 | { 13 | /** 14 | * Define the model's default state. 15 | * 16 | * @return array 17 | */ 18 | public function definition(): array 19 | { 20 | return [ 21 | 'name' => fake()->name(), 22 | 'email' => fake()->unique()->safeEmail(), 23 | 'email_verified_at' => now(), 24 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 25 | 'remember_token' => Str::random(10), 26 | ]; 27 | } 28 | 29 | /** 30 | * Indicate that the model's email address should be unverified. 31 | */ 32 | public function unverified(): static 33 | { 34 | return $this->state(fn (array $attributes) => [ 35 | 'email_verified_at' => null, 36 | ]); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->timestamp('email_verified_at')->nullable(); 21 | $table->string('password'); 22 | $table->string('status')->default(StatusEnum::Active->value); 23 | $table->string('language')->default(LanguageEnum::Arabic->value); 24 | $table->rememberToken(); 25 | $table->timestamps(); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | */ 32 | public function down(): void 33 | { 34 | Schema::dropIfExists('users'); 35 | } 36 | }; 37 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php: -------------------------------------------------------------------------------- 1 | string('email')->primary(); 16 | $table->string('token'); 17 | $table->timestamp('created_at')->nullable(); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::dropIfExists('password_reset_tokens'); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('uuid')->unique(); 17 | $table->text('connection'); 18 | $table->text('queue'); 19 | $table->longText('payload'); 20 | $table->longText('exception'); 21 | $table->timestamp('failed_at')->useCurrent(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | */ 28 | public function down(): void 29 | { 30 | Schema::dropIfExists('failed_jobs'); 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->morphs('tokenable'); 17 | $table->string('name'); 18 | $table->string('token', 64)->unique(); 19 | $table->text('abilities')->nullable(); 20 | $table->timestamp('last_used_at')->nullable(); 21 | $table->timestamp('expires_at')->nullable(); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | */ 29 | public function down(): void 30 | { 31 | Schema::dropIfExists('personal_access_tokens'); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /database/migrations/2023_03_18_110536_create_media_table.php: -------------------------------------------------------------------------------- 1 | id(); 13 | 14 | $table->morphs('model'); 15 | $table->uuid('uuid')->nullable()->unique(); 16 | $table->string('collection_name'); 17 | $table->string('name'); 18 | $table->string('file_name'); 19 | $table->string('mime_type')->nullable(); 20 | $table->string('disk'); 21 | $table->string('conversions_disk')->nullable(); 22 | $table->unsignedBigInteger('size'); 23 | $table->json('manipulations'); 24 | $table->json('custom_properties'); 25 | $table->json('generated_conversions'); 26 | $table->json('responsive_images'); 27 | $table->unsignedInteger('order_column')->nullable()->index(); 28 | 29 | $table->nullableTimestamps(); 30 | }); 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /database/migrations/2023_03_18_111635_create_activity_log_table.php: -------------------------------------------------------------------------------- 1 | create(config('activitylog.table_name'), function (Blueprint $table) { 12 | $table->bigIncrements('id'); 13 | $table->string('log_name')->nullable(); 14 | $table->text('description'); 15 | $table->nullableMorphs('subject', 'subject'); 16 | $table->nullableMorphs('causer', 'causer'); 17 | $table->json('properties')->nullable(); 18 | $table->timestamps(); 19 | $table->index('log_name'); 20 | }); 21 | } 22 | 23 | public function down() 24 | { 25 | Schema::connection(config('activitylog.database_connection'))->dropIfExists(config('activitylog.table_name')); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /database/migrations/2023_03_18_111636_add_event_column_to_activity_log_table.php: -------------------------------------------------------------------------------- 1 | table(config('activitylog.table_name'), function (Blueprint $table) { 12 | $table->string('event')->nullable()->after('subject_type'); 13 | }); 14 | } 15 | 16 | public function down() 17 | { 18 | Schema::connection(config('activitylog.database_connection'))->table(config('activitylog.table_name'), function (Blueprint $table) { 19 | $table->dropColumn('event'); 20 | }); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /database/migrations/2023_03_18_111637_add_batch_uuid_column_to_activity_log_table.php: -------------------------------------------------------------------------------- 1 | table(config('activitylog.table_name'), function (Blueprint $table) { 12 | $table->uuid('batch_uuid')->nullable()->after('properties'); 13 | }); 14 | } 15 | 16 | public function down() 17 | { 18 | Schema::connection(config('activitylog.database_connection'))->table(config('activitylog.table_name'), function (Blueprint $table) { 19 | $table->dropColumn('batch_uuid'); 20 | }); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call([ 16 | UserSeeder::class, 17 | ]); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /database/seeders/UserSeeder.php: -------------------------------------------------------------------------------- 1 | 'Ayman Mohammed', 18 | 'email' => 'admin@admin.com', 19 | 'email_verified_at' => now(), 20 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 21 | 'remember_token' => Str::random(10), 22 | ]); 23 | 24 | User::factory(20)->create(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /lang/ar.json: -------------------------------------------------------------------------------- 1 | { 2 | "User Dashboard": "معلومات عن المستخدم", 3 | "View User":"تفاصيل المستخدم", 4 | "Edit User":"تعديل المستخدم", 5 | "Manage User":"إدارة المستخدم", 6 | "Change Password":"تغيير كلمة السر", 7 | "User Activities":"نشاطات المستخدم", 8 | "Record Activities":"سجل المستخدم", 9 | "Users & Roles":"المستخدمين والصلاحيات", 10 | "Users":"المستخدمين", 11 | "Change User Password":"تغيير كلمة السر", 12 | "User Information": "بيانات المستخدم", 13 | "Name": "الاسم", 14 | "Email": "الايميل", 15 | "Email verified at": "تأريخ تفعيل الايميل", 16 | "Language": "اللغة", 17 | "Created at": "تأريخ الانشاء", 18 | "Updated at": "تأريخ التعديل", 19 | "Roles": "الصلاحيات", 20 | "Avatar": "صورة البروفايل", 21 | "Status": "الحالة", 22 | "Reason": "السبب", 23 | "Password": "كلمة السر", 24 | "Password confirmation": "تأكيد كلمة السر", 25 | "User Current Status is":"حالة المستخدم", 26 | "Login":"تسجيل دخول", 27 | "Last Login Information for": "بيانات اخر تسجيل دخول", 28 | "Event": "الحدث", 29 | "Description": "الوسف", 30 | "IP":"بيانات الاي بي", 31 | "User Agent": "بيانات الجهاز", 32 | "Login At": "تأريخ تسجيل الدخول", 33 | "Edit": "تعديل" 34 | } -------------------------------------------------------------------------------- /lang/vendor/filament-shield/ar/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'الإسم', 11 | 'column.guard_name' => 'اسم الحارس', 12 | 'column.roles' => 'الصلاحية', 13 | 'column.permissions' => 'الأذونات', 14 | 'column.updated_at' => 'تاريخ التحديث', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => 'الإسم', 23 | 'field.guard_name' => 'اسم الحارس', 24 | 'field.permissions' => 'الأذونات', 25 | 'field.select_all.name' => 'تحديد الكل', 26 | 'field.select_all.message' => 'تفعيل كافة الأذونات لهذه الصلاحية', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Resources', 35 | 'nav.role.label' => 'الصلاحيات', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'صلاحية', 38 | 'resource.label.roles' => 'الصلاحيات', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'الوحدات', 47 | 'resources' => 'المصادر', 48 | 'widgets' => 'الملحقات', 49 | 'pages' => 'الصفحات', 50 | 'custom' => 'أذونات مخصصة', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'ليس لديك الإذن للوصول', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | 'resource_permission_prefixes_labels' => [ 67 | 'view' => 'عرض', 68 | 'view_any' => 'عرض الكل', 69 | 'create' => 'إضافة', 70 | 'update' => 'تعديل', 71 | 'delete' => 'حذف', 72 | 'delete_any' => 'حذف الكل', 73 | 'force_delete' => 'فرض الحذف', 74 | 'force_delete_any' => 'فرض حذف أي', 75 | 'reorder' => 'إعادة ترتيب', 76 | 'restore' => 'استرجاع', 77 | 'restore_any' => 'استرجاع الكل', 78 | 'replicate' => 'استنساخ', 79 | ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/de/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Guard-Name', 11 | 'column.name' => 'Name', 12 | 'column.permissions' => 'Berechtigungen', 13 | 'column.roles' => 'Rollen', 14 | 'column.updated_at' => 'Aktualisiert am', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.guard_name' => 'Guard-Name', 23 | 'field.name' => 'Name', 24 | 'field.permissions' => 'Berechtigungen', 25 | 'field.select_all.message' => 'Aktivierung aller Berechtigungen, die derzeit für diese Rolle aktiviert sind', 26 | 'field.select_all.name' => 'Alle auswählen', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Shield', 35 | 'nav.role.icon' => 'heroicon-o-shield-check', 36 | 'nav.role.label' => 'Rollen', 37 | 'resource.label.role' => 'Rolle', 38 | 'resource.label.roles' => 'Rollen', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'Entitäten', 47 | 'resources' => 'Ressourcen', 48 | 'widgets' => 'Widgets', 49 | 'pages' => 'Seiten', 50 | 'custom' => 'benutzerdefinierte Berechtigungen', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'Sie haben keine Zugangsberechtigung', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | 'resource_permission_prefixes_labels' => [ 67 | 'view' => 'Anzeigen', 68 | 'view_any' => 'Alle anzeigen', 69 | 'create' => 'Erstellen', 70 | 'update' => 'Bearbeiten', 71 | 'delete' => 'Löschen', 72 | 'delete_any' => 'Alle löschen', 73 | 'force_delete' => 'Endgültig löschen', 74 | 'force_delete_any' => 'Alle endgültig löschen', 75 | // 'reorder' => 'Reorder', 76 | // 'replicate' => 'Replicate', 77 | 'restore' => 'Wiederherstellen', 78 | 'restore_any' => 'Alle wiederherstellen', 79 | ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/en/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Name', 11 | 'column.guard_name' => 'Guard Name', 12 | 'column.roles' => 'Roles', 13 | 'column.permissions' => 'Permissions', 14 | 'column.updated_at' => 'Updated At', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => 'Name', 23 | 'field.guard_name' => 'Guard Name', 24 | 'field.permissions' => 'Permissions', 25 | 'field.select_all.name' => 'Select All', 26 | 'field.select_all.message' => 'Enable all Permissions currently Enabled for this role', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Resources', 35 | 'nav.role.label' => 'Roles', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Role', 38 | 'resource.label.roles' => 'Roles', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'Entities', 47 | 'resources' => 'Resources', 48 | 'widgets' => 'Widgets', 49 | 'pages' => 'Pages', 50 | 'custom' => 'Custom Permissions', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'You do not have permission to access', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | 'resource_permission_prefixes_labels' => [ 67 | 'view' => 'View', 68 | 'view_any' => 'View Any', 69 | 'create' => 'Create', 70 | 'update' => 'Update', 71 | 'delete' => 'Delete', 72 | 'delete_any' => 'Delete Any', 73 | 'force_delete' => 'Force Delete', 74 | 'force_delete_any' => 'Force Delete Any', 75 | 'restore' => 'Restore', 76 | 'reorder' => 'Reorder', 77 | 'restore_any' => 'Restore Any', 78 | 'replicate' => 'Replicate', 79 | ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/es/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Nombre', 11 | 'column.guard_name' => 'Guard', 12 | 'column.roles' => 'Roles', 13 | 'column.permissions' => 'Permisos', 14 | 'column.updated_at' => 'Actualizado el', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => 'Nombre', 23 | 'field.guard_name' => 'Guard', 24 | 'field.permissions' => 'Permisos', 25 | 'field.select_all.name' => 'Seleccionar todos', 26 | 'field.select_all.message' => 'Habilitar todos los permisos actualmente habilitados para este rol', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Shield', 35 | 'nav.role.label' => 'Roles', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Rol', 38 | 'resource.label.roles' => 'Roles', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'Entidades', 47 | 'resources' => 'Recursos', 48 | 'widgets' => 'Widgets', 49 | 'pages' => 'Páginas', 50 | 'custom' => 'Permisos personalizados', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'Usted no tiene permiso de acceso', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | 'resource_permission_prefixes_labels' => [ 67 | 'view' => 'Ver un registro en particular', 68 | 'view_any' => 'Ver el listado de registros', 69 | 'create' => 'Crear', 70 | 'update' => 'Actualizar', 71 | 'delete' => 'Eliminar un registro en particular', 72 | 'delete_any' => 'Eliminar varios registros a la vez', 73 | 'force_delete' => 'Forzar elminación de un registro en particular', 74 | 'force_delete_any' => 'Forzar eliminación de varios registros', 75 | 'restore' => 'Restaurar un registro en particular', 76 | 'reorder' => 'Reordenar', 77 | 'restore_any' => 'Restaurar varios registros', 78 | 'replicate' => 'Replicar', 79 | ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/fa/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'نام', 11 | 'column.guard_name' => 'نام گارد', 12 | 'column.roles' => 'نقش‌ها', 13 | 'column.permissions' => 'دسترسی‌ها', 14 | 'column.updated_at' => 'به‌روزشده در', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => 'نام', 23 | 'field.guard_name' => 'نام گارد', 24 | 'field.permissions' => 'دسترسی‌ها', 25 | 'field.select_all.name' => 'انتخاب همه', 26 | 'field.select_all.message' => 'تمام دسترسی‌های فعال فعلی را برای این نقش فعال کن.', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Shield', 35 | 'nav.role.label' => 'نقش‌ها', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'نقش', 38 | 'resource.label.roles' => 'نقش‌ها', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'موجودیت‌ها', 47 | 'resources' => 'منابع', 48 | 'widgets' => 'ویجت‌ها', 49 | 'pages' => 'صفحات', 50 | 'custom' => 'دسترسی‌های سفارشی', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'شما اجازه دسترسی ندارید.', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | 'resource_permission_prefixes_labels' => [ 67 | 'view' => 'نمایش', 68 | 'view_any' => 'نمایش همه', 69 | 'create' => 'ایجاد', 70 | 'update' => 'ویرایش', 71 | 'delete' => 'حذف', 72 | 'delete_any' => 'حذف همه', 73 | 'force_delete' => 'حذف اجباری', 74 | 'force_delete_any' => 'حذف اجباری همه', 75 | 'restore' => 'بازیابی', 76 | 'replicate' => 'تکثیر', 77 | 'reorder' => 'مرتب‌سازی', 78 | 'restore_any' => 'بازیابی همه', 79 | ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/fr/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Nom', 11 | 'column.guard_name' => 'Nom du Guard', 12 | 'column.roles' => 'Rôles', 13 | 'column.permissions' => 'Permissions', 14 | 'column.updated_at' => 'Mis à jour à', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => 'Nom', 23 | 'field.guard_name' => 'Nom du Guard', 24 | 'field.permissions' => 'Permissions', 25 | 'field.select_all.name' => 'Tout sélectionner', 26 | 'field.select_all.message' => 'Activer toutes les autorisations pour ce rôle', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Shield', 35 | 'nav.role.label' => 'Rôles', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Rôle', 38 | 'resource.label.roles' => 'Rôles', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'Entités', 47 | 'resources' => 'Ressources', 48 | 'widgets' => 'Widgets', 49 | 'pages' => 'Pages', 50 | 'custom' => 'Permissions personnalisées', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'Vous n\'avez pas la permission d\'accéder', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | // 'resource_permission_prefixes_labels' => [ 67 | // 'view' => 'View', 68 | // 'view_any' => 'View Any', 69 | // 'create' => 'Create', 70 | // 'update' => 'Update', 71 | // 'delete' => 'Delete', 72 | // 'delete_any' => 'Delete Any', 73 | // 'force_delete' => 'Force Delete', 74 | // 'force_delete_any' => 'Force Delete Any', 75 | // 'restore' => 'Restore', 76 | // 'replicate' => 'Replicate', 77 | // 'reorder' => 'Reorder', 78 | // 'restore_any' => 'Restore Any', 79 | // ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/hu/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Név', 11 | 'column.guard_name' => 'Guard név', 12 | 'column.roles' => 'Jogosultságok', 13 | 'column.permissions' => 'Engedélyek', 14 | 'column.updated_at' => 'Frissítve', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => 'Név', 23 | 'field.guard_name' => 'Guard név', 24 | 'field.permissions' => 'Engedélyek', 25 | 'field.select_all.name' => 'Összes kijelölése', 26 | 'field.select_all.message' => 'Engedélyezze az összes jelenleg bekapcsolt engedélyt a szerepkör számára.', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Shield', 35 | 'nav.role.label' => 'Jogosultságok', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Jogosultság', 38 | 'resource.label.roles' => 'Jogosultságok', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'Entitások', 47 | 'resources' => 'Erőforrások', 48 | 'widgets' => 'Widgetek', 49 | 'pages' => 'Oldalak', 50 | 'custom' => 'Egyedi jogosultságok', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'Nincs megfelelő hozzáférésed', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | 'resource_permission_prefixes_labels' => [ 67 | 'view' => 'Megtekintés', 68 | 'view_any' => 'Mind megtekintése', 69 | 'create' => 'Létrehozás', 70 | 'update' => 'Módosítás', 71 | 'delete' => 'Törlés', 72 | 'delete_any' => 'Mind törlése', 73 | 'force_delete' => 'Végleges törlés', 74 | 'force_delete_any' => 'Mind végeles törlése', 75 | 'restore' => 'Helyreállítás', 76 | 'reorder' => 'Sorbarendezés', 77 | 'restore_any' => 'Mind helyreállítása', 78 | 'replicate' => 'Másolás', 79 | ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/id/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Nama', 11 | 'column.guard_name' => 'Nama Penjaga', 12 | 'column.roles' => 'Peran', 13 | 'column.permissions' => 'Izin', 14 | 'column.updated_at' => 'Dirubah', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => 'Nama', 23 | 'field.guard_name' => 'Nama Penjaga', 24 | 'field.permissions' => 'Izin', 25 | 'field.select_all.name' => 'Pilih Semua', 26 | 'field.select_all.message' => 'Aktifkan semua izin yang Tersedia untuk Peran ini.', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Pelindung', 35 | 'nav.role.label' => 'Peran', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Peran', 38 | 'resource.label.roles' => 'Peran', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'Entitas', 47 | 'resources' => 'Sumber Daya', 48 | 'widgets' => 'Widget', 49 | 'pages' => 'Halaman', 50 | 'custom' => 'Izin Kustom', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'Kamu tidak punya izin akses', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | // 'resource_permission_prefixes_labels' => [ 67 | // 'view' => 'View', 68 | // 'view_any' => 'View Any', 69 | // 'create' => 'Create', 70 | // 'update' => 'Update', 71 | // 'delete' => 'Delete', 72 | // 'delete_any' => 'Delete Any', 73 | // 'force_delete' => 'Force Delete', 74 | // 'force_delete_any' => 'Force Delete Any', 75 | // 'restore' => 'Restore', 76 | // 'replicate' => 'Replicate', 77 | // 'reorder' => 'Reorder', 78 | // 'restore_any' => 'Restore Any', 79 | // ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/it/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Nome', 11 | 'column.guard_name' => 'Nome Guard', 12 | 'column.roles' => 'Ruoli', 13 | 'column.permissions' => 'Permessi', 14 | 'column.updated_at' => 'Aggiornato a', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => 'Nome', 23 | 'field.guard_name' => 'Nome Guard', 24 | 'field.permissions' => 'Permessi', 25 | 'field.select_all.name' => 'Seleziona Tutto', 26 | 'field.select_all.message' => 'Abilita tutti i Permessi attualmente Abilitati per questo ruolo', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Shield', 35 | 'nav.role.label' => 'Ruoli', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Ruolo', 38 | 'resource.label.roles' => 'Ruoli', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'Entities', 47 | 'resources' => 'Resources', 48 | 'widgets' => 'Widgets', 49 | 'pages' => 'Pages', 50 | 'custom' => 'Permessi Personalizzati', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'Non hai i permessi di accesso', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | // 'resource_permission_prefixes_labels' => [ 67 | // 'view' => 'View', 68 | // 'view_any' => 'View Any', 69 | // 'create' => 'Create', 70 | // 'update' => 'Update', 71 | // 'delete' => 'Delete', 72 | // 'delete_any' => 'Delete Any', 73 | // 'force_delete' => 'Force Delete', 74 | // 'force_delete_any' => 'Force Delete Any', 75 | // 'restore' => 'Restore', 76 | // 'replicate' => 'Replicate', 77 | // 'reorder' => 'Reorder', 78 | // 'restore_any' => 'Restore Any', 79 | // ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/ja/filament-shield.php: -------------------------------------------------------------------------------- 1 | '名前', 11 | 'column.guard_name' => 'ガード名', 12 | 'column.roles' => 'ロール', 13 | 'column.permissions' => 'パーミッション', 14 | 'column.updated_at' => '更新日時', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => '名前', 23 | 'field.guard_name' => 'ガード名', 24 | 'field.permissions' => 'パーミッション', 25 | 'field.select_all.name' => 'すべて選択', 26 | 'field.select_all.message' => 'このロールに対して現在有効となっているすべての権限を有効にします。', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Shield', 35 | 'nav.role.label' => 'ロール', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'ロール', 38 | 'resource.label.roles' => 'ロール', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'エンティティ', 47 | 'resources' => 'リソース', 48 | 'widgets' => 'ウィジェット', 49 | 'pages' => 'ページ', 50 | 'custom' => 'カスタムパーミッション', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'アクセスするパーミッションがありません。', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | 'resource_permission_prefixes_labels' => [ 67 | 'view' => '表示', 68 | 'view_any' => 'どれでも表示', 69 | 'create' => '作成', 70 | 'update' => '更新', 71 | 'delete' => '削除', 72 | 'delete_any' => 'どれでも削除', 73 | 'force_delete' => '強制削除', 74 | 'force_delete_any' => 'どれでも強制削除', 75 | 'restore' => 'リストア', 76 | 'reorder' => '並べ直し', 77 | 'restore_any' => 'どれでもリストア', 78 | 'replicate' => 'レプリカ', 79 | ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/nl/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Naam', 11 | 'column.guard_name' => 'Guard Naam', 12 | 'column.roles' => 'Rollen', 13 | 'column.permissions' => 'Permissies', 14 | 'column.updated_at' => 'Aangepast op', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => 'Naam', 23 | 'field.guard_name' => 'Guard Naam', 24 | 'field.permissions' => 'Permissies', 25 | 'field.select_all.name' => 'Selecteer alles', 26 | 'field.select_all.message' => 'Zet alle permissies aan, die momenteel aangevinkt staan voor deze rol.', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Shield', 35 | 'nav.role.label' => 'Rollen', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Rol', 38 | 'resource.label.roles' => 'Rollen', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'Entiteiten', 47 | 'resources' => 'Resources', 48 | 'widgets' => 'Widgets', 49 | 'pages' => 'Pagina\'s', 50 | 'custom' => 'Andere permissies', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'Je hebt geen toegang', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | 'resource_permission_prefixes_labels' => [ 67 | 'view' => 'Bekijken', 68 | 'view_any' => 'Bekijk elke', 69 | 'create' => 'Aanmaken', 70 | 'update' => 'Bewerken', 71 | 'delete' => 'Verwijderen', 72 | 'delete_any' => 'Verwijder elke', 73 | 'force_delete' => 'Forceer verwijderen', 74 | 'force_delete_any' => 'Forceer verwijderen elke', 75 | 'restore' => 'Herstellen', 76 | 'restore_any' => 'Herstel elke', 77 | 'replicate' => 'Repliceren', 78 | // 'reorder' => 'Reorder', 79 | ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/pt_BR/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Nome', 11 | 'column.guard_name' => 'Guard', 12 | 'column.roles' => 'Funções', 13 | 'column.permissions' => 'Permissões', 14 | 'column.updated_at' => 'Alterado em', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => 'Nome', 23 | 'field.guard_name' => 'Guard', 24 | 'field.permissions' => 'Permissões', 25 | 'field.select_all.name' => 'Selecionar todos', 26 | 'field.select_all.message' => 'Habilitar todas as permissões para essa função', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Shield', 35 | 'nav.role.label' => 'Funções', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Função', 38 | 'resource.label.roles' => 'Funções', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 'section' => 'Entidades', 46 | 'resources' => 'Recursos', 47 | 'widgets' => 'Widgets', 48 | 'pages' => 'Páginas', 49 | 'custom' => 'Permissões customizadas', 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | Messages 54 | |-------------------------------------------------------------------------- 55 | */ 56 | 57 | 'forbidden' => 'Você não tem permissão para acessar', 58 | 59 | /* 60 | |-------------------------------------------------------------------------- 61 | | Resource Permissions' Labels 62 | |-------------------------------------------------------------------------- 63 | */ 64 | 65 | // 'resource_permission_prefixes_labels' => [ 66 | // 'view' => 'View', 67 | // 'view_any' => 'View Any', 68 | // 'create' => 'Create', 69 | // 'update' => 'Update', 70 | // 'delete' => 'Delete', 71 | // 'delete_any' => 'Delete Any', 72 | // 'force_delete' => 'Force Delete', 73 | // 'force_delete_any' => 'Force Delete Any', 74 | // 'restore' => 'Restore', 75 | // 'reorder' => 'Reorder', 76 | // 'restore_any' => 'Restore Any', 77 | // 'replicate' => 'Replicate', 78 | // ], 79 | ]; 80 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/ro/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Număr', 11 | 'column.guard_name' => 'Numele paznicului', 12 | 'column.roles' => 'Roluri', 13 | 'column.permissions' => 'Permisiuni', 14 | 'column.updated_at' => 'Actualizat la', 15 | 16 | /* 17 | |------------------------------------------------- ------------------------- 18 | | Form Fields 19 | |------------------------------------------------- ------------------------- 20 | */ 21 | 22 | 'field.name' => 'Nume', 23 | 'field.guard_name' => 'Numele paznicului', 24 | 'field.permissions' => 'Permisiuni', 25 | 'field.select_all.name' => 'Selectați tot', 26 | 'field.select_all.message' => 'Activați toate permisiunile în prezent Activate pentru acest rol', 27 | 28 | /* 29 | |------------------------------------------------- ------------------------- 30 | | Navigation & Resources 31 | |------------------------------------------------- ------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Scut', 35 | 'nav.role.label' => 'Roluri', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Rol', 38 | 'resource.label.roles' => 'Roluri', 39 | 40 | /* 41 | |------------------------------------------------- ------------------------- 42 | | Section & Tabs 43 | |------------------------------------------------- ------------------------- 44 | */ 45 | 46 | 'section' => 'Entități', 47 | 'resources' => 'Resurse', 48 | 'widgets' => 'Widget-uri', 49 | 'pages' => 'Pagini', 50 | 'custom' => 'Permisiuni personalizate', 51 | 52 | /* 53 | |------------------------------------------------- ------------------------- 54 | | Posts 55 | |------------------------------------------------- ------------------------- 56 | */ 57 | 58 | 'forbidden' => 'Nu aveți permisiunea de a accesa', 59 | 60 | /* 61 | |------------------------------------------------- ------------------------- 62 | | Resource Permissions' Labels 63 | |------------------------------------------------- ------------------------- 64 | */ 65 | 66 | 'resource_permission_prefixes_labels' => [ 67 | 'view' => 'Vizualizare', 68 | 'view_any' => 'Vedeți orice', 69 | 'create' => 'Creează', 70 | 'update' => 'Actualizare', 71 | 'delete' => 'Șterge', 72 | 'delete_any' => 'Șterge orice', 73 | 'force_delete' => 'Forțat ștergerea', 74 | 'force_delete_any' => 'Forțat ștergerea oricărei', 75 | 'restore' => 'Restaurare', 76 | 'reorder' => 'Reordonare', 77 | 'restore_any' => 'Restaurează orice', 78 | 'replicate' => 'Replicare', 79 | ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/ru/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Имя', 11 | 'column.guard_name' => 'Имя гварда', 12 | 'column.roles' => 'Роли', 13 | 'column.permissions' => 'Разрешения', 14 | 'column.updated_at' => 'Обновлено', 15 | 16 | /* 17 | |------------------------------------------------- ------------------------- 18 | | Form Fields 19 | |------------------------------------------------- ------------------------- 20 | */ 21 | 22 | 'field.name' => 'Имя', 23 | 'field.guard_name' => 'Имя гварда', 24 | 'field.permissions' => 'Разрешения', 25 | 'field.select_all.name' => 'Выбрать все', 26 | 'field.select_all.message' => 'Включить все разрешения, которые Доступны для этой роли', 27 | 28 | /* 29 | |------------------------------------------------- ------------------------- 30 | | Navigation & Resource 31 | |------------------------------------------------- ------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Shield', 35 | 'nav.role.label' => 'Роли', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Роль', 38 | 'resource.label.roles' => 'Роли', 39 | 40 | /* 41 | |------------------------------------------------- ------------------------- 42 | | Section & Tabs 43 | |------------------------------------------------- ------------------------- 44 | */ 45 | 46 | 'section' => 'Сути', 47 | 'resources' => 'Ресурсы', 48 | 'widgets' => 'Виджеты', 49 | 'pages' => 'Страницы', 50 | 'custom' => 'Пользовательские разрешения', 51 | 52 | /* 53 | |------------------------------------------------- ------------------------- 54 | | Messages 55 | |------------------------------------------------- ------------------------- 56 | */ 57 | 58 | 'forbidden' => 'У вас нет доступа', 59 | 60 | /* 61 | |------------------------------------------------- ------------------------- 62 | | Resource Permissions' Labels 63 | |------------------------------------------------- ------------------------- 64 | */ 65 | 66 | 'resource_permission_prefixes_labels' => [ 67 | 'view' => 'Просмотр', 68 | 'view_any' => 'Может смотреть любое', 69 | 'create' => 'Создание', 70 | 'update' => 'Обновление', 71 | 'delete' => 'Удаление', 72 | 'delete_any' => 'Может удалить любой', 73 | 'force_delete' => 'Принудительно удалить', 74 | 'force_delete_any' => 'Может принудительно удалить любой', 75 | 'restore' => 'Восстановление', 76 | 'reorder' => 'Изменение порядка', 77 | 'restore_any' => 'Может восстановить любой', 78 | 'replicate' => 'Копировать', 79 | ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/tr/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Ad', 11 | 'column.guard_name' => 'Koruma Adı', 12 | 'column.roles' => 'Roller', 13 | 'column.permissions' => 'İzinler', 14 | 'column.updated_at' => 'Güncellenme Tarihi', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => 'Ad', 23 | 'field.guard_name' => 'Koruma Adı', 24 | 'field.permissions' => 'İzinler', 25 | 'field.select_all.name' => 'Tümünü Seç', 26 | 'field.select_all.message' => 'Bu rol için şu anda Etkin olan tüm İzinleri etkinleştirin', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Kalkan', 35 | 'nav.role.label' => 'Roller', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Rol', 38 | 'resource.label.roles' => 'Roller', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'Varlıklar', 47 | 'resources' => 'Kaynaklar', 48 | 'widgets' => 'Araçlar', 49 | 'pages' => 'Sayfalar', 50 | 'custom' => 'Özel İzinler', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'Erişim izniniz yok', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | // 'resource_permission_prefixes_labels' => [ 67 | // 'view' => 'View', 68 | // 'view_any' => 'View Any', 69 | // 'create' => 'Create', 70 | // 'update' => 'Update', 71 | // 'delete' => 'Delete', 72 | // 'delete_any' => 'Delete Any', 73 | // 'force_delete' => 'Force Delete', 74 | // 'force_delete_any' => 'Force Delete Any', 75 | // 'restore' => 'Restore', 76 | // 'reorder' => 'Reorder', 77 | // 'restore_any' => 'Restore Any', 78 | // 'replicate' => 'Replicate', 79 | // ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/uk/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Ім\'я', 11 | 'column.guard_name' => 'Ім\'я гварда', 12 | 'column.roles' => 'Ролі', 13 | 'column.permissions' => 'Дозволи', 14 | 'column.updated_at' => 'Оновлено', 15 | 16 | /* 17 | |------------------------------------------------- ------------------------- 18 | | Form Fields 19 | |------------------------------------------------- ------------------------- 20 | */ 21 | 22 | 'field.name' => 'Ім\'я', 23 | 'field.guard_name' => 'Ім\'я гварда', 24 | 'field.permissions' => 'Дозволи', 25 | 'field.select_all.name' => 'Вибрати все', 26 | 'field.select_all.message' => 'Включити всі дозволи, які Доступні для цієї ролі', 27 | 28 | /* 29 | |------------------------------------------------- ------------------------- 30 | | Navigation & Resource 31 | |------------------------------------------------- ------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Shield', 35 | 'nav.role.label' => 'Ролі', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Роль', 38 | 'resource.label.roles' => 'Ролі', 39 | 40 | /* 41 | |------------------------------------------------- ------------------------- 42 | | Section & Tabs 43 | |------------------------------------------------- ------------------------- 44 | */ 45 | 46 | 'section' => 'Сутності', 47 | 'resources' => 'Ресурси', 48 | 'widgets' => 'Віджети', 49 | 'pages' => 'Сторінки', 50 | 'custom' => 'Користувальницькі дозволи', 51 | 52 | /* 53 | |------------------------------------------------- ------------------------- 54 | | Messages 55 | |------------------------------------------------- ------------------------- 56 | */ 57 | 58 | 'forbidden' => 'У вас немає доступу', 59 | 60 | /* 61 | |------------------------------------------------- ------------------------- 62 | | Resource Permissions' Labels 63 | |------------------------------------------------- ------------------------- 64 | */ 65 | 66 | 'resource_permission_prefixes_labels' => [ 67 | 'view' => 'Перегляд', 68 | 'view_any' => 'Може дивитися будь-яке', 69 | 'create' => 'Створення', 70 | 'update' => 'Оновлення', 71 | 'delete' => 'Видалення', 72 | 'delete_any' => 'Може видалити будь-який', 73 | 'force_delete' => 'Примусово видалити', 74 | 'force_delete_any' => 'Може примусово видалити будь-який', 75 | 'restore' => 'Відновлення', 76 | 'reorder' => 'Зміна порядку', 77 | 'restore_any' => 'Може відновити будь-який', 78 | 'replicate' => 'Копіювати', 79 | ], 80 | ]; 81 | -------------------------------------------------------------------------------- /lang/vendor/filament-shield/vi/filament-shield.php: -------------------------------------------------------------------------------- 1 | 'Tên', 11 | 'column.guard_name' => 'Tên guard', 12 | 'column.roles' => 'Vai trò', 13 | 'column.permissions' => 'Quyền', 14 | 'column.updated_at' => 'Cập nhật lúc', 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Form Fields 19 | |-------------------------------------------------------------------------- 20 | */ 21 | 22 | 'field.name' => 'Tên', 23 | 'field.guard_name' => 'Tên guard', 24 | 'field.permissions' => 'Quyền', 25 | 'field.select_all.name' => 'Chọn tất cả', 26 | 'field.select_all.message' => 'Bật tất cả Quyền hiện tại Đã bật cho vai trò này', 27 | 28 | /* 29 | |-------------------------------------------------------------------------- 30 | | Navigation & Resource 31 | |-------------------------------------------------------------------------- 32 | */ 33 | 34 | 'nav.group' => 'Filament Shield', 35 | 'nav.role.label' => 'Vai trò', 36 | 'nav.role.icon' => 'heroicon-o-shield-check', 37 | 'resource.label.role' => 'Vai trò', 38 | 'resource.label.roles' => 'Vai trò', 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Section & Tabs 43 | |-------------------------------------------------------------------------- 44 | */ 45 | 46 | 'section' => 'Thực thể', 47 | 'resources' => 'Tài nguyên', 48 | 'widgets' => 'Widget', 49 | 'pages' => 'Trang', 50 | 'custom' => 'Quyền tùy chỉnh', 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Messages 55 | |-------------------------------------------------------------------------- 56 | */ 57 | 58 | 'forbidden' => 'Bạn không có quyền để truy cập.', 59 | 60 | /* 61 | |-------------------------------------------------------------------------- 62 | | Resource Permissions' Labels 63 | |-------------------------------------------------------------------------- 64 | */ 65 | 66 | 'resource_permission_prefixes_labels' => [ 67 | 'view' => 'Xem', 68 | 'view_any' => 'Xem bất kỳ', 69 | 'create' => 'Tạo', 70 | 'update' => 'Cập nhật', 71 | 'delete' => 'Xóa', 72 | 'delete_any' => 'Xóa bất kỳ', 73 | 'force_delete' => 'Xóa vĩnh viễn', 74 | 'force_delete_any' => 'Xóa vĩnh viễn bất kỳ', 75 | 'restore' => 'Khôi phục', 76 | 'reorder' => 'Sắp xếp lại', 77 | 'restore_any' => 'Khôi phục bất kỳ', 78 | 'replicate' => 'Nhân bản', 79 | ], 80 | ]; 81 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "vite", 5 | "build": "vite build" 6 | }, 7 | "devDependencies": { 8 | "@tailwindcss/forms": "^0.5.3", 9 | "@tailwindcss/typography": "^0.5.9", 10 | "autoprefixer": "^10.4.14", 11 | "axios": "^1.1.2", 12 | "laravel-vite-plugin": "^0.7.2", 13 | "lodash": "^4.17.19", 14 | "postcss": "^8.1.14", 15 | "tailwindcss": "^3.2.7", 16 | "tippy.js": "^6.3.7", 17 | "vite": "^4.0.0" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | ./tests/Unit 10 | 11 | 12 | ./tests/Feature 13 | 14 | 15 | 16 | 17 | ./app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /public/css/filament/support/support.css: -------------------------------------------------------------------------------- 1 | .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff} 2 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanalhattami/filament-page-with-sidebar-project/d9bc27aca1ac02c8be16ef26c7914298ecc4e089/public/favicon.ico -------------------------------------------------------------------------------- /public/images/users-index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanalhattami/filament-page-with-sidebar-project/d9bc27aca1ac02c8be16ef26c7914298ecc4e089/public/images/users-index.png -------------------------------------------------------------------------------- /public/images/users-view-AR.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanalhattami/filament-page-with-sidebar-project/d9bc27aca1ac02c8be16ef26c7914298ecc4e089/public/images/users-view-AR.png -------------------------------------------------------------------------------- /public/images/users-view-EN.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanalhattami/filament-page-with-sidebar-project/d9bc27aca1ac02c8be16ef26c7914298ecc4e089/public/images/users-view-EN.png -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class); 50 | 51 | $response = $kernel->handle( 52 | $request = Request::capture() 53 | )->send(); 54 | 55 | $kernel->terminate($request, $response); 56 | -------------------------------------------------------------------------------- /public/js/filament/forms/components/key-value.js: -------------------------------------------------------------------------------- 1 | function r({state:i}){return{state:i,rows:[],shouldUpdateRows:!0,init:function(){this.updateRows(),this.rows.length<=0&&this.addRow(),this.updateState(),this.$watch("state",(t,e)=>{let s=o=>o===null?0:Array.isArray(o)?o.length:typeof o!="object"?0:Object.keys(o).length;s(t)===0&&s(e)===0||this.updateRows()})},addRow:function(){this.rows.push({key:"",value:""}),this.updateState()},deleteRow:function(t){this.rows.splice(t,1),this.rows.length<=0&&this.addRow(),this.updateState()},reorderRows:function(t){let e=Alpine.raw(this.rows),s=e.splice(t.oldIndex,1)[0];e.splice(t.newIndex,0,s),this.rows=e,this.updateState()},updateRows:function(){if(!this.shouldUpdateRows){this.shouldUpdateRows=!0;return}let t=[];for(let[e,s]of Object.entries(this.state??{}))t.push({key:e,value:s});this.rows=t},updateState:function(){let t={};this.rows.forEach(e=>{e.key===""||e.key===null||(t[e.key]=e.value)}),this.shouldUpdateRows=!1,this.state=t}}}export{r as default}; 2 | -------------------------------------------------------------------------------- /public/js/filament/forms/components/tags-input.js: -------------------------------------------------------------------------------- 1 | function i({state:a,splitKeys:n}){return{newTag:"",state:a,createTag:function(){if(this.newTag=this.newTag.trim(),this.newTag!==""){if(this.state.includes(this.newTag)){this.newTag="";return}this.state.push(this.newTag),this.newTag=""}},deleteTag:function(t){this.state=this.state.filter(e=>e!==t)},input:{["x-on:blur"]:"createTag()",["x-model"]:"newTag",["x-on:keydown"](t){["Enter",...n].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.createTag())},["x-on:paste"](){this.$nextTick(()=>{let t=n.map(e=>e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")).join("|");this.newTag.split(new RegExp(t,"g")).forEach(e=>{this.newTag=e,this.createTag()})})}}}}export{i as default}; 2 | -------------------------------------------------------------------------------- /public/js/filament/forms/components/textarea.js: -------------------------------------------------------------------------------- 1 | function t({initialHeight:e}){return{init:function(){this.render()},render:function(){this.$el.scrollHeight>0&&(this.$el.style.height=e+"rem",this.$el.style.height=this.$el.scrollHeight+"px")}}}export{t as default}; 2 | -------------------------------------------------------------------------------- /public/js/filament/forms/forms.js: -------------------------------------------------------------------------------- 1 | (()=>{function b(n){n.directive("mask",(e,{value:t,expression:u},{effect:f,evaluateLater:c})=>{let r=()=>u,l="";queueMicrotask(()=>{if(["function","dynamic"].includes(t)){let o=c(u);f(()=>{r=a=>{let s;return n.dontAutoEvaluateFunctions(()=>{o(d=>{s=typeof d=="function"?d(a):d},{scope:{$input:a,$money:I.bind({el:e})}})}),s},i(e,!1)})}else i(e,!1);e._x_model&&e._x_model.set(e.value)}),e.addEventListener("input",()=>i(e)),e.addEventListener("blur",()=>i(e,!1));function i(o,a=!0){let s=o.value,d=r(s);if(!d||d==="false")return!1;if(l.length-o.value.length===1)return l=o.value;let g=()=>{l=o.value=p(s,d)};a?k(o,d,()=>{g()}):g()}function p(o,a){if(o==="")return"";let s=h(a,o);return m(a,s)}}).before("model")}function k(n,e,t){let u=n.selectionStart,f=n.value;t();let c=f.slice(0,u),r=m(e,h(e,c)).length;n.setSelectionRange(r,r)}function h(n,e){let t=e,u="",f={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},c="";for(let r=0;r{let o="",a=0;for(let s=i.length-1;s>=0;s--)i[s]!==p&&(a===3?(o=i[s]+p+o,a=0):o=i[s]+o,a++);return o},c=n.startsWith("-")?"-":"",r=n.replaceAll(new RegExp(`[^0-9\\${e}]`,"g"),""),l=Array.from({length:r.split(e)[0].length}).fill("9").join("");return l=`${c}${f(l,t)}`,u>0&&n.includes(e)&&(l+=`${e}`+"9".repeat(u)),queueMicrotask(()=>{this.el.value.endsWith(e)||this.el.value[this.el.selectionStart-1]===e&&this.el.setSelectionRange(this.el.selectionStart-1,this.el.selectionStart-1)}),l}var v=b;document.addEventListener("alpine:init",()=>{window.Alpine.plugin(v)});})(); 2 | -------------------------------------------------------------------------------- /public/js/filament/tables/components/table.js: -------------------------------------------------------------------------------- 1 | function c(){return{collapsedGroups:[],isLoading:!1,selectedRecords:[],shouldCheckUniqueSelection:!0,init:function(){this.$wire.$on("deselectAllTableRecords",()=>this.deselectAllRecords()),this.$watch("selectedRecords",()=>{if(!this.shouldCheckUniqueSelection){this.shouldCheckUniqueSelection=!0;return}this.selectedRecords=[...new Set(this.selectedRecords)],this.shouldCheckUniqueSelection=!1})},mountBulkAction:function(e){this.$wire.set("selectedTableRecords",this.selectedRecords,!1),this.$wire.mountTableBulkAction(e)},toggleSelectRecordsOnPage:function(){let e=this.getRecordsOnPage();if(this.areRecordsSelected(e)){this.deselectRecords(e);return}this.selectRecords(e)},toggleSelectRecordsInGroup:async function(e){if(this.isLoading=!0,this.areRecordsSelected(this.getRecordsInGroupOnPage(e))){this.deselectRecords(await this.$wire.getGroupedSelectableTableRecordKeys(e));return}this.selectRecords(await this.$wire.getGroupedSelectableTableRecordKeys(e)),this.isLoading=!1},getRecordsInGroupOnPage:function(e){let s=[];for(let t of this.$root.getElementsByClassName("fi-ta-record-checkbox"))t.dataset.group===e&&s.push(t.value);return s},getRecordsOnPage:function(){let e=[];for(let s of this.$root.getElementsByClassName("fi-ta-record-checkbox"))e.push(s.value);return e},selectRecords:function(e){for(let s of e)this.isRecordSelected(s)||this.selectedRecords.push(s)},deselectRecords:function(e){for(let s of e){let t=this.selectedRecords.indexOf(s);t!==-1&&this.selectedRecords.splice(t,1)}},selectAllRecords:async function(){this.isLoading=!0,this.selectedRecords=await this.$wire.getAllSelectableTableRecordKeys(),this.isLoading=!1},deselectAllRecords:function(){this.selectedRecords=[]},isRecordSelected:function(e){return this.selectedRecords.includes(e)},areRecordsSelected:function(e){return e.every(s=>this.isRecordSelected(s))},toggleCollapseGroup:function(e){if(this.isGroupCollapsed(e)){this.collapsedGroups.splice(this.collapsedGroups.indexOf(e),1);return}this.collapsedGroups.push(e)},isGroupCollapsed:function(e){return this.collapsedGroups.includes(e)},resetCollapsedGroups:function(){this.collapsedGroups=[]}}}export{c as default}; 2 | -------------------------------------------------------------------------------- /public/js/filament/tables/tables.js: -------------------------------------------------------------------------------- 1 | (()=>{})(); 2 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanalhattami/filament-page-with-sidebar-project/d9bc27aca1ac02c8be16ef26c7914298ecc4e089/resources/css/app.css -------------------------------------------------------------------------------- /resources/css/filament.css: -------------------------------------------------------------------------------- 1 | @import '../../vendor/filament/filament/resources/css/app.css'; -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | import './bootstrap'; 2 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | /** 2 | * We'll load the axios HTTP library which allows us to easily issue requests 3 | * to our Laravel back-end. This library automatically handles sending the 4 | * CSRF token as a header based on the value of the "XSRF" token cookie. 5 | */ 6 | 7 | import axios from 'axios'; 8 | window.axios = axios; 9 | 10 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 11 | 12 | /** 13 | * Echo exposes an expressive API for subscribing to channels and listening 14 | * for events that are broadcast by Laravel. Echo and event broadcasting 15 | * allows your team to easily build robust real-time web applications. 16 | */ 17 | 18 | // import Echo from 'laravel-echo'; 19 | 20 | // import Pusher from 'pusher-js'; 21 | // window.Pusher = Pusher; 22 | 23 | // window.Echo = new Echo({ 24 | // broadcaster: 'pusher', 25 | // key: import.meta.env.VITE_PUSHER_APP_KEY, 26 | // cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1', 27 | // wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, 28 | // wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, 29 | // wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, 30 | // forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', 31 | // enabledTransports: ['ws', 'wss'], 32 | // }); 33 | -------------------------------------------------------------------------------- /resources/views/components/alerts/warning.blade.php: -------------------------------------------------------------------------------- 1 | @props([ 2 | 'title' => 'Attention needed', 3 | 'message' => '' 4 | ]) 5 | 6 |
merge([ 7 | 'class' => 'rounded-md bg-yellow-50 p-4' 8 | ]) }}> 9 |
10 |
11 | 16 |
17 |
18 |

{{ trans($title) }}

19 |
20 |

{{ trans($message) }}

21 |
22 |
23 |
24 |
25 | -------------------------------------------------------------------------------- /resources/views/components/badges/index.blade.php: -------------------------------------------------------------------------------- 1 | @props([ 2 | 'color' => 'gray', 3 | 'text' => '' 4 | ]) 5 | 6 | {{ $text }} -------------------------------------------------------------------------------- /resources/views/filament/pages/admin-panel-settings.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 8 | 9 | 10 |
11 |
12 | -------------------------------------------------------------------------------- /resources/views/filament/pages/general-settings.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 8 | 9 | 10 |
11 |
12 | -------------------------------------------------------------------------------- /resources/views/filament/pages/notification-configuration.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 8 | 9 | 10 |
11 |
12 | -------------------------------------------------------------------------------- /resources/views/filament/pages/payment-configuration.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 8 | 9 | 10 |
11 |
12 | -------------------------------------------------------------------------------- /resources/views/filament/pages/questions.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | @csrf 4 |
5 | 6 |
7 | 8 |
9 |
10 | Ask 11 |
12 | 13 |
14 | @foreach($questions as $question) 15 | 31 | @endforeach 32 |
33 | -------------------------------------------------------------------------------- /resources/views/filament/pages/shipping-configuration.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 8 | 9 | 10 |
11 |
12 | -------------------------------------------------------------------------------- /resources/views/filament/pages/sms-configuration.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 8 | 9 | 10 |
11 |
12 | -------------------------------------------------------------------------------- /resources/views/filament/pages/web-site-settings.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 8 | 9 | 10 |
11 |
12 | -------------------------------------------------------------------------------- /resources/views/filament/resources/user-resource/pages/change-password-user.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | {{ $this->form }} 5 | 6 |
7 | {{ $this->saveAction }} 8 |
9 |
10 |
11 |
12 | -------------------------------------------------------------------------------- /resources/views/filament/resources/user-resource/pages/list-activities-user.blade.php: -------------------------------------------------------------------------------- 1 | 2 | {{ $this->table }} 3 | 4 | -------------------------------------------------------------------------------- /resources/views/filament/resources/user-resource/pages/list-user-activities-user.blade.php: -------------------------------------------------------------------------------- 1 | 2 | {{ $this->table }} 3 | 4 | -------------------------------------------------------------------------------- /resources/views/filament/resources/user-resource/pages/manage-user.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | {{ $this->form }} 5 | 6 |
7 | {{ $this->saveAction }} 8 |
9 |
10 |
11 |
12 | -------------------------------------------------------------------------------- /resources/views/filament/resources/user-resource/widgets/user-closed-widget.blade.php: -------------------------------------------------------------------------------- 1 | 2 | @if ($record->status == App\CoreLogic\Enums\StatusEnum::Closed->value) 3 | 4 | @endif 5 | 6 | -------------------------------------------------------------------------------- /resources/views/filament/resources/user-resource/widgets/user-last-login-widget.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |

{{ __('Login') }}

6 |

7 | {{ __('Last Login Information for') }} 8 | {{ $record->name }} 9 |

10 |
11 |
12 |
13 |
14 |
{{ __('Event') }}
15 |
16 | {{ $activity?->event }} 17 |
18 |
19 |
20 |
{{ __('Description') }}
21 |
22 | {{ $activity?->description }} 23 |
24 |
25 |
26 |
{{ __('IP') }}
27 |
28 | {{ $activity?->properties['ip'] }} 29 |
30 |
31 |
32 |
{{ __('User Agent') }}
33 |
34 | {{ $activity?->properties['user_agent'] }} 35 |
36 |
37 |
38 |
{{ __('Login At') }}
39 |
40 | {{ $activity?->created_at }} 41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | -------------------------------------------------------------------------------- /resources/views/filament/resources/user-resource/widgets/user-profile-widget.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 | 7 |
8 | @if ($record?->hasMedia()) 9 | 12 | @else 13 |
15 | {{ substr($record?->name, 0, 1) }} 16 |
17 | @endif 18 |
19 |
20 | 23 |

25 | {{ $record?->name }}

26 |
27 |
28 |
Company
29 |
30 | 33 | 35 | 36 | 37 | {{ $record?->email }} 38 |
39 |
Account status
40 |
42 | {{-- --}} 48 | {{-- --}} 49 |
50 | {{ trans('Created at') }} : 51 | {{ $record?->created_at }} 52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | {{-- {{ trans('Edit') }} 62 |
63 |
64 |
65 |
66 |
67 | -------------------------------------------------------------------------------- /resources/views/filament/resources/user-resource/widgets/user-status-widget.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | {{ __('User Current Status is') }} 5 | {{ $record?->status }} 6 |
7 |
8 |
9 | -------------------------------------------------------------------------------- /resources/views/vendor/media-library/image.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/vendor/media-library/placeholderSvg.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /resources/views/vendor/media-library/responsiveImage.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/vendor/media-library/responsiveImageWithPlaceholder.blade.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 18 | return $request->user(); 19 | }); 20 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->purpose('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 18 | 19 | return $app; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 16 | 17 | $response->assertStatus(200); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite'; 2 | import laravel from 'laravel-vite-plugin'; 3 | 4 | export default defineConfig({ 5 | plugins: [ 6 | laravel({ 7 | input: ['resources/css/app.css', 'resources/js/app.js'], 8 | refresh: true, 9 | }), 10 | ], 11 | }); 12 | --------------------------------------------------------------------------------