├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── .styleci.yml ├── README.md ├── app ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Helpers │ └── Helpers.php ├── Http │ ├── Controllers │ │ ├── Auth │ │ │ ├── ConfirmPasswordController.php │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── RegisterController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── VerificationController.php │ │ ├── Controller.php │ │ └── HomeController.php │ ├── Kernel.php │ ├── Livewire │ │ ├── Backoff │ │ │ ├── Menus.php │ │ │ ├── Permissions.php │ │ │ ├── Roles.php │ │ │ └── Users.php │ │ ├── Component │ │ │ └── SelectPermission.php │ │ └── Tables │ │ │ ├── Menus.php │ │ │ ├── Permissions.php │ │ │ ├── Roles.php │ │ │ └── Users.php │ └── Middleware │ │ ├── Authenticate.php │ │ ├── EncryptCookies.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php ├── Models │ ├── Menu.php │ └── User.php └── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── coreui.php ├── cors.php ├── database.php ├── filesystems.php ├── hashing.php ├── laravel-model-caching.php ├── livewire-datatables.php ├── livewire.php ├── logging.php ├── mail.php ├── permission.php ├── queue.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_resets_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2021_06_10_140741_create_permission_tables.php │ ├── 2021_06_12_162515_create_cache_table.php │ └── 2021_07_02_023242_create_menus_table.php └── seeders │ └── DatabaseSeeder.php ├── package-lock.json ├── package.json ├── phpunit.xml ├── public ├── .htaccess ├── css │ └── app.css ├── favicon.ico ├── index.php ├── js │ └── app.js ├── mix-manifest.json ├── robots.txt ├── vendor │ ├── coreui │ │ ├── css │ │ │ ├── coreui.min.css │ │ │ └── coreui.min.css.map │ │ ├── fontawesome │ │ │ ├── css │ │ │ │ └── fontawesome.css │ │ │ └── webfonts │ │ │ │ ├── fa-brands-400.eot │ │ │ │ ├── fa-brands-400.svg │ │ │ │ ├── fa-brands-400.ttf │ │ │ │ ├── fa-brands-400.woff │ │ │ │ ├── fa-brands-400.woff2 │ │ │ │ ├── fa-regular-400.eot │ │ │ │ ├── fa-regular-400.svg │ │ │ │ ├── fa-regular-400.ttf │ │ │ │ ├── fa-regular-400.woff │ │ │ │ ├── fa-regular-400.woff2 │ │ │ │ ├── fa-solid-900.eot │ │ │ │ ├── fa-solid-900.svg │ │ │ │ ├── fa-solid-900.ttf │ │ │ │ ├── fa-solid-900.woff │ │ │ │ └── fa-solid-900.woff2 │ │ └── js │ │ │ ├── coreui-utilities.min.js │ │ │ ├── coreui-utilities.min.js.map │ │ │ ├── coreui.bundle.min.js │ │ │ ├── coreui.bundle.min.js.map │ │ │ ├── perfect-scrollbar.min.js │ │ │ ├── perfect-scrollbar.min.js.map │ │ │ └── toggle_sidebar.js │ ├── livewire │ │ ├── livewire.js │ │ ├── livewire.js.map │ │ └── manifest.json │ └── sweetalert │ │ └── sweetalert.all.js └── web.config ├── resources ├── css │ └── app.css ├── js │ ├── app.js │ └── bootstrap.js ├── lang │ ├── en │ │ ├── auth.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php │ └── vendor │ │ └── coreui │ │ ├── en │ │ └── coreui.php │ │ └── nl │ │ └── coreui.php └── views │ ├── auth │ ├── login.blade.php │ ├── passwords │ │ ├── email.blade.php │ │ └── reset.blade.php │ └── register.blade.php │ ├── backoff │ ├── menu.blade.php │ ├── menu │ │ ├── action.blade.php │ │ ├── create.blade.php │ │ ├── index.blade.php │ │ └── view.blade.php │ ├── permission.blade.php │ ├── permission │ │ ├── action.blade.php │ │ ├── create.blade.php │ │ ├── index.blade.php │ │ └── view.blade.php │ ├── role.blade.php │ ├── role │ │ ├── action.blade.php │ │ ├── create.blade.php │ │ ├── index.blade.php │ │ ├── permission.blade.php │ │ └── view.blade.php │ ├── user.blade.php │ └── user │ │ ├── action.blade.php │ │ ├── create.blade.php │ │ ├── index.blade.php │ │ ├── role.blade.php │ │ └── view.blade.php │ ├── errors │ ├── 401.blade.php │ ├── 403.blade.php │ ├── 404.blade.php │ ├── 419.blade.php │ ├── 429.blade.php │ ├── 500.blade.php │ ├── 503.blade.php │ ├── illustrated-layout.blade.php │ ├── layout.blade.php │ └── minimal.blade.php │ ├── home.blade.php │ ├── livewire │ └── datatables │ │ ├── action.blade.php │ │ ├── boolean.blade.php │ │ ├── checkbox.blade.php │ │ ├── datatable.blade.php │ │ ├── delete.blade.php │ │ ├── editable.blade.php │ │ ├── filters │ │ ├── boolean.blade.php │ │ ├── date.blade.php │ │ ├── editable.blade.php │ │ ├── number.blade.php │ │ ├── select.blade.php │ │ ├── string.blade.php │ │ └── time.blade.php │ │ ├── header-inline-hide.blade.php │ │ ├── header-no-hide.blade.php │ │ ├── hide-column-multiselect.blade.php │ │ ├── highlight.blade.php │ │ ├── icons │ │ ├── arrow-circle-left.blade.php │ │ ├── arrow-left.blade.php │ │ ├── arrow-right.blade.php │ │ ├── check-circle.blade.php │ │ ├── chevron-down.blade.php │ │ ├── chevron-up.blade.php │ │ ├── cog.blade.php │ │ ├── excel.blade.php │ │ ├── trash.blade.php │ │ └── x-circle.blade.php │ │ ├── link.blade.php │ │ ├── tailwind-pagination.blade.php │ │ ├── tailwind-simple-pagination.blade.php │ │ └── tooltip.blade.php │ ├── vendor │ ├── coreui │ │ ├── account.blade.php │ │ ├── auth │ │ │ ├── login.blade.php │ │ │ ├── passwords │ │ │ │ ├── email.blade.php │ │ │ │ └── reset.blade.php │ │ │ └── register.blade.php │ │ ├── footer.blade.php │ │ ├── master.blade.php │ │ └── menu-item.blade.php │ ├── livewire-select │ │ ├── default.blade.php │ │ ├── search-input.blade.php │ │ ├── search-no-results.blade.php │ │ ├── search-option-item.blade.php │ │ ├── search-options-container.blade.php │ │ ├── search-selected-option.blade.php │ │ ├── search.blade.php │ │ └── select.blade.php │ ├── livewire │ │ ├── bootstrap.blade.php │ │ ├── simple-bootstrap.blade.php │ │ ├── simple-tailwind.blade.php │ │ └── tailwind.blade.php │ └── sweetalert │ │ └── alert.blade.php │ └── welcome.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── server.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── debugbar │ └── .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 └── webpack.mix.js /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = space 8 | indent_size = 4 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | -------------------------------------------------------------------------------- /.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_LEVEL=debug 9 | 10 | DB_CONNECTION=mysql 11 | DB_HOST=127.0.0.1 12 | DB_PORT=3306 13 | DB_DATABASE=enterprise 14 | DB_USERNAME=root 15 | DB_PASSWORD= 16 | 17 | BROADCAST_DRIVER=log 18 | CACHE_DRIVER=file 19 | FILESYSTEM_DRIVER=local 20 | QUEUE_CONNECTION=sync 21 | SESSION_DRIVER=file 22 | SESSION_LIFETIME=120 23 | 24 | MEMCACHED_HOST=127.0.0.1 25 | 26 | REDIS_HOST=127.0.0.1 27 | REDIS_PASSWORD=null 28 | REDIS_PORT=6379 29 | 30 | MAIL_MAILER=smtp 31 | MAIL_HOST=mailhog 32 | MAIL_PORT=1025 33 | MAIL_USERNAME=null 34 | MAIL_PASSWORD=null 35 | MAIL_ENCRYPTION=null 36 | MAIL_FROM_ADDRESS=null 37 | MAIL_FROM_NAME="${APP_NAME}" 38 | 39 | AWS_ACCESS_KEY_ID= 40 | AWS_SECRET_ACCESS_KEY= 41 | AWS_DEFAULT_REGION=us-east-1 42 | AWS_BUCKET= 43 | AWS_USE_PATH_STYLE_ENDPOINT=false 44 | 45 | PUSHER_APP_ID= 46 | PUSHER_APP_KEY= 47 | PUSHER_APP_SECRET= 48 | PUSHER_APP_CLUSTER=mt1 49 | 50 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 51 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 52 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /storage/*.key 5 | /vendor 6 | .env 7 | .env.backup 8 | .phpunit.result.cache 9 | docker-compose.override.yml 10 | Homestead.json 11 | Homestead.yaml 12 | npm-debug.log 13 | yarn-error.log 14 | /.idea 15 | /.vscode 16 | -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- 1 | php: 2 | preset: laravel 3 | disabled: 4 | - no_unused_imports 5 | finder: 6 | not-name: 7 | - index.php 8 | - server.php 9 | js: 10 | finder: 11 | not-name: 12 | - webpack.mix.js 13 | css: true 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Laravel 8 + CoreUI + Livewire + Datatables 2 | 3 | [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/aRhez0903/Laravel-8-Livewire-CoreUI-Datatables/issues) 4 | 5 | ## About Laravel 8 + CoreUI + Livewire Datatables 6 | 7 | ## Whats Inside 8 | - Laravel Core UI - (https://github.com/HZ-HBO-ICT/Laravel-CoreUI) 9 | - Laravel Permisson (https://github.com/spatie/laravel-permission) 10 | - Livewire Datatables (https://github.com/mediconesystems/livewire-datatables) 11 | 12 | Include simple Data Table with Livewire (CRUD). 13 | 14 | | Feature | Status | 15 | | --- | --- | 16 | | Bootstrap CoreUI Themes | OK | 17 | | Tailwind CSS | OK | 18 | | Livewire | OK | 19 | | Auth Scaffolding | OK | 20 | | Roles & Permissions | OK | 21 | | Sweet Alert JS | OK | 22 | | Laravel Datatables | OK | 23 | | Menu Builder | OK | 24 | | Crud Generator | On Dev | 25 | 26 | ## Installation 27 | ### First clone or download this repository 28 | ```shell 29 | git clone https://github.com/aRhez0903/Laravel-8-Livewire-CoreUI-Datatables.git 30 | ``` 31 | 32 | After clone or download this repository, next step is install all dependency required by laravel and laravel-mix. 33 | 34 | ```shell 35 | # install composer-dependency & npm package & build dev 36 | composer install && npm install && npm run dev 37 | ``` 38 | 39 | ### Next Step 40 | Before we start web server make sure we already generate app key, configure `.env` file and do migration. 41 | 42 | ```shell 43 | # create copy of .env 44 | cp .env.example .env 45 | # create laravel key 46 | php artisan key:generate 47 | # laravel migrate & seed some data 48 | php artisan migrate:fresh --seed 49 | ``` 50 | 51 | ### Default User 52 | Login : super@admin.dev 53 | Pass : password 54 | 55 | ## Contributing 56 | Thank you for considering contributing to this repo! 57 | 58 | ## License 59 | 60 | The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). 61 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 28 | } 29 | 30 | /** 31 | * Register the commands for the application. 32 | * 33 | * @return void 34 | */ 35 | protected function commands() 36 | { 37 | $this->load(__DIR__.'/Commands'); 38 | 39 | require base_path('routes/console.php'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | reportable(function (Throwable $e) { 38 | // 39 | }); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Helpers/Helpers.php: -------------------------------------------------------------------------------- 1 | $value) { 5 | if (is_array($value)) { 6 | $haystack[$key] = array_remove_empty($haystack[$key]); 7 | } 8 | 9 | if (empty($haystack[$key])) { 10 | unset($haystack[$key]); 11 | } 12 | } 13 | 14 | return $haystack; 15 | } 16 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ConfirmPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 42 | } 43 | 44 | /** 45 | * Get a validator for an incoming registration request. 46 | * 47 | * @param array $data 48 | * @return \Illuminate\Contracts\Validation\Validator 49 | */ 50 | protected function validator(array $data) 51 | { 52 | return Validator::make($data, [ 53 | 'name' => ['required', 'string', 'max:255'], 54 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 55 | 'password' => ['required', 'string', 'min:8', 'confirmed'], 56 | ]); 57 | } 58 | 59 | /** 60 | * Create a new user instance after a valid registration. 61 | * 62 | * @param array $data 63 | * @return \App\Models\User 64 | */ 65 | protected function create(array $data) 66 | { 67 | return User::create([ 68 | 'name' => $data['name'], 69 | 'email' => $data['email'], 70 | 'password' => Hash::make($data['password']), 71 | ]); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | $this->middleware('signed')->only('verify'); 40 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 17 | } 18 | 19 | /** 20 | * Show the application dashboard. 21 | * 22 | * @return \Illuminate\Contracts\Support\Renderable 23 | */ 24 | public function index() 25 | { 26 | return view('home'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 33 | \App\Http\Middleware\EncryptCookies::class, 34 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 35 | \Illuminate\Session\Middleware\StartSession::class, 36 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 37 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 38 | \App\Http\Middleware\VerifyCsrfToken::class, 39 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 40 | ], 41 | 42 | 'api' => [ 43 | 'throttle:api', 44 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 45 | ], 46 | ]; 47 | 48 | /** 49 | * The application's route middleware. 50 | * 51 | * These middleware may be assigned to groups or used individually. 52 | * 53 | * @var array 54 | */ 55 | protected $routeMiddleware = [ 56 | 'auth' => \App\Http\Middleware\Authenticate::class, 57 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 58 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 59 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 60 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 61 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 62 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 63 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 64 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 65 | ]; 66 | } 67 | -------------------------------------------------------------------------------- /app/Http/Livewire/Backoff/Permissions.php: -------------------------------------------------------------------------------- 1 | name = ''; 22 | } 23 | 24 | public function store() 25 | { 26 | $bulks = ['index','create','view','edit','delete']; 27 | $validated = $this->validate([ 28 | 'name' => 'required', 29 | ]); 30 | if($this->isBulk){ 31 | foreach($bulks as $bulk){ 32 | $data = ['name' => $this->name.'-'.$bulk]; 33 | Permission::firstOrCreate($data); 34 | } 35 | } else { 36 | Permission::firstOrCreate($validated); 37 | } 38 | $this->resetInputFields(); 39 | $this->dispatchBrowserEvent('swal', [ 40 | 'type' => 'success', 41 | 'message' => "Permission " . $this->name . " Add Successfully!!" 42 | ]); 43 | } 44 | 45 | public function view($id) 46 | { 47 | $permission = Permission::where('id',$id)->first(); 48 | $this->permission_id = $id; 49 | $this->name = $permission->name; 50 | } 51 | 52 | public function edit($id) 53 | { 54 | $this->updateMode = true; 55 | $permission = Permission::where('id',$id)->first(); 56 | $this->Permission_id = $id; 57 | $this->name = $permission->name; 58 | } 59 | 60 | public function cancel() 61 | { 62 | $this->updateMode = false; 63 | $this->resetInputFields(); 64 | } 65 | 66 | public function update() 67 | { 68 | $validated = $this->validate([ 69 | 'name' => 'required', 70 | ]); 71 | 72 | if ($this->Permission_id) { 73 | $permission = Permission::find($this->Permission_id); 74 | $permission->update([ 75 | 'name' => $this->name, 76 | ]); 77 | $this->updateMode = false; 78 | //session()->flash('message', 'Permissions Updated Successfully.'); 79 | $this->resetInputFields(); 80 | } 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /app/Http/Livewire/Backoff/Roles.php: -------------------------------------------------------------------------------- 1 | name = null; 23 | $this->permission = null; 24 | } 25 | 26 | public function store() 27 | { 28 | $validated = $this->validate([ 29 | 'name' => 'required', 30 | ]); 31 | Role::firstOrCreate($validated); 32 | $this->resetInputFields(); 33 | $this->dispatchBrowserEvent('swal', [ 34 | 'type' => 'success', 35 | 'message' => "Role " . $this->name . " Add Successfully!!" 36 | ]); 37 | } 38 | 39 | public function view($id) 40 | { 41 | $this->updateMode = false; 42 | $this->getPermissions($id); 43 | } 44 | 45 | public function edit($id) 46 | { 47 | $this->updateMode = true; 48 | $this->getPermissions($id); 49 | } 50 | 51 | private function getPermissions($id){ 52 | $this->permission = null; 53 | $role = Role::where('id',$id)->first(); 54 | $permissions = Permission::all(); 55 | foreach($permissions as $perms){ 56 | $name = explode('-',$perms->name); 57 | $permission[$name[0]][] = [ 58 | 'crud' => $name[1], 59 | //'stat' => $role->hasPermissionTo($perms->name) 60 | ]; 61 | $this->permission[$perms->name] = $role->hasPermissionTo($perms->name); 62 | } 63 | $this->permissions = $permission; 64 | $this->role_id = $id; 65 | $this->name = $role->name; 66 | } 67 | 68 | public function cancel() 69 | { 70 | $this->updateMode = false; 71 | $this->resetInputFields(); 72 | } 73 | 74 | public function update() 75 | { 76 | $permission = []; 77 | $validatedDate = $this->validate([ 78 | 'name' => 'required', 79 | ]); 80 | 81 | foreach($this->permission as $key => $value){ 82 | if($value)$permission[] = $key; 83 | } 84 | 85 | if ($this->role_id) { 86 | $role = Role::find($this->role_id); 87 | $role->update([ 88 | 'name' => $this->name, 89 | ]); 90 | $role->syncPermissions($permission); 91 | $this->updateMode = false; 92 | $this->dispatchBrowserEvent('toast', [ 93 | 'type' => 'success', 94 | 'message' => "Role #" . $role->name . " Update Successfully!!" 95 | ]); 96 | $this->resetInputFields(); 97 | } 98 | } 99 | 100 | } 101 | -------------------------------------------------------------------------------- /app/Http/Livewire/Backoff/Users.php: -------------------------------------------------------------------------------- 1 | name = ''; 23 | $this->email = ''; 24 | $this->role = []; 25 | } 26 | 27 | public function store() 28 | { 29 | $validated = $this->validate([ 30 | 'name' => 'required', 31 | 'email' => 'required|email|unique:users,email', 32 | ]); 33 | 34 | $validated['password'] = bcrypt('Digitama@123'); 35 | 36 | User::firstOrCreate($validated); 37 | $this->dispatchBrowserEvent('swal', [ 38 | 'type' => 'success', 39 | 'message' => "User " . $this->name . " Add Successfully!!" 40 | ]); 41 | 42 | $this->resetInputFields(); 43 | } 44 | 45 | public function view($id) 46 | { 47 | $this->getRoles($id); 48 | } 49 | 50 | public function edit($id) 51 | { 52 | $this->updateMode = true; 53 | $this->getRoles($id); 54 | } 55 | 56 | private function getRoles($id){ 57 | $this->role = []; 58 | $user = User::where('id',$id)->first(); 59 | $this->user_id = $id; 60 | $this->name = $user->name; 61 | $this->email = $user->email; 62 | 63 | $roles = Role::all(); 64 | foreach($roles as $role){ 65 | $this->role[$role->name] = $user->hasRole($role->name); 66 | } 67 | } 68 | 69 | public function cancel() 70 | { 71 | $this->updateMode = false; 72 | $this->resetInputFields(); 73 | } 74 | 75 | public function update() 76 | { 77 | $validatedDate = $this->validate([ 78 | 'name' => 'required', 79 | 'email' => 'required|email', 80 | ]); 81 | 82 | foreach($this->role as $key => $value){ 83 | if($value)$role[] = $key; 84 | } 85 | 86 | if ($this->user_id) { 87 | $user = User::find($this->user_id); 88 | $user->update([ 89 | 'name' => $this->name, 90 | 'email' => $this->email, 91 | ]); 92 | $user->syncRoles($role); 93 | $this->updateMode = false; 94 | //session()->flash('message', 'Users Updated Successfully.'); 95 | $this->resetInputFields(); 96 | } 97 | 98 | $this->dispatchBrowserEvent('toast', [ 99 | 'type' => 'success', 100 | 'message' => "User #". $user->id." Update Successfully!!" 101 | ]); 102 | } 103 | 104 | } 105 | -------------------------------------------------------------------------------- /app/Http/Livewire/Component/SelectPermission.php: -------------------------------------------------------------------------------- 1 | where('name','like','%'.$searchTerm.'%')->get(); 16 | } 17 | 18 | public function selectedOption($value) 19 | { 20 | return [ 21 | 'value' => $value, 22 | 'description' => $value 23 | ]; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/Http/Livewire/Tables/Menus.php: -------------------------------------------------------------------------------- 1 | filterable(), 25 | Column::name('url')->filterable(), 26 | Column::name('route')->filterable(), 27 | Column::name('can')->label('Permission')->filterable(), 28 | ]; 29 | 30 | if(auth()->user()->hasAnyPermission(['menu-view','menu-edit','menu-delete'])){ 31 | $collum[] = Column::callback(['id'], function ($id) { 32 | return view('backoff.menu.action', ['id' => $id]); 33 | })->label('action'); 34 | } 35 | 36 | return $collum; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Http/Livewire/Tables/Permissions.php: -------------------------------------------------------------------------------- 1 | filterable(), 20 | Column::name('created_at'), 21 | ]; 22 | 23 | if(auth()->user()->hasAnyPermission(['permission-view','permission-edit','permission-delete'])){ 24 | $collum[] = Column::callback(['id'], function ($id) { 25 | return view('backoff.permission.action', ['id' => $id]); 26 | })->label('action'); 27 | } 28 | return $collum; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Http/Livewire/Tables/Roles.php: -------------------------------------------------------------------------------- 1 | filterable(), 26 | Column::name('permissions.name') 27 | ->filterable() 28 | ->label('Permission'), 29 | 30 | ]; 31 | 32 | if(auth()->user()->hasAnyPermission(['role-view','role-edit','role-delete'])){ 33 | $collum[] = Column::callback(['id'], function ($id) { 34 | return view('backoff.role.action', ['id' => $id]); 35 | })->label('action'); 36 | } 37 | return $collum; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Http/Livewire/Tables/Users.php: -------------------------------------------------------------------------------- 1 | filterable(), 26 | Column::name('email')->filterable(), 27 | Column::name('roles.name') 28 | ->filterable() 29 | ->label('Role'), 30 | Column::name('created_at'), 31 | ]; 32 | 33 | if(auth()->user()->hasAnyPermission(['user-view','user-edit','user-delete'])){ 34 | $collum[] = Column::callback(['id'], function ($id) { 35 | return view('backoff.user.action', ['id' => $id]); 36 | })->label('action'); 37 | } 38 | 39 | return $collum; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | check()) { 26 | return redirect(RouteServiceProvider::HOME); 27 | } 28 | } 29 | 30 | return $next($request); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | belongsTo(Menu::class , 'parent_id'); 29 | } 30 | 31 | public function Children() { 32 | return $this->hasMany(Menu::class,'parent_id','id'); 33 | } 34 | 35 | public function submenu() 36 | { 37 | return $this->Children()->with('submenu'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | 'datetime', 44 | ]; 45 | } 46 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | getDatabaseName()) { 31 | if(Schema::hasTable('menus')){ 32 | config(['coreui.menu' => array_remove_empty(\App\Models\Menu::with('submenu')->whereNull('parent_id')->get()->toArray())]); 33 | } 34 | } 35 | } catch (\Exception $e) { 36 | printf("Could not connect to the database. Please check your configuration."); 37 | } 38 | 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | // 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | configureRateLimiting(); 39 | 40 | $this->routes(function () { 41 | Route::prefix('api') 42 | ->middleware('api') 43 | ->namespace($this->namespace) 44 | ->group(base_path('routes/api.php')); 45 | 46 | Route::middleware('web') 47 | ->namespace($this->namespace) 48 | ->group(base_path('routes/web.php')); 49 | }); 50 | } 51 | 52 | /** 53 | * Configure the rate limiters for the application. 54 | * 55 | * @return void 56 | */ 57 | protected function configureRateLimiting() 58 | { 59 | RateLimiter::for('api', function (Request $request) { 60 | return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip()); 61 | }); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /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": "^7.3|^8.0", 9 | "asantibanez/livewire-select": "^2.0", 10 | "fideloper/proxy": "^4.4", 11 | "fruitcake/laravel-cors": "^2.0", 12 | "genealabs/laravel-model-caching": "^0.11.3", 13 | "guzzlehttp/guzzle": "^7.0.1", 14 | "hz-hbo-ict/laravel-core-ui": "^4.0", 15 | "laravel/framework": "^8.40", 16 | "laravel/tinker": "^2.5", 17 | "mediconesystems/livewire-datatables": "^0.4.3", 18 | "spatie/laravel-permission": "^4.2" 19 | }, 20 | "require-dev": { 21 | "barryvdh/laravel-debugbar": "^3.6", 22 | "facade/ignition": "^2.5", 23 | "fakerphp/faker": "^1.9.1", 24 | "laravel/sail": "^1.0.1", 25 | "mockery/mockery": "^1.4.2", 26 | "nunomaduro/collision": "^5.0", 27 | "phpunit/phpunit": "^9.3.3" 28 | }, 29 | "autoload": { 30 | "psr-4": { 31 | "App\\": "app/", 32 | "Database\\Factories\\": "database/factories/", 33 | "Database\\Seeders\\": "database/seeders/" 34 | }, 35 | "files": [ 36 | "app/Helpers/Helpers.php" 37 | ] 38 | }, 39 | "autoload-dev": { 40 | "psr-4": { 41 | "Tests\\": "tests/" 42 | } 43 | }, 44 | "scripts": { 45 | "post-autoload-dump": [ 46 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 47 | "@php artisan package:discover --ansi" 48 | ], 49 | "post-root-package-install": [ 50 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 51 | ], 52 | "post-create-project-cmd": [ 53 | "@php artisan key:generate --ansi" 54 | ] 55 | }, 56 | "extra": { 57 | "laravel": { 58 | "dont-discover": [] 59 | } 60 | }, 61 | "config": { 62 | "optimize-autoloader": true, 63 | "preferred-install": "dist", 64 | "sort-packages": true 65 | }, 66 | "minimum-stability": "dev", 67 | "prefer-stable": true 68 | } 69 | -------------------------------------------------------------------------------- /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 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'useTLS' => true, 41 | ], 42 | ], 43 | 44 | 'ably' => [ 45 | 'driver' => 'ably', 46 | 'key' => env('ABLY_KEY'), 47 | ], 48 | 49 | 'redis' => [ 50 | 'driver' => 'redis', 51 | 'connection' => 'default', 52 | ], 53 | 54 | 'log' => [ 55 | 'driver' => 'log', 56 | ], 57 | 58 | 'null' => [ 59 | 'driver' => 'null', 60 | ], 61 | 62 | ], 63 | 64 | ]; 65 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'database'), 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 a RAM based store such as APC or Memcached, there might 103 | | be other applications utilizing the same cache. So, we'll specify a 104 | | value to get prefixed to all our keys so we can 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/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', '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 setup for each driver as an example of the required options. 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 | ], 37 | 38 | 'public' => [ 39 | 'driver' => 'local', 40 | 'root' => storage_path('app/public'), 41 | 'url' => env('APP_URL').'/storage', 42 | 'visibility' => 'public', 43 | ], 44 | 45 | 's3' => [ 46 | 'driver' => 's3', 47 | 'key' => env('AWS_ACCESS_KEY_ID'), 48 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 49 | 'region' => env('AWS_DEFAULT_REGION'), 50 | 'bucket' => env('AWS_BUCKET'), 51 | 'url' => env('AWS_URL'), 52 | 'endpoint' => env('AWS_ENDPOINT'), 53 | 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 54 | ], 55 | 56 | ], 57 | 58 | /* 59 | |-------------------------------------------------------------------------- 60 | | Symbolic Links 61 | |-------------------------------------------------------------------------- 62 | | 63 | | Here you may configure the symbolic links that will be created when the 64 | | `storage:link` Artisan command is executed. The array keys should be 65 | | the locations of the links and the values should be their targets. 66 | | 67 | */ 68 | 69 | 'links' => [ 70 | public_path('storage') => storage_path('app/public'), 71 | ], 72 | 73 | ]; 74 | -------------------------------------------------------------------------------- /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' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /config/laravel-model-caching.php: -------------------------------------------------------------------------------- 1 | '', 5 | 6 | 'enabled' => env('MODEL_CACHE_ENABLED', false), 7 | 8 | 'use-database-keying' => env('MODEL_CACHE_USE_DATABASE_KEYING', true), 9 | 10 | 'store' => env('MODEL_CACHE_STORE','array'), 11 | ]; 12 | -------------------------------------------------------------------------------- /config/livewire-datatables.php: -------------------------------------------------------------------------------- 1 | 'H:i', 5 | 'default_date_format' => 'd/m/Y', 6 | 'suppress_search_highlights' => true, // When searching, don't highlight matching search results when set to true 7 | ]; 8 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Log Channels 25 | |-------------------------------------------------------------------------- 26 | | 27 | | Here you may configure the log channels for your application. Out of 28 | | the box, Laravel uses the Monolog PHP logging library. This gives 29 | | you a variety of powerful log handlers / formatters to utilize. 30 | | 31 | | Available Drivers: "single", "daily", "slack", "syslog", 32 | | "errorlog", "monolog", 33 | | "custom", "stack" 34 | | 35 | */ 36 | 37 | 'channels' => [ 38 | 'stack' => [ 39 | 'driver' => 'stack', 40 | 'channels' => ['single'], 41 | 'ignore_exceptions' => false, 42 | ], 43 | 44 | 'single' => [ 45 | 'driver' => 'single', 46 | 'path' => storage_path('logs/laravel.log'), 47 | 'level' => env('LOG_LEVEL', 'debug'), 48 | ], 49 | 50 | 'daily' => [ 51 | 'driver' => 'daily', 52 | 'path' => storage_path('logs/laravel.log'), 53 | 'level' => env('LOG_LEVEL', 'debug'), 54 | 'days' => 14, 55 | ], 56 | 57 | 'slack' => [ 58 | 'driver' => 'slack', 59 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 60 | 'username' => 'Laravel Log', 61 | 'emoji' => ':boom:', 62 | 'level' => env('LOG_LEVEL', 'critical'), 63 | ], 64 | 65 | 'papertrail' => [ 66 | 'driver' => 'monolog', 67 | 'level' => env('LOG_LEVEL', 'debug'), 68 | 'handler' => SyslogUdpHandler::class, 69 | 'handler_with' => [ 70 | 'host' => env('PAPERTRAIL_URL'), 71 | 'port' => env('PAPERTRAIL_PORT'), 72 | ], 73 | ], 74 | 75 | 'stderr' => [ 76 | 'driver' => 'monolog', 77 | 'level' => env('LOG_LEVEL', 'debug'), 78 | 'handler' => StreamHandler::class, 79 | 'formatter' => env('LOG_STDERR_FORMATTER'), 80 | 'with' => [ 81 | 'stream' => 'php://stderr', 82 | ], 83 | ], 84 | 85 | 'syslog' => [ 86 | 'driver' => 'syslog', 87 | 'level' => env('LOG_LEVEL', 'debug'), 88 | ], 89 | 90 | 'errorlog' => [ 91 | 'driver' => 'errorlog', 92 | 'level' => env('LOG_LEVEL', 'debug'), 93 | ], 94 | 95 | 'null' => [ 96 | 'driver' => 'monolog', 97 | 'handler' => NullHandler::class, 98 | ], 99 | 100 | 'emergency' => [ 101 | 'path' => storage_path('logs/laravel.log'), 102 | ], 103 | ], 104 | 105 | ]; 106 | -------------------------------------------------------------------------------- /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", 32 | | "postmark", "log", "array" 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 | 'auth_mode' => null, 46 | ], 47 | 48 | 'ses' => [ 49 | 'transport' => 'ses', 50 | ], 51 | 52 | 'mailgun' => [ 53 | 'transport' => 'mailgun', 54 | ], 55 | 56 | 'postmark' => [ 57 | 'transport' => 'postmark', 58 | ], 59 | 60 | 'sendmail' => [ 61 | 'transport' => 'sendmail', 62 | 'path' => '/usr/sbin/sendmail -bs', 63 | ], 64 | 65 | 'log' => [ 66 | 'transport' => 'log', 67 | 'channel' => env('MAIL_LOG_CHANNEL'), 68 | ], 69 | 70 | 'array' => [ 71 | 'transport' => 'array', 72 | ], 73 | ], 74 | 75 | /* 76 | |-------------------------------------------------------------------------- 77 | | Global "From" Address 78 | |-------------------------------------------------------------------------- 79 | | 80 | | You may wish for all e-mails sent by your application to be sent from 81 | | the same address. Here, you may specify a name and address that is 82 | | used globally for all e-mails that are sent by your application. 83 | | 84 | */ 85 | 86 | 'from' => [ 87 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 88 | 'name' => env('MAIL_FROM_NAME', 'Example'), 89 | ], 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Markdown Mail Settings 94 | |-------------------------------------------------------------------------- 95 | | 96 | | If you are using Markdown based email rendering, you may configure your 97 | | theme and component paths here, allowing you to customize the design 98 | | of the emails. Or, you may simply stick with the Laravel defaults! 99 | | 100 | */ 101 | 102 | 'markdown' => [ 103 | 'theme' => 'default', 104 | 105 | 'paths' => [ 106 | resource_path('views/vendor/mail'), 107 | ], 108 | ], 109 | 110 | ]; 111 | -------------------------------------------------------------------------------- /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/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'postmark' => [ 24 | 'token' => env('POSTMARK_TOKEN'), 25 | ], 26 | 27 | 'ses' => [ 28 | 'key' => env('AWS_ACCESS_KEY_ID'), 29 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 30 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 31 | ], 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /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 | $this->faker->name(), 27 | 'email' => $this->faker->unique()->safeEmail(), 28 | 'email_verified_at' => now(), 29 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 30 | 'remember_token' => Str::random(10), 31 | ]; 32 | } 33 | 34 | /** 35 | * Indicate that the model's email address should be unverified. 36 | * 37 | * @return \Illuminate\Database\Eloquent\Factories\Factory 38 | */ 39 | public function unverified() 40 | { 41 | return $this->state(function (array $attributes) { 42 | return [ 43 | 'email_verified_at' => null, 44 | ]; 45 | }); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /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->rememberToken(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('users'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('uuid')->unique(); 19 | $table->text('connection'); 20 | $table->text('queue'); 21 | $table->longText('payload'); 22 | $table->longText('exception'); 23 | $table->timestamp('failed_at')->useCurrent(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('failed_jobs'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2021_06_12_162515_create_cache_table.php: -------------------------------------------------------------------------------- 1 | string('key')->unique(); 18 | $table->mediumText('value'); 19 | $table->integer('expiration'); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('cache'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2021_07_02_023242_create_menus_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->integer('sec_no')->nullable(); 19 | $table->string('text'); 20 | $table->string('route')->nullable(); 21 | $table->string('url')->nullable(); 22 | $table->string('icon')->nullable(); 23 | $table->string('target')->nullable(); 24 | $table->string('badge_text')->nullable(); 25 | $table->string('badge_context')->nullable(); 26 | $table->boolean('badge_pill')->nullable(); 27 | $table->string('fa_family')->nullable(); 28 | $table->boolean('is_section')->nullable(); 29 | $table->boolean('is_route')->nullable(); 30 | $table->string('can')->nullable(); 31 | $table->foreignId('parent_id')->nullable(); 32 | $table->timestamps(); 33 | }); 34 | 35 | Schema::table('menus',function (Blueprint $table){ 36 | $table->foreign('parent_id')->references('id')->on('menus'); 37 | }); 38 | } 39 | 40 | /** 41 | * Reverse the migrations. 42 | * 43 | * @return void 44 | */ 45 | public function down() 46 | { 47 | Schema::dropIfExists('menus'); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "mix", 6 | "watch": "mix watch", 7 | "watch-poll": "mix watch -- --watch-options-poll=1000", 8 | "hot": "mix watch --hot", 9 | "prod": "npm run production", 10 | "production": "mix --production" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.21", 14 | "laravel-mix": "^6.0.6", 15 | "lodash": "^4.17.19", 16 | "postcss": "^8.1.14" 17 | }, 18 | "dependencies": { 19 | "turbolinks": "^5.2.0" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /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/app.css: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/favicon.ico -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class); 50 | 51 | $response = tap($kernel->handle( 52 | $request = Request::capture() 53 | ))->send(); 54 | 55 | $kernel->terminate($request, $response); 56 | -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/app.js": "/js/app.js", 3 | "/css/app.css": "/css/app.css" 4 | } 5 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /public/vendor/coreui/fontawesome/webfonts/fa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/vendor/coreui/fontawesome/webfonts/fa-brands-400.eot -------------------------------------------------------------------------------- /public/vendor/coreui/fontawesome/webfonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/vendor/coreui/fontawesome/webfonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /public/vendor/coreui/fontawesome/webfonts/fa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/vendor/coreui/fontawesome/webfonts/fa-brands-400.woff -------------------------------------------------------------------------------- /public/vendor/coreui/fontawesome/webfonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/vendor/coreui/fontawesome/webfonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /public/vendor/coreui/fontawesome/webfonts/fa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/vendor/coreui/fontawesome/webfonts/fa-regular-400.eot -------------------------------------------------------------------------------- /public/vendor/coreui/fontawesome/webfonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/vendor/coreui/fontawesome/webfonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /public/vendor/coreui/fontawesome/webfonts/fa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/vendor/coreui/fontawesome/webfonts/fa-regular-400.woff -------------------------------------------------------------------------------- /public/vendor/coreui/fontawesome/webfonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/vendor/coreui/fontawesome/webfonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /public/vendor/coreui/fontawesome/webfonts/fa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/vendor/coreui/fontawesome/webfonts/fa-solid-900.eot -------------------------------------------------------------------------------- /public/vendor/coreui/fontawesome/webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/vendor/coreui/fontawesome/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /public/vendor/coreui/fontawesome/webfonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/vendor/coreui/fontawesome/webfonts/fa-solid-900.woff -------------------------------------------------------------------------------- /public/vendor/coreui/fontawesome/webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/public/vendor/coreui/fontawesome/webfonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /public/vendor/coreui/js/coreui-utilities.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * CoreUI v3.0.0-beta.4 (https://coreui.io) 3 | * Copyright 2020 Łukasz Holeczek 4 | * Licensed under MIT (https://coreui.io) 5 | */ 6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).utilities={})}(this,(function(e){"use strict";var t=function(e,t){var r;(void 0===t&&(t=document.body),function(e){return e.match(/^--.*/i)}(e)&&Boolean(document.documentMode)&&document.documentMode>=10)?r=function(){for(var e={},t=document.styleSheets,r="",n=t.length-1;n>-1;n--){for(var s=t[n].cssRules,o=s.length-1;o>-1;o--)if(".ie-custom-properties"===s[o].selectorText){r=s[o].cssText;break}if(r)break}return(r=r.substring(r.lastIndexOf("{")+1,r.lastIndexOf("}"))).split(";").forEach((function(t){if(t){var r=t.split(": ")[0],n=t.split(": ")[1];r&&n&&(e["--"+r.trim()]=n.trim())}})),e}()[e]:r=window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"");return r};e.asideMenuCssClasses=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],e.checkBreakpoint=function(e,t){return t.indexOf(e)>-1},e.deepObjectsMerge=function e(t,r){for(var n=0,s=Object.keys(r);n { 6 | let sidebar = document.getElementById('sidebar'); 7 | 8 | /** 9 | * Sets all classes required for the sidebar to be shown 10 | */ 11 | let showSidebar = function () { 12 | sidebar.classList.add('c-sidebar-lg-show'); 13 | }; 14 | 15 | /** 16 | * Returns true if sidebar should be shown, false if it shouldn't. 17 | * @returns {boolean} 18 | */ 19 | let sidebarShouldBeShown = function () { 20 | let item = window.localStorage.getItem('remember_sidebar'); 21 | return (item === null || item === 'true'); 22 | }; 23 | 24 | if (sidebarShouldBeShown()) { 25 | showSidebar(); 26 | } 27 | 28 | // Whether we need to collapse the sidebar or not, it will happen instantly. 29 | // Smoothness in transitions will be enabled after loading the page 30 | window.setTimeout(() => { 31 | sidebar.classList.remove('c-no-transition'); 32 | }, 150); 33 | 34 | // Add the event listener on `classtoggle` for the sidebar. 35 | // Save whether it has the classes to be collapsed or not. 36 | sidebar.addEventListener('classtoggle', () => { 37 | let collapsed = sidebar.classList.contains('c-sidebar-lg-show') ? 'true' : 'false'; 38 | window.localStorage.setItem('remember_sidebar', collapsed); 39 | }); 40 | })(); -------------------------------------------------------------------------------- /public/vendor/livewire/manifest.json: -------------------------------------------------------------------------------- 1 | {"/livewire.js":"/livewire.js?id=54d078b2ce39327a1702"} -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vheins/Laravel-8-Livewire-CoreUI-Datatables/cab1cd926e8b1a3412a13faffed5b89e1526636c/resources/css/app.css -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | require('./bootstrap'); 2 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | window._ = require('lodash'); 2 | 3 | /** 4 | * We'll load the axios HTTP library which allows us to easily issue requests 5 | * to our Laravel back-end. This library automatically handles sending the 6 | * CSRF token as a header based on the value of the "XSRF" token cookie. 7 | */ 8 | 9 | window.axios = require('axios'); 10 | 11 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 12 | 13 | /** 14 | * Echo exposes an expressive API for subscribing to channels and listening 15 | * for events that are broadcast by Laravel. Echo and event broadcasting 16 | * allows your team to easily build robust real-time web applications. 17 | */ 18 | 19 | // import Echo from 'laravel-echo'; 20 | 21 | // window.Pusher = require('pusher-js'); 22 | 23 | // window.Echo = new Echo({ 24 | // broadcaster: 'pusher', 25 | // key: process.env.MIX_PUSHER_APP_KEY, 26 | // cluster: process.env.MIX_PUSHER_APP_CLUSTER, 27 | // forceTLS: true 28 | // }); 29 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'password' => 'The provided password is incorrect.', 18 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 19 | 20 | ]; 21 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Your password has been reset!', 17 | 'sent' => 'We have emailed your password reset link!', 18 | 'throttled' => 'Please wait before retrying.', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that email address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /resources/lang/vendor/coreui/en/coreui.php: -------------------------------------------------------------------------------- 1 | 'CoreUI Laravel Theme by HZ-HBO-ICT', 5 | 'settings' => 'Settings', 6 | 'full_name' => 'Full name', 7 | 'email' => 'Email', 8 | 'password' => 'Password', 9 | 'retype_password' => 'Retype password', 10 | 'remember_me' => 'Remember Me', 11 | 'register' => 'Register', 12 | 'register_a_new_membership' => 'Register a new membership', 13 | 'i_forgot_my_password' => 'I forgot my password', 14 | 'i_already_have_a_membership' => 'I already have a membership', 15 | 'sign_in' => 'Sign In', 16 | 'log_out' => 'Log Out', 17 | 'toggle_navigation' => 'Toggle navigation', 18 | 'login_message' => 'Sign in to start your session', 19 | 'register_message' => 'Register a new membership', 20 | 'password_reset_message' => 'Reset Password', 21 | 'reset_password' => 'Reset Password', 22 | 'send_password_reset_link' => 'Send Password Reset Link', 23 | 'enter_email_message' => 'Please enter your email address', 24 | 25 | ]; -------------------------------------------------------------------------------- /resources/lang/vendor/coreui/nl/coreui.php: -------------------------------------------------------------------------------- 1 | 'CoreUI Laravel Theme door HZ-HBO-ICT', 6 | 'settings' => 'Instellingen', 7 | 'full_name' => 'Volledige naam', 8 | 'email' => 'E-mailadres', 9 | 'password' => 'Wachtwoord', 10 | 'retype_password' => 'Wachtwoord nogmaals invoeren', 11 | 'remember_me' => 'Ingelogd blijven', 12 | 'register' => 'Registreren', 13 | 'register_a_new_membership' => 'Registreer een nieuw account', 14 | 'i_forgot_my_password' => 'Ik ben mijn wachtwoord vergeten', 15 | 'i_already_have_a_membership' => 'Ik heb al een account', 16 | 'sign_in' => 'Inloggen', 17 | 'log_out' => 'Uitloggen', 18 | 'toggle_navigation' => 'Schakel navigatie', 19 | 'login_message' => 'Log in om je sessie te starten', 20 | 'register_message' => 'Registreer een nieuw account', 21 | 'password_reset_message' => 'Wachtwoord herstellen', 22 | 'reset_password' => 'Wachtwoord herstellen', 23 | 'send_password_reset_link' => 'Stuur email met link voor wachtwoordherstel', 24 | 'enter_email_message' => 'Vul uw e-mailadres in', 25 | 26 | ]; -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {{ __('coreui::coreui.password_reset_message') }} 12 | 13 | 14 |
15 |
16 |
17 |
18 |
19 |

{{ __('coreui::coreui.password_reset_message') }}

20 |

{{ __('coreui::coreui.enter_email_message') }}

21 |
22 | @csrf 23 |
24 |
25 | @ 26 |
27 | 28 | 31 | 32 | @if ($errors->has('email')) 33 | {{ $errors->first('email') }} 35 | @endif 36 |
37 | 38 | 39 | 40 | @if (session('status')) 41 | 44 | @endif 45 |
46 |
47 |
48 |
49 |
50 |
51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {{ __('coreui::coreui.reset_password') }} 12 | 13 | 14 |
15 |
16 |
17 |
18 |
19 |

Reset password

20 |

{{ __('coreui::coreui.reset_password') }}

21 | 22 |
23 | @csrf 24 | 25 | 26 | 27 |
28 |
29 | 30 |
31 | 32 | 35 | 36 | @if ($errors->has('email')) 37 | {{ $errors->first('email') }} 39 | @endif 40 |
41 |
42 |
43 | 44 |
45 | 46 | 49 | 50 | @if ($errors->has('password')) 51 | {{ $errors->first('password') }} 53 | @endif 54 |
55 |
56 |
57 | 58 |
59 | 60 | 62 |
63 | 64 | 65 |
66 |
67 |
68 |
69 |
70 |
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /resources/views/backoff/menu.blade.php: -------------------------------------------------------------------------------- 1 | @extends('coreui::master') 2 | 3 | @section('title', config('coreui.title', __('coreui::coreui.default_title'))) 4 | 5 | @section('body') 6 | 7 | @stop 8 | -------------------------------------------------------------------------------- /resources/views/backoff/menu/action.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | @can('user-view') 4 | 7 | @endcan 8 | 9 | @can('user-edit') 10 | 13 | @endcan 14 | 15 | @can('user-delete') 16 | 19 | @endcan 20 |
21 | -------------------------------------------------------------------------------- /resources/views/backoff/menu/index.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @can('menu-create') 3 | 6 | @endcan 7 | @include('backoff.menu.create') 8 | 9 | 10 |
11 | 12 | @push('js') 13 | 18 | @endpush 19 | -------------------------------------------------------------------------------- /resources/views/backoff/menu/view.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 35 | -------------------------------------------------------------------------------- /resources/views/backoff/permission.blade.php: -------------------------------------------------------------------------------- 1 | @extends('coreui::master') 2 | 3 | @section('title', config('coreui.title', __('coreui::coreui.default_title'))) 4 | 5 | @section('body') 6 | 7 | @stop 8 | -------------------------------------------------------------------------------- /resources/views/backoff/permission/action.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | @can('permission-view') 4 | 7 | @endcan 8 | 9 | @can('permission-edit') 10 | 13 | @endcan 14 | 15 | @can('permission-delete') 16 | 19 | @endcan 20 |
21 | -------------------------------------------------------------------------------- /resources/views/backoff/permission/create.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 31 | -------------------------------------------------------------------------------- /resources/views/backoff/permission/index.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @can('user-create') 3 | 6 | @endcan 7 | @include('backoff.permission.create') 8 | @include('backoff.permission.view') 9 | 10 | 11 |
12 | 13 | @push('js') 14 | 19 | @endpush 20 | -------------------------------------------------------------------------------- /resources/views/backoff/permission/view.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 30 | -------------------------------------------------------------------------------- /resources/views/backoff/role.blade.php: -------------------------------------------------------------------------------- 1 | @extends('coreui::master') 2 | 3 | @section('title', config('coreui.title', __('coreui::coreui.default_title'))) 4 | 5 | @section('body') 6 | 7 | @stop 8 | -------------------------------------------------------------------------------- /resources/views/backoff/role/action.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | @can('role-view') 4 | 7 | @endcan 8 | 9 | @can('role-edit') 10 | 13 | @endcan 14 | 15 | @can('role-delete') 16 | 19 | @endcan 20 |
21 | -------------------------------------------------------------------------------- /resources/views/backoff/role/create.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 27 | -------------------------------------------------------------------------------- /resources/views/backoff/role/index.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @can('role-create') 3 | 6 | @endcan 7 | @include('backoff.role.create') 8 | @include('backoff.role.view') 9 | 10 | 11 |
12 | 13 | @push('js') 14 | 19 | @endpush 20 | 21 | @push('scripts') 22 | 50 | @endpush 51 | -------------------------------------------------------------------------------- /resources/views/backoff/role/permission.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($permissions as $name => $cruds) 13 | 14 | 15 | @foreach($cruds as $crud) 16 | 19 | @endforeach 20 | 21 | @endforeach 22 | 23 |
NameIndexCreateViewEditDelete
{{ ucwords($name) }} 17 | 18 |
24 | @error('name') {{ $message }}@enderror 25 |
26 | 27 | 36 | -------------------------------------------------------------------------------- /resources/views/backoff/role/view.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 31 | -------------------------------------------------------------------------------- /resources/views/backoff/user.blade.php: -------------------------------------------------------------------------------- 1 | @extends('coreui::master') 2 | 3 | @section('title', config('coreui.title', __('coreui::coreui.default_title'))) 4 | 5 | @section('body') 6 | 7 | @stop 8 | -------------------------------------------------------------------------------- /resources/views/backoff/user/action.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | @can('user-view') 4 | 7 | @endcan 8 | 9 | @can('user-edit') 10 | 13 | @endcan 14 | 15 | @can('user-delete') 16 | 19 | @endcan 20 |
21 | -------------------------------------------------------------------------------- /resources/views/backoff/user/create.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 33 | -------------------------------------------------------------------------------- /resources/views/backoff/user/index.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @can('user-create') 3 | 6 | @endcan 7 | @include('backoff.user.create') 8 | @include('backoff.user.view') 9 | 10 | 11 |
12 | 13 | @push('js') 14 | 19 | @endpush 20 | -------------------------------------------------------------------------------- /resources/views/backoff/user/role.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | @foreach($role as $key => $value) 10 | 11 | 12 | 15 | 16 | @endforeach 17 | 18 | 19 |
RoleStatus
{{ ucwords($key) }} 13 | 14 |
20 | @error('name') {{ $message }}@enderror 21 |
22 | 23 | 32 | -------------------------------------------------------------------------------- /resources/views/backoff/user/view.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 36 | -------------------------------------------------------------------------------- /resources/views/errors/401.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Unauthorized')) 4 | @section('code', '401') 5 | @section('message', __('Unauthorized')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/403.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Forbidden')) 4 | @section('code', '403') 5 | @section('message', __($exception->getMessage() ?: 'Forbidden')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/404.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Not Found')) 4 | @section('code', '404') 5 | @section('message', __('Not Found')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/419.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Page Expired')) 4 | @section('code', '419') 5 | @section('message', __('Page Expired')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/429.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Too Many Requests')) 4 | @section('code', '429') 5 | @section('message', __('Too Many Requests')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/500.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Server Error')) 4 | @section('code', '500') 5 | @section('message', __('Server Error')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/503.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Service Unavailable')) 4 | @section('code', '503') 5 | @section('message', __('Service Unavailable')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | @yield('title') 9 | 10 | 11 | 12 | 13 | 14 | 15 | 48 | 49 | 50 |
51 |
52 |
53 | @yield('message') 54 |
55 |
56 |
57 | 58 | 59 | -------------------------------------------------------------------------------- /resources/views/errors/minimal.blade.php: -------------------------------------------------------------------------------- 1 | @auth 2 | @extends(Auth::check() ? 'coreui::master' : 'errors::layout') 3 | @section('title', config('coreui.title', __('coreui::coreui.default_title'))) 4 | 5 | @section('body') 6 |
7 |
8 |
9 | @yield('code') 10 |
11 | 12 |
13 | @yield('message') 14 |
15 |
16 |
17 | @stop 18 | @endauth 19 | 20 | -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('coreui::master') 2 | 3 | @section('title', config('coreui.title', __('coreui::coreui.default_title'))) 4 | 5 | @section('body') 6 |
7 |
8 |
9 |
10 | Woohoo! 11 |
12 |
13 |
You are now logged in!
14 |

Click on the button below to visit the official CoreUI documentation and learn how to build an amazing app.

15 | Take me to CoreUI 16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | Card image cap 24 |
25 |

You can also use headers like this image!

26 | Go somewhere 27 |
28 | 31 |
32 |
33 |
34 |
35 |
Header
36 |
37 |
Alarming title
38 |

You can use a couple of color classes to make your cards more visually appealing too!

39 |
40 |
41 |
42 |
43 |
44 |
Danger card
45 |
46 |

Or make use of some slightly less intense coloring, which can convey your intentions well enough too.

47 |
48 |
49 |
50 |
51 | @stop 52 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/action.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 5 | 6 | 9 | 10 | 13 |
14 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/boolean.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @if($value) 3 | 4 | @else 5 | 6 | @endif 7 |
-------------------------------------------------------------------------------- /resources/views/livewire/datatables/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/delete.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 |
8 |
12 |
13 |
14 | 15 |
22 | 31 |
32 |
33 |

34 | Delete {{ $value }} 35 |

36 |
37 |
38 | Are you sure? 39 |
40 |
41 | 42 | 45 | 46 | 47 | 50 | 51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/editable.blade.php: -------------------------------------------------------------------------------- 1 |
15 | 17 | 18 | 21 | 22 |
-------------------------------------------------------------------------------- /resources/views/livewire/datatables/filters/boolean.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 13 | 14 |
15 | @isset($this->activeBooleanFilters[$index]) 16 | @if($this->activeBooleanFilters[$index] == 1) 17 | 22 | @elseif(strlen($this->activeBooleanFilters[$index]) > 0) 23 | 28 | @endif 29 | @endisset 30 |
31 |
-------------------------------------------------------------------------------- /resources/views/livewire/datatables/filters/date.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 5 |
6 | 9 |
10 |
11 |
12 | 14 |
15 | 18 |
19 |
20 |
-------------------------------------------------------------------------------- /resources/views/livewire/datatables/filters/editable.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 9 |
10 | @foreach($this->activeTextFilters[$index] ?? [] as $key => $value) 11 | 15 | @endforeach 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/filters/number.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 10 |
11 | 14 |
15 |
16 | 17 |
18 | 25 |
26 | 29 |
30 |
31 |
-------------------------------------------------------------------------------- /resources/views/livewire/datatables/filters/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 23 |
24 | 25 |
26 | @foreach($this->activeSelectFilters[$index] ?? [] as $key => $value) 27 | 32 | @endforeach 33 |
34 |
-------------------------------------------------------------------------------- /resources/views/livewire/datatables/filters/string.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 9 |
10 | @foreach($this->activeTextFilters[$index] ?? [] as $key => $value) 11 | 15 | @endforeach 16 |
17 |
18 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/filters/time.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 5 |
6 | 9 |
10 |
11 |
12 | 14 |
15 | 18 |
19 |
20 |
-------------------------------------------------------------------------------- /resources/views/livewire/datatables/header-inline-hide.blade.php: -------------------------------------------------------------------------------- 1 | 15 | 35 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/header-no-hide.blade.php: -------------------------------------------------------------------------------- 1 | @if($column['hidden']) 2 | @else 3 |
4 | 16 |
17 | @endif 18 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/hide-column-multiselect.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 8 |
9 |
10 | @foreach($this->columns as $index => $column) 11 |
12 | 22 | 32 |
33 | @endforeach 34 |
35 |
36 |
37 |
38 | 39 | 53 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/highlight.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} -------------------------------------------------------------------------------- /resources/views/livewire/datatables/icons/arrow-circle-left.blade.php: -------------------------------------------------------------------------------- 1 | merge(['class' => 'h-5 w-5 stroke-current']) }} fill="none" viewBox="0 0 24 24" 2 | stroke="currentColor"> 3 | 5 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/icons/arrow-left.blade.php: -------------------------------------------------------------------------------- 1 | merge(['class' => 'h-5 w-5 stroke-current']) }} fill="none" viewBox="0 0 24 24" stroke="currentColor"> 2 | 3 | 4 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/icons/arrow-right.blade.php: -------------------------------------------------------------------------------- 1 | merge(['class' => 'h-5 w-5 stroke-current']) }} fill="none" viewBox="0 0 24 24" stroke="currentColor"> 2 | 3 | 4 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/icons/check-circle.blade.php: -------------------------------------------------------------------------------- 1 | merge(['class' => 'h-5 w-5 stroke-current']) }} fill="none" viewBox="0 0 24 24" stroke="currentColor"> 2 | 3 | 4 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/icons/chevron-down.blade.php: -------------------------------------------------------------------------------- 1 | merge(['class' => 'h-5 w-5 stroke-current']) }} fill="none" viewBox="0 0 24 24" stroke="currentColor"> 2 | 3 | 4 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/icons/chevron-up.blade.php: -------------------------------------------------------------------------------- 1 | merge(['class' => 'h-5 w-5 stroke-current']) }} fill="none" viewBox="0 0 24 24" stroke="currentColor"> 2 | 3 | 4 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/icons/cog.blade.php: -------------------------------------------------------------------------------- 1 | merge(['class' => 'h-5 w-5 stroke-current']) }} fill="none" viewBox="0 0 24 24" stroke="currentColor"> 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/icons/excel.blade.php: -------------------------------------------------------------------------------- 1 | merge(['class' => 'h-5 w-5 stroke-current']) }} fill="none" viewBox="0 0 384 512"> -------------------------------------------------------------------------------- /resources/views/livewire/datatables/icons/trash.blade.php: -------------------------------------------------------------------------------- 1 | merge(['class' => 'h-5 w-5']) }} fill="none" stroke="currentColor"> 2 | 3 | 4 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/icons/x-circle.blade.php: -------------------------------------------------------------------------------- 1 | merge(['class' => 'h-5 w-5 stroke-current']) }} fill="none" viewBox="0 0 24 24" stroke="currentColor"> 2 | 3 | 4 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/link.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} -------------------------------------------------------------------------------- /resources/views/livewire/datatables/tailwind-pagination.blade.php: -------------------------------------------------------------------------------- 1 | 48 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/tailwind-simple-pagination.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | @if ($paginator->onFirstPage()) 4 |
5 | 6 | Previous 7 |
8 | @else 9 | 13 | @endif 14 | 15 | 16 | 17 | @if ($paginator->hasMorePages()) 18 | 22 | @else 23 |
24 | Next 25 | 26 |
27 | @endif 28 |
29 | -------------------------------------------------------------------------------- /resources/views/livewire/datatables/tooltip.blade.php: -------------------------------------------------------------------------------- 1 | 2 | {{ Str::limit($slot, $length) }} 3 | 4 | -------------------------------------------------------------------------------- /resources/views/vendor/coreui/account.blade.php: -------------------------------------------------------------------------------- 1 | @if (\Illuminate\Support\Facades\Auth::user() !== null) 2 | 28 | @endif 29 | -------------------------------------------------------------------------------- /resources/views/vendor/coreui/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {{ __('coreui::coreui.password_reset_message') }} 12 | 13 | 14 |
15 |
16 |
17 |
18 |
19 |

{{ __('coreui::coreui.password_reset_message') }}

20 |

{{ __('coreui::coreui.enter_email_message') }}

21 |
22 | @csrf 23 |
24 |
25 | 26 |
27 | 28 | 31 | 32 | @if ($errors->has('email')) 33 | {{ $errors->first('email') }} 35 | @endif 36 |
37 | 38 | 39 | 40 | @if (session('status')) 41 | 44 | @endif 45 |
46 |
47 |
48 |
49 |
50 |
51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /resources/views/vendor/coreui/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {{ __('coreui::coreui.reset_password') }} 12 | 13 | 14 |
15 |
16 |
17 |
18 |
19 |

Reset password

20 |

{{ __('coreui::coreui.reset_password') }}

21 | 22 |
23 | @csrf 24 | 25 | 26 | 27 |
28 |
29 | 30 |
31 | 32 | 35 | 36 | @if ($errors->has('email')) 37 | {{ $errors->first('email') }} 39 | @endif 40 |
41 |
42 |
43 | 44 |
45 | 46 | 49 | 50 | @if ($errors->has('password')) 51 | {{ $errors->first('password') }} 53 | @endif 54 |
55 |
56 |
57 | 58 |
59 | 60 | 62 |
63 | 64 | 65 |
66 |
67 |
68 |
69 |
70 |
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /resources/views/vendor/coreui/footer.blade.php: -------------------------------------------------------------------------------- 1 |
2 | © {{ \Carbon\Carbon::now()->year }} HZ University of Applied Sciences 3 |
4 |
5 | Powered by CoreUI, 6 | inspired by Laravel-AdminLTE 8 |
9 | -------------------------------------------------------------------------------- /resources/views/vendor/coreui/menu-item.blade.php: -------------------------------------------------------------------------------- 1 | @if(is_string($item)) 2 |
  • {{ $item }}
  • 3 | @elseif(isset($item['submenu'])) 4 |
  • 5 | 6 | @if(isset($item['icon'])) @endif 7 | {{ __($item['text']) }} 8 | @if(isset($item['badge'])) 9 | {{ $item['badge']['text'] }} 13 | @endif 14 | 15 |
      16 | @each('coreui::menu-item', $item['submenu'], 'item') 17 |
    18 |
  • 19 | @elseif(isset($item['text']) && $item['href'] == "#") 20 |
  • {{ $item['text'] }}
  • 21 | @else 22 |
  • 23 | 27 | @if(isset($item['icon'])) @endif 28 | {{ __($item['text']) }} 29 | @if(isset($item['badge'])) 30 | {{ $item['badge']['text'] }} 34 | @endif 35 | 36 |
  • 37 | @endif 38 | -------------------------------------------------------------------------------- /resources/views/vendor/livewire-select/default.blade.php: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /resources/views/vendor/livewire-select/search-input.blade.php: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /resources/views/vendor/livewire-select/search-no-results.blade.php: -------------------------------------------------------------------------------- 1 |

    2 | {{ $noResultsMessage }} 3 |

    4 | -------------------------------------------------------------------------------- /resources/views/vendor/livewire-select/search-option-item.blade.php: -------------------------------------------------------------------------------- 1 |
    9 | {{ $option['description'] }} 10 |
    11 | -------------------------------------------------------------------------------- /resources/views/vendor/livewire-select/search-options-container.blade.php: -------------------------------------------------------------------------------- 1 |
    6 | @if(!$emptyOptions) 7 | @foreach($options as $option) 8 | @include($searchOptionItem, [ 9 | 'option' => $option, 10 | 'index' => $loop->index, 11 | 'styles' => $styles, 12 | ]) 13 | @endforeach 14 | @elseif ($isSearching) 15 | @include($searchNoResultsView, [ 16 | 'styles' => $styles, 17 | ]) 18 | @endif 19 |
    20 | -------------------------------------------------------------------------------- /resources/views/vendor/livewire-select/search-selected-option.blade.php: -------------------------------------------------------------------------------- 1 | 28 | -------------------------------------------------------------------------------- /resources/views/vendor/livewire-select/search.blade.php: -------------------------------------------------------------------------------- 1 |
    2 | 3 | @include($searchInputView, [ 4 | 'name' => $name, 5 | 'placeholder' => $placeholder, 6 | 'styles' => $styles, 7 | ]) 8 | 9 | @include($searchOptionsContainer, [ 10 | 'options' => $options, 11 | 'emptyOptions' => $emptyOptions, 12 | 'isSearching' => $isSearching, 13 | 'styles' => $styles, 14 | ]) 15 | 16 |
    17 | -------------------------------------------------------------------------------- /resources/views/vendor/livewire-select/select.blade.php: -------------------------------------------------------------------------------- 1 |
    2 | 3 |
    4 | @if(!$searchable && $shouldShow) 5 | @include($defaultView, [ 6 | 'name' => $name, 7 | 'options' => $options, 8 | 'placeholder' => $placeholder, 9 | 'styles' => $styles, 10 | ]) 11 | @endif 12 |
    13 | 14 |
    54 | @if($searchable && $shouldShow) 55 |
    56 | @if(!empty($value)) 57 | @include($searchSelectedOptionView, [ 58 | 'styles' => $styles, 59 | 'selectedOption' => $selectedOption, 60 | 'value' => $value, 61 | 'name' => $name, 62 | ]) 63 | @else 64 | @include($searchView, [ 65 | 'name' => $name, 66 | 'placeholder' => $placeholder, 67 | 'options' => $options, 68 | 'isSearching' => !empty($searchTerm), 69 | 'emptyOptions' => $options->isEmpty(), 70 | 'styles' => $styles, 71 | ]) 72 | @endif 73 |
    74 | @endif 75 |
    76 | 77 |
    78 | -------------------------------------------------------------------------------- /resources/views/vendor/livewire/bootstrap.blade.php: -------------------------------------------------------------------------------- 1 |
    2 | @if ($paginator->hasPages()) 3 | 47 | @endif 48 |
    49 | -------------------------------------------------------------------------------- /resources/views/vendor/livewire/simple-bootstrap.blade.php: -------------------------------------------------------------------------------- 1 |
    2 | @if ($paginator->hasPages()) 3 | 28 | @endif 29 |
    30 | -------------------------------------------------------------------------------- /resources/views/vendor/livewire/simple-tailwind.blade.php: -------------------------------------------------------------------------------- 1 |
    2 | @if ($paginator->hasPages()) 3 | 30 | @endif 31 |
    32 | -------------------------------------------------------------------------------- /resources/views/vendor/sweetalert/alert.blade.php: -------------------------------------------------------------------------------- 1 | @if (config('sweetalert.alwaysLoadJS') === true && config('sweetalert.neverLoadJS') === false ) 2 | 3 | @endif 4 | @if (Session::has('alert.config')) 5 | @if(config('sweetalert.animation.enable')) 6 | 7 | @endif 8 | @if (config('sweetalert.alwaysLoadJS') === false && config('sweetalert.neverLoadJS') === false) 9 | 10 | @endif 11 | 14 | @endif 15 | -------------------------------------------------------------------------------- /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 | name('dashboard'); 23 | 24 | Route::prefix('backoff')->group(function () { 25 | Route::view('/user','backoff.user')->middleware('can:user-index')->name('backoff.user'); 26 | Route::view('/role','backoff.role')->middleware('can:role-index')->name('backoff.role'); 27 | Route::view('/permission','backoff.permission')->middleware('can:permission-index')->name('backoff.permission'); 28 | }); 29 | 30 | Route::prefix('dev')->group(function () { 31 | Route::view('/menu','backoff.menu')->middleware('can:menu-index')->name('dev.menu'); 32 | }); 33 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/debugbar/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | compiled.php 2 | config.php 3 | down 4 | events.scanned.php 5 | maintenance.php 6 | routes.php 7 | routes.scanned.php 8 | schedule-* 9 | services.json 10 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel applications. By default, we are compiling the CSS 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/js/app.js', 'public/js') 15 | .postCss('resources/css/app.css', 'public/css', [ 16 | // 17 | ]); 18 | --------------------------------------------------------------------------------