diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..7735dd1 --- /dev/null +++ b/.htaccess @@ -0,0 +1,18 @@ + + + Options -MultiViews + + + RewriteEngine On + + RewriteCond %{REQUEST_FILENAME} -d [OR] + RewriteCond %{REQUEST_FILENAME} -f + RewriteRule ^ ^$1 [N] + + RewriteCond %{REQUEST_URI} (\.\w+$) [NC] + RewriteRule ^(.*)$ public/$1 + + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ server.php + \ No newline at end of file diff --git a/Modules/Attendance/app/Http/Controllers/.gitkeep b/Modules/Attendance/app/Http/Controllers/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Attendance/app/Http/Controllers/AttendanceController.php b/Modules/Attendance/app/Http/Controllers/AttendanceController.php new file mode 100644 index 0000000..787a2b0 --- /dev/null +++ b/Modules/Attendance/app/Http/Controllers/AttendanceController.php @@ -0,0 +1,67 @@ +registerCommands(); + $this->registerCommandSchedules(); + $this->registerTranslations(); + $this->registerConfig(); + $this->registerViews(); + $this->loadMigrationsFrom(module_path($this->moduleName, 'database/migrations')); + } + + /** + * Register the service provider. + */ + public function register(): void + { + $this->app->register(RouteServiceProvider::class); + } + + /** + * Register commands in the format of Command::class + */ + protected function registerCommands(): void + { + // $this->commands([]); + } + + /** + * Register command Schedules. + */ + protected function registerCommandSchedules(): void + { + // $this->app->booted(function () { + // $schedule = $this->app->make(Schedule::class); + // $schedule->command('inspire')->hourly(); + // }); + } + + /** + * Register translations. + */ + public function registerTranslations(): void + { + $langPath = resource_path('lang/modules/'.$this->moduleNameLower); + + if (is_dir($langPath)) { + $this->loadTranslationsFrom($langPath, $this->moduleNameLower); + $this->loadJsonTranslationsFrom($langPath); + } else { + $this->loadTranslationsFrom(module_path($this->moduleName, 'lang'), $this->moduleNameLower); + $this->loadJsonTranslationsFrom(module_path($this->moduleName, 'lang')); + } + } + + /** + * Register config. + */ + protected function registerConfig(): void + { + $this->publishes([module_path($this->moduleName, 'config/config.php') => config_path($this->moduleNameLower.'.php')], 'config'); + $this->mergeConfigFrom(module_path($this->moduleName, 'config/config.php'), $this->moduleNameLower); + } + + /** + * Register views. + */ + public function registerViews(): void + { + $viewPath = resource_path('views/modules/'.$this->moduleNameLower); + $sourcePath = module_path($this->moduleName, 'resources/views'); + + $this->publishes([$sourcePath => $viewPath], ['views', $this->moduleNameLower.'-module-views']); + + $this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->moduleNameLower); + + $componentNamespace = str_replace('/', '\\', config('modules.namespace').'\\'.$this->moduleName.'\\'.ltrim(config('modules.paths.generator.component-class.path'), config('modules.paths.app_folder',''))); + Blade::componentNamespace($componentNamespace, $this->moduleNameLower); + } + + /** + * Get the services provided by the provider. + */ + public function provides(): array + { + return []; + } + + private function getPublishableViewPaths(): array + { + $paths = []; + foreach (config('view.paths') as $path) { + if (is_dir($path.'/modules/'.$this->moduleNameLower)) { + $paths[] = $path.'/modules/'.$this->moduleNameLower; + } + } + + return $paths; + } +} diff --git a/Modules/Attendance/app/Providers/RouteServiceProvider.php b/Modules/Attendance/app/Providers/RouteServiceProvider.php new file mode 100644 index 0000000..6a6cc87 --- /dev/null +++ b/Modules/Attendance/app/Providers/RouteServiceProvider.php @@ -0,0 +1,49 @@ +mapApiRoutes(); + + $this->mapWebRoutes(); + } + + /** + * Define the "web" routes for the application. + * + * These routes all receive session state, CSRF protection, etc. + */ + protected function mapWebRoutes(): void + { + Route::middleware('web')->group(module_path('Attendance', '/routes/web.php')); + } + + /** + * Define the "api" routes for the application. + * + * These routes are typically stateless. + */ + protected function mapApiRoutes(): void + { + Route::middleware('api')->prefix('api')->name('api.')->group(module_path('Attendance', '/routes/api.php')); + } +} diff --git a/Modules/Attendance/app/Repositories/.gitkeep b/Modules/Attendance/app/Repositories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Attendance/composer.json b/Modules/Attendance/composer.json new file mode 100644 index 0000000..8556d91 --- /dev/null +++ b/Modules/Attendance/composer.json @@ -0,0 +1,30 @@ +{ + "name": "nwidart/attendance", + "description": "", + "authors": [ + { + "name": "Nicolas Widart", + "email": "n.widart@gmail.com" + } + ], + "extra": { + "laravel": { + "providers": [], + "aliases": { + + } + } + }, + "autoload": { + "psr-4": { + "Modules\\Attendance\\": "app/", + "Modules\\Attendance\\Database\\Factories\\": "database/factories/", + "Modules\\Attendance\\Database\\Seeders\\": "database/seeders/" + } + }, + "autoload-dev": { + "psr-4": { + "Modules\\Attendance\\Tests\\": "tests/" + } + } +} diff --git a/Modules/Attendance/config/.gitkeep b/Modules/Attendance/config/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Attendance/config/config.php b/Modules/Attendance/config/config.php new file mode 100644 index 0000000..080df77 --- /dev/null +++ b/Modules/Attendance/config/config.php @@ -0,0 +1,5 @@ + 'Attendance', +]; diff --git a/Modules/Attendance/database/factories/.gitkeep b/Modules/Attendance/database/factories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Attendance/database/migrations/.gitkeep b/Modules/Attendance/database/migrations/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Attendance/database/seeders/.gitkeep b/Modules/Attendance/database/seeders/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Attendance/database/seeders/AttendanceDatabaseSeeder.php b/Modules/Attendance/database/seeders/AttendanceDatabaseSeeder.php new file mode 100644 index 0000000..2f8f306 --- /dev/null +++ b/Modules/Attendance/database/seeders/AttendanceDatabaseSeeder.php @@ -0,0 +1,16 @@ +call([]); + } +} diff --git a/Modules/Attendance/module.json b/Modules/Attendance/module.json new file mode 100644 index 0000000..bfa3a17 --- /dev/null +++ b/Modules/Attendance/module.json @@ -0,0 +1,11 @@ +{ + "name": "Attendance", + "alias": "attendance", + "description": "", + "keywords": [], + "priority": 0, + "providers": [ + "Modules\\Attendance\\Providers\\AttendanceServiceProvider" + ], + "files": [] +} diff --git a/Modules/Attendance/package.json b/Modules/Attendance/package.json new file mode 100644 index 0000000..d6fbfc8 --- /dev/null +++ b/Modules/Attendance/package.json @@ -0,0 +1,15 @@ +{ + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build" + }, + "devDependencies": { + "axios": "^1.1.2", + "laravel-vite-plugin": "^0.7.5", + "sass": "^1.69.5", + "postcss": "^8.3.7", + "vite": "^4.0.0" + } +} diff --git a/Modules/Attendance/resources/assets/.gitkeep b/Modules/Attendance/resources/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Attendance/resources/assets/js/app.js b/Modules/Attendance/resources/assets/js/app.js new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Attendance/resources/assets/sass/app.scss b/Modules/Attendance/resources/assets/sass/app.scss new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Attendance/resources/views/.gitkeep b/Modules/Attendance/resources/views/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Attendance/resources/views/index.blade.php b/Modules/Attendance/resources/views/index.blade.php new file mode 100644 index 0000000..7b1a268 --- /dev/null +++ b/Modules/Attendance/resources/views/index.blade.php @@ -0,0 +1,7 @@ +@extends('attendance::layouts.master') + +@section('content') +

Hello World

+ +

Module: {!! config('attendance.name') !!}

+@endsection diff --git a/Modules/Attendance/resources/views/layouts/master.blade.php b/Modules/Attendance/resources/views/layouts/master.blade.php new file mode 100644 index 0000000..62332e4 --- /dev/null +++ b/Modules/Attendance/resources/views/layouts/master.blade.php @@ -0,0 +1,29 @@ + + + + + + + + + + Attendance Module - {{ config('app.name', 'Laravel') }} + + + + + + + + + + {{-- Vite CSS --}} + {{-- {{ module_vite('build-attendance', 'resources/assets/sass/app.scss') }} --}} + + + + @yield('content') + + {{-- Vite JS --}} + {{-- {{ module_vite('build-attendance', 'resources/assets/js/app.js') }} --}} + diff --git a/Modules/Attendance/routes/.gitkeep b/Modules/Attendance/routes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Attendance/routes/api.php b/Modules/Attendance/routes/api.php new file mode 100644 index 0000000..e349118 --- /dev/null +++ b/Modules/Attendance/routes/api.php @@ -0,0 +1,19 @@ +prefix('v1')->group(function () { + Route::apiResource('attendance', AttendanceController::class)->names('attendance'); +}); diff --git a/Modules/Attendance/routes/web.php b/Modules/Attendance/routes/web.php new file mode 100644 index 0000000..3e0eaad --- /dev/null +++ b/Modules/Attendance/routes/web.php @@ -0,0 +1,19 @@ +names('attendance'); +}); diff --git a/Modules/Attendance/vite.config.js b/Modules/Attendance/vite.config.js new file mode 100644 index 0000000..ae729ea --- /dev/null +++ b/Modules/Attendance/vite.config.js @@ -0,0 +1,26 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; + +export default defineConfig({ + build: { + outDir: '../../public/build-attendance', + emptyOutDir: true, + manifest: true, + }, + plugins: [ + laravel({ + publicDirectory: '../../public', + buildDirectory: 'build-attendance', + input: [ + __dirname + '/resources/assets/sass/app.scss', + __dirname + '/resources/assets/js/app.js' + ], + refresh: true, + }), + ], +}); + +//export const paths = [ +// 'Modules/Attendance/resources/assets/sass/app.scss', +// 'Modules/Attendance/resources/assets/js/app.js', +//]; \ No newline at end of file diff --git a/Modules/Employee/app/Http/Requests/.gitkeep b/Modules/Employee/app/Http/Requests/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Employee/app/Models/Employee.php b/Modules/Employee/app/Models/Employee.php deleted file mode 100644 index 7002cf2..0000000 --- a/Modules/Employee/app/Models/Employee.php +++ /dev/null @@ -1,13 +0,0 @@ -app->bind(EmployeeInterface::class, EmployeeRepository::class); $this->app->register(RouteServiceProvider::class); } diff --git a/Modules/Employee/app/Repositories/EmployeeInterface.php b/Modules/Employee/app/Repositories/EmployeeInterface.php deleted file mode 100644 index 947e916..0000000 --- a/Modules/Employee/app/Repositories/EmployeeInterface.php +++ /dev/null @@ -1,12 +0,0 @@ -update($newDetails); - } - -} diff --git a/Modules/Employee/database/factories/.gitkeep b/Modules/Employee/database/factories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Employee/resources/views/index.blade.php b/Modules/Employee/resources/views/index.blade.php index 8031d3b..d4ef68a 100644 --- a/Modules/Employee/resources/views/index.blade.php +++ b/Modules/Employee/resources/views/index.blade.php @@ -5,21 +5,8 @@
-
-
-
-

Team

+ @include('layouts.partials.breadcrumb', ['title' => 'Employee']) -
- -
- -
-
-
@@ -37,7 +24,7 @@
+ data-bs-target="#addmemberModal"> Create Employee
@@ -53,6 +40,7 @@
+
@@ -112,6 +100,7 @@
+
@@ -172,6 +161,7 @@
+
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
Jennifer Carter
-
-

UI/UX Designer

-
-
-
-
-
-
-
241
-

Projects

-
-
-
204
-

Tasks

-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
ME -
-
-
-
Megan Elmore
-
-

Team Leader & Web Developer

-
-
-
-
-
-
-
201
-

Projects

-
-
-
263
-

Tasks

-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
Alexis Clarke
-
-

Backend Developer

-
-
-
-
-
-
-
132
-

Projects

-
-
-
147
-

Tasks

-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
NC -
-
-
-
Nathan Cole
-
-

Front-End Developer

-
-
-
-
-
-
-
352
-

Projects

-
-
-
376
-

Tasks

-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
Joseph Parker
-
-

Full Stack Developer

-
-
-
-
-
-
-
64
-

Projects

-
-
-
93
-

Tasks

-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
Erica Kernan
-
-

Web Designer

-
-
-
-
-
-
-
345
-

Projects

-
-
-
298
-

Tasks

-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
DP -
-
-
-
Donald Palmer
-
-

Wed Developer

-
-
-
-
-
-
-
97
-

Projects

-
-
-
135
-

Tasks

-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
Jack Gough
-
-

React Js Developer

-
-
-
-
-
-
-
87
-

Projects

-
-
-
121
-

Tasks

-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
MW -
-
-
-
Marie Ward
-
-

Backend Developer

-
-
-
-
-
-
-
145
-

Projects

-
-
-
210
-

Tasks

-
-
-
- -
-
-
-
-
-
- - - - - -
- -
-
- -
-
-
-
-
- -
- -
-
- -
-
- -
-
Nancy Martino
-

Team Leader & HR

-
-
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
-
-
-
-
-
124
-

Projects

-
-
- -
-
-
81
-

Tasks

-
-
- -
- -
-
Personal Details
-
-

Number

-
+(256) 2451 8974
-
-
-

Email

-
nancymartino@email.com
-
-
-

Location

-
Carson City - USA
-
-
-
-
File Manager
-
-
-
- -
-
-
-
Images
-

4469 Files

-
-
- 12 GB -
-
-
-
-
- -
-
-
-
Documents
-

46 Files

-
-
- 3.46 GB -
-
-
-
-
- -
-
-
-
Media
-

124 Files

-
-
- 4.3 GB -
-
-
-
-
- -
-
-
-
Others
-

18 Files

-
-
- 846 MB -
-
-
-
- -
- - View Profile -
-
-
diff --git a/Modules/Leave/resources/views/create.blade.php b/Modules/Leave/resources/views/create.blade.php index 92dd147..b757afb 100644 --- a/Modules/Leave/resources/views/create.blade.php +++ b/Modules/Leave/resources/views/create.blade.php @@ -4,21 +4,7 @@
-
-
-
-

{{ $title }}

- -
- -
- -
-
-
+ @include('layouts.partials.breadcrumb', ['title' => $title])
diff --git a/Modules/Leave/resources/views/index.blade.php b/Modules/Leave/resources/views/index.blade.php index 0aab2c4..d15471d 100644 --- a/Modules/Leave/resources/views/index.blade.php +++ b/Modules/Leave/resources/views/index.blade.php @@ -84,8 +84,9 @@ - +
@@ -98,48 +99,10 @@
- + + - + @include('leave::partials.view') @endsection - -@push('js') - -@endpush diff --git a/Modules/User/app/Http/Controllers/.gitkeep b/Modules/User/app/Http/Controllers/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/app/Http/Controllers/UserController.php b/Modules/User/app/Http/Controllers/UserController.php new file mode 100644 index 0000000..8d68047 --- /dev/null +++ b/Modules/User/app/Http/Controllers/UserController.php @@ -0,0 +1,72 @@ +get(); + $editable = false; + return view('user::index', compact('data', 'editable')); + } + + /** + * Show the form for creating a new resource. + */ + public function create() + { + $data['title'] = "Create User"; + return view('user::create', $data); + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request): RedirectResponse + { + // + } + + /** + * Show the specified resource. + */ + public function show($id) + { + return view('user::show'); + } + + /** + * Show the form for editing the specified resource. + */ + public function edit($id) + { + $data['title'] = "Edit User"; + $data['user'] = User::findOrFail($id); + return view('user::edit', $data); + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, $id): RedirectResponse + { + // + } + + /** + * Remove the specified resource from storage. + */ + public function destroy($id) + { + // + } +} diff --git a/Modules/User/app/Http/Requests/.gitkeep b/Modules/User/app/Http/Requests/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/app/Models/.gitkeep b/Modules/User/app/Models/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/app/Providers/.gitkeep b/Modules/User/app/Providers/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/app/Providers/RouteServiceProvider.php b/Modules/User/app/Providers/RouteServiceProvider.php new file mode 100644 index 0000000..9ae8055 --- /dev/null +++ b/Modules/User/app/Providers/RouteServiceProvider.php @@ -0,0 +1,49 @@ +mapApiRoutes(); + + $this->mapWebRoutes(); + } + + /** + * Define the "web" routes for the application. + * + * These routes all receive session state, CSRF protection, etc. + */ + protected function mapWebRoutes(): void + { + Route::middleware('web')->group(module_path('User', '/routes/web.php')); + } + + /** + * Define the "api" routes for the application. + * + * These routes are typically stateless. + */ + protected function mapApiRoutes(): void + { + Route::middleware('api')->prefix('api')->name('api.')->group(module_path('User', '/routes/api.php')); + } +} diff --git a/Modules/User/app/Providers/UserServiceProvider.php b/Modules/User/app/Providers/UserServiceProvider.php new file mode 100644 index 0000000..a694b09 --- /dev/null +++ b/Modules/User/app/Providers/UserServiceProvider.php @@ -0,0 +1,114 @@ +registerCommands(); + $this->registerCommandSchedules(); + $this->registerTranslations(); + $this->registerConfig(); + $this->registerViews(); + $this->loadMigrationsFrom(module_path($this->moduleName, 'database/migrations')); + } + + /** + * Register the service provider. + */ + public function register(): void + { + $this->app->register(RouteServiceProvider::class); + } + + /** + * Register commands in the format of Command::class + */ + protected function registerCommands(): void + { + // $this->commands([]); + } + + /** + * Register command Schedules. + */ + protected function registerCommandSchedules(): void + { + // $this->app->booted(function () { + // $schedule = $this->app->make(Schedule::class); + // $schedule->command('inspire')->hourly(); + // }); + } + + /** + * Register translations. + */ + public function registerTranslations(): void + { + $langPath = resource_path('lang/modules/'.$this->moduleNameLower); + + if (is_dir($langPath)) { + $this->loadTranslationsFrom($langPath, $this->moduleNameLower); + $this->loadJsonTranslationsFrom($langPath); + } else { + $this->loadTranslationsFrom(module_path($this->moduleName, 'lang'), $this->moduleNameLower); + $this->loadJsonTranslationsFrom(module_path($this->moduleName, 'lang')); + } + } + + /** + * Register config. + */ + protected function registerConfig(): void + { + $this->publishes([module_path($this->moduleName, 'config/config.php') => config_path($this->moduleNameLower.'.php')], 'config'); + $this->mergeConfigFrom(module_path($this->moduleName, 'config/config.php'), $this->moduleNameLower); + } + + /** + * Register views. + */ + public function registerViews(): void + { + $viewPath = resource_path('views/modules/'.$this->moduleNameLower); + $sourcePath = module_path($this->moduleName, 'resources/views'); + + $this->publishes([$sourcePath => $viewPath], ['views', $this->moduleNameLower.'-module-views']); + + $this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->moduleNameLower); + + $componentNamespace = str_replace('/', '\\', config('modules.namespace').'\\'.$this->moduleName.'\\'.ltrim(config('modules.paths.generator.component-class.path'), config('modules.paths.app_folder',''))); + Blade::componentNamespace($componentNamespace, $this->moduleNameLower); + } + + /** + * Get the services provided by the provider. + */ + public function provides(): array + { + return []; + } + + private function getPublishableViewPaths(): array + { + $paths = []; + foreach (config('view.paths') as $path) { + if (is_dir($path.'/modules/'.$this->moduleNameLower)) { + $paths[] = $path.'/modules/'.$this->moduleNameLower; + } + } + + return $paths; + } +} diff --git a/Modules/User/app/Repositories/.gitkeep b/Modules/User/app/Repositories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/composer.json b/Modules/User/composer.json new file mode 100644 index 0000000..6a22c82 --- /dev/null +++ b/Modules/User/composer.json @@ -0,0 +1,30 @@ +{ + "name": "nwidart/user", + "description": "", + "authors": [ + { + "name": "Nicolas Widart", + "email": "n.widart@gmail.com" + } + ], + "extra": { + "laravel": { + "providers": [], + "aliases": { + + } + } + }, + "autoload": { + "psr-4": { + "Modules\\User\\": "app/", + "Modules\\User\\Database\\Factories\\": "database/factories/", + "Modules\\User\\Database\\Seeders\\": "database/seeders/" + } + }, + "autoload-dev": { + "psr-4": { + "Modules\\User\\Tests\\": "tests/" + } + } +} diff --git a/Modules/User/config/.gitkeep b/Modules/User/config/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/config/config.php b/Modules/User/config/config.php new file mode 100644 index 0000000..566de5a --- /dev/null +++ b/Modules/User/config/config.php @@ -0,0 +1,5 @@ + 'User', +]; diff --git a/Modules/User/database/factories/.gitkeep b/Modules/User/database/factories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/database/migrations/.gitkeep b/Modules/User/database/migrations/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/database/seeders/.gitkeep b/Modules/User/database/seeders/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/database/seeders/UserDatabaseSeeder.php b/Modules/User/database/seeders/UserDatabaseSeeder.php new file mode 100644 index 0000000..9983acc --- /dev/null +++ b/Modules/User/database/seeders/UserDatabaseSeeder.php @@ -0,0 +1,16 @@ +call([]); + } +} diff --git a/Modules/User/module.json b/Modules/User/module.json new file mode 100644 index 0000000..09e540d --- /dev/null +++ b/Modules/User/module.json @@ -0,0 +1,11 @@ +{ + "name": "User", + "alias": "user", + "description": "", + "keywords": [], + "priority": 0, + "providers": [ + "Modules\\User\\Providers\\UserServiceProvider" + ], + "files": [] +} diff --git a/Modules/User/package.json b/Modules/User/package.json new file mode 100644 index 0000000..d6fbfc8 --- /dev/null +++ b/Modules/User/package.json @@ -0,0 +1,15 @@ +{ + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build" + }, + "devDependencies": { + "axios": "^1.1.2", + "laravel-vite-plugin": "^0.7.5", + "sass": "^1.69.5", + "postcss": "^8.3.7", + "vite": "^4.0.0" + } +} diff --git a/Modules/User/resources/assets/.gitkeep b/Modules/User/resources/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/resources/assets/js/app.js b/Modules/User/resources/assets/js/app.js new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/resources/assets/sass/app.scss b/Modules/User/resources/assets/sass/app.scss new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/resources/views/.gitkeep b/Modules/User/resources/views/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/resources/views/create.blade.php b/Modules/User/resources/views/create.blade.php new file mode 100644 index 0000000..166da0d --- /dev/null +++ b/Modules/User/resources/views/create.blade.php @@ -0,0 +1,44 @@ +@extends('layouts.app') + +@section('content') +
+
+ +
+
+
+

{{ $title }}

+ +
+ +
+ +
+
+
+ +
+
+
+
+
+ @csrf + @include('user::partials.action', ['btnType' => 'Save']) +
+
+
+
+
+ + +
+ +
+@endsection + +@push('js') + +@endpush diff --git a/Modules/User/resources/views/edit.blade.php b/Modules/User/resources/views/edit.blade.php new file mode 100644 index 0000000..166da0d --- /dev/null +++ b/Modules/User/resources/views/edit.blade.php @@ -0,0 +1,44 @@ +@extends('layouts.app') + +@section('content') +
+
+ +
+
+
+

{{ $title }}

+ +
+ +
+ +
+
+
+ +
+
+
+
+
+ @csrf + @include('user::partials.action', ['btnType' => 'Save']) +
+
+
+
+
+ + +
+ +
+@endsection + +@push('js') + +@endpush diff --git a/Modules/User/resources/views/index.blade.php b/Modules/User/resources/views/index.blade.php new file mode 100644 index 0000000..f279725 --- /dev/null +++ b/Modules/User/resources/views/index.blade.php @@ -0,0 +1,73 @@ +@extends('layouts.app') +@section('content') +
+
+
+ +
+
+
+

{{ label('Users List') }}

+ {{ label('Create New') }} +
+
+
+ + + + + + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + + + + @endforeach + +
{{ label('Sn.') }}{{ label('Name') }}{{ label('Email') }}{{ label('User Name') }}{{ label('Role') }}{{ label('Branch') }}{{ label('Employee') }}{{ label('Action') }} +
{{ $i++ }}{{ $item->name }}{{ $item->email }}{{ $item->username }}{!! getFieldData('tbl_roles', 'title', 'role_id', $item->roles_id) !!} + {!! getFieldData('tbl_branches', 'title', 'branch_id', $item->branches_id) !!} + + {!! getFieldData('tbl_employees', 'title', 'employee_id', $item->employees_id) !!} + +
+ + + + + + + +
+
+
+
+
+
+
+
+
+ @include('user::partials.view') +@endsection diff --git a/Modules/User/resources/views/layouts/master.blade.php b/Modules/User/resources/views/layouts/master.blade.php new file mode 100644 index 0000000..7b82912 --- /dev/null +++ b/Modules/User/resources/views/layouts/master.blade.php @@ -0,0 +1,29 @@ + + + + + + + + + + User Module - {{ config('app.name', 'Laravel') }} + + + + + + + + + + {{-- Vite CSS --}} + {{-- {{ module_vite('build-user', 'resources/assets/sass/app.scss') }} --}} + + + + @yield('content') + + {{-- Vite JS --}} + {{-- {{ module_vite('build-user', 'resources/assets/js/app.js') }} --}} + diff --git a/Modules/User/resources/views/partials/action.blade.php b/Modules/User/resources/views/partials/action.blade.php new file mode 100644 index 0000000..973a5f3 --- /dev/null +++ b/Modules/User/resources/views/partials/action.blade.php @@ -0,0 +1,23 @@ +
+ + +
+ Please enter employee name. +
+
+ +
+ + +
+ + +
+ +
+ +@push('js') + +@endpush diff --git a/Modules/User/resources/views/partials/view.blade.php b/Modules/User/resources/views/partials/view.blade.php new file mode 100644 index 0000000..00dc733 --- /dev/null +++ b/Modules/User/resources/views/partials/view.blade.php @@ -0,0 +1,16 @@ + diff --git a/Modules/User/routes/.gitkeep b/Modules/User/routes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/User/routes/api.php b/Modules/User/routes/api.php new file mode 100644 index 0000000..4b69013 --- /dev/null +++ b/Modules/User/routes/api.php @@ -0,0 +1,19 @@ +prefix('v1')->group(function () { + Route::apiResource('user', UserController::class)->names('user'); +}); diff --git a/Modules/User/routes/web.php b/Modules/User/routes/web.php new file mode 100644 index 0000000..c43ce3b --- /dev/null +++ b/Modules/User/routes/web.php @@ -0,0 +1,19 @@ +names('user'); +}); diff --git a/Modules/User/vite.config.js b/Modules/User/vite.config.js new file mode 100644 index 0000000..3fce796 --- /dev/null +++ b/Modules/User/vite.config.js @@ -0,0 +1,26 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; + +export default defineConfig({ + build: { + outDir: '../../public/build-user', + emptyOutDir: true, + manifest: true, + }, + plugins: [ + laravel({ + publicDirectory: '../../public', + buildDirectory: 'build-user', + input: [ + __dirname + '/resources/assets/sass/app.scss', + __dirname + '/resources/assets/js/app.js' + ], + refresh: true, + }), + ], +}); + +//export const paths = [ +// 'Modules/User/resources/assets/sass/app.scss', +// 'Modules/User/resources/assets/js/app.js', +//]; \ No newline at end of file diff --git a/app/Http/Controllers/CountriesController.php b/app/Http/Controllers/CountriesController.php index 5a66f25..c78a8f2 100644 --- a/app/Http/Controllers/CountriesController.php +++ b/app/Http/Controllers/CountriesController.php @@ -1,218 +1,211 @@ modelService = new CommonModelService($model); - } - public function index(Request $request) - { - createActivityLog(CountriesController::class, 'index', ' Countries index'); - $data = Countries::where('status','<>',-1)->orderBy('display_order')->get(); - - return view("crud.generated.countries.index", compact('data')); - } +use App\Http\Controllers\Controller; +use App\Models\Country\Country; +use App\Service\CommonModelService; +use Exception; +use Illuminate\Http\Request; +use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Validator; +use Log; - public function create(Request $request) - { - createActivityLog(CountriesController::class, 'create', ' Countries create'); - $TableData = Countries::where('status','<>',-1)->orderBy('display_order')->get(); - $editable=false; - return view("crud.generated.countries.edit",compact('TableData','editable')); - } +class CountriesController extends Controller +{ + protected $modelService; + public function __construct(Country $model) + { + $this->modelService = new CommonModelService($model); + } + public function index(Request $request) + { + // createActivityLog(CountriesController::class, 'index', ' Country index'); + $data = Country::where('status', '<>', -1)->orderBy('display_order')->get(); - public function store(Request $request) - { - createActivityLog(CountriesController::class, 'store', ' Countries store'); - $validator = Validator::make($request->all(), [ - //ADD REQUIRED FIELDS FOR VALIDATION - ]); + return view("crud.generated.countries.index", compact('data')); + } - if ($validator->fails()) { - return response()->json([ - 'error' => $validator->errors(), - ],500); - } - $request->request->add(['alias' => slugify($request->title)]); - $request->request->add(['display_order' => getDisplayOrder('tbl_countries')]); - $request->request->add(['created_at' => date("Y-m-d h:i:s")]); - $request->request->add(['updated_at' => date("Y-m-d h:i:s")]); - $requestData=$request->all(); - array_walk_recursive($requestData, function (&$value) { - $value = str_replace(env('APP_URL').'/', '', $value); - }); - array_walk_recursive($requestData, function (&$value) { - $value = str_replace(env('APP_URL'), '', $value); - }); - DB::beginTransaction(); - try { - $operationNumber = getOperationNumber(); - $this->modelService->create($operationNumber, $operationNumber, null, $requestData); - } catch (\Exception $e) { - DB::rollBack(); - Log::info($e->getMessage()); - createErrorLog(CountriesController::class, 'store', $e->getMessage()); - return response()->json(['status' => false, 'message' => $e->getMessage()], 500); - } - DB::commit(); - if ($request->ajax()) { - return response()->json(['status' => true, 'message' => 'The Countries Created Successfully.'], 200); - } - return redirect()->route('countries.index')->with('success','The Countries created Successfully.'); - } - - public function sort(Request $request) - { - $idOrder = $request->input('id_order'); - - foreach ($idOrder as $index => $id) { - $companyArticle = Countries::find($id); - $companyArticle->display_order = $index + 1; - $companyArticle->save(); - } - - return response()->json(['status' => true, 'content' => 'The articles sorted successfully.'], 200); - } - public function updatealias(Request $request) - { - - $articleId = $request->input('articleId'); - $newAlias = $request->input('newAlias'); - $companyArticle = Countries::find($articleId); - if (!$companyArticle) { - return response()->json(['status' => false, 'content' => 'Company article not found.'], 404); - } - $companyArticle->alias = $newAlias; - $companyArticle->save(); - return response()->json(['status' => true, 'content' => 'Alias updated successfully.'], 200); - } - - - + public function create(Request $request) + { + // createActivityLog(CountriesController::class, 'create', ' Country create'); + $TableData = Country::where('status', '<>', -1)->orderBy('display_order')->get(); + $editable = false; + return view("crud.generated.countries.edit", compact('TableData', 'editable')); + } - public function show(Request $request, $id) - { - createActivityLog(CountriesController::class, 'show', ' Countries show'); - $data = Countries::findOrFail($id); - - return view("crud.generated.countries.show", compact('data')); - } + public function store(Request $request) + { + // createActivityLog(CountriesController::class, 'store', ' Country store'); + $validator = Validator::make($request->all(), [ + //ADD REQUIRED FIELDS FOR VALIDATION + ]); - - public function edit(Request $request, $id) - { - createActivityLog(CountriesController::class, 'edit', ' Countries edit'); - $TableData = Countries::where('status','<>',-1)->orderBy('display_order')->get(); - $data = Countries::findOrFail($id); - $editable=true; - return view("crud.generated.countries.edit", compact('data','TableData','editable')); - } - - - public function update(Request $request, $id) - { - createActivityLog(CountriesController::class, 'update', ' Countries update'); - $validator = Validator::make($request->all(), [ - //ADD VALIDATION FOR REQIRED FIELDS - ]); - - if ($validator->fails()) { - return response()->json([ - 'error' => $validator->errors(), - ],500); - } - $requestData=$request->all(); - array_walk_recursive($requestData, function (&$value) { - $value = str_replace(env('APP_URL').'/', '', $value); - }); - array_walk_recursive($requestData, function (&$value) { - $value = str_replace(env('APP_URL'), '', $value); - }); - DB::beginTransaction(); - try { - $OperationNumber = getOperationNumber(); - $this->modelService->update($OperationNumber, $OperationNumber, null, $requestData, $request->input('country_id')); - } catch (Exception $e) { - DB::rollBack(); - Log::info($e->getMessage()); - createErrorLog(CountriesController::class, 'update', $e->getMessage()); - return response()->json(['status' => false, 'message' => $e->getMessage()], 500); - } - DB::commit(); - if ($request->ajax()) { - return response()->json(['status' => true, 'message' => 'The Countries updated Successfully.'], 200); - } - // return redirect()->route('countries.index')->with('success','The Countries updated Successfully.'); - return redirect()->back()->with('success', 'The Countries updated successfully.'); - } - - public function destroy(Request $request,$id) - { - createActivityLog(CountriesController::class, 'destroy', ' Countries destroy'); - DB::beginTransaction(); - try { - $OperationNumber = getOperationNumber(); - $this->modelService->destroy($OperationNumber, $OperationNumber, $id); - } catch (Exception $e) { - DB::rollBack(); - Log::info($e->getMessage()); - createErrorLog(CountriesController::class, 'destroy', $e->getMessage()); - return response()->json(['status' => false, 'message' => $e->getMessage()], 500); - } - DB::commit(); - return response()->json(['status'=>true,'message'=>'The Countries Deleted Successfully.'],200); - } - public function toggle(Request $request,$id) - { - createActivityLog(CountriesController::class, 'destroy', ' Countries destroy'); - $data = Countries::findOrFail($id); - $requestData=['status'=>($data->status==1)?0:1]; - DB::beginTransaction(); - try { - $OperationNumber = getOperationNumber(); - $this->modelService->update($OperationNumber, $OperationNumber, null, $requestData, $id); - } catch (Exception $e) { - DB::rollBack(); - Log::info($e->getMessage()); - createErrorLog(CountriesController::class, 'destroy', $e->getMessage()); - return response()->json(['status' => false, 'message' => $e->getMessage()], 500); - } - DB::commit(); - return response()->json(['status'=>true,'message'=>'The Countries Deleted Successfully.'],200); - } - public function clone(Request $request,$id) - { - createActivityLog(CountriesController::class, 'clone', ' Countries clone'); - $data = Countries::findOrFail($id); - unset($data['updatedby']); - unset($data['createdby']); - $requestData=$data->toArray(); - DB::beginTransaction(); - try { - $OperationNumber = getOperationNumber(); - $this->modelService->create($OperationNumber, $OperationNumber, null, $requestData); - } catch (Exception $e) { - DB::rollBack(); - Log::info($e->getMessage()); - createErrorLog(CountriesController::class, 'clone', $e->getMessage()); - return response()->json(['status' => false, 'message' => $e->getMessage()], 500); - } - DB::commit(); - return response()->json(['status'=>true,'message'=>'The Countries Clonned Successfully.'],200); - } - - - + if ($validator->fails()) { + return response()->json([ + 'error' => $validator->errors(), + ], 500); } - \ No newline at end of file + $request->request->add(['alias' => slugify($request->title)]); + $request->request->add(['display_order' => getDisplayOrder('tbl_countries')]); + $request->request->add(['created_at' => date("Y-m-d h:i:s")]); + $request->request->add(['updated_at' => date("Y-m-d h:i:s")]); + $requestData = $request->all(); + array_walk_recursive($requestData, function (&$value) { + $value = str_replace(env('APP_URL') . '/', '', $value); + }); + array_walk_recursive($requestData, function (&$value) { + $value = str_replace(env('APP_URL'), '', $value); + }); + DB::beginTransaction(); + try { + $operationNumber = getOperationNumber(); + $this->modelService->create($operationNumber, $operationNumber, null, $requestData); + } catch (\Exception $e) { + DB::rollBack(); + Log::info($e->getMessage()); + createErrorLog(CountriesController::class, 'store', $e->getMessage()); + return response()->json(['status' => false, 'message' => $e->getMessage()], 500); + } + DB::commit(); + if ($request->ajax()) { + return response()->json(['status' => true, 'message' => 'The Country Created Successfully.'], 200); + } + return redirect()->route('countries.index')->with('success', 'The Country created Successfully.'); + } + + public function sort(Request $request) + { + $idOrder = $request->input('id_order'); + + foreach ($idOrder as $index => $id) { + $companyArticle = Country::find($id); + $companyArticle->display_order = $index + 1; + $companyArticle->save(); + } + + return response()->json(['status' => true, 'content' => 'The articles sorted successfully.'], 200); + } + public function updatealias(Request $request) + { + + $articleId = $request->input('articleId'); + $newAlias = $request->input('newAlias'); + $companyArticle = Country::find($articleId); + if (!$companyArticle) { + return response()->json(['status' => false, 'content' => 'Company article not found.'], 404); + } + $companyArticle->alias = $newAlias; + $companyArticle->save(); + return response()->json(['status' => true, 'content' => 'Alias updated successfully.'], 200); + } + + public function show(Request $request, $id) + { + // createActivityLog(CountriesController::class, 'show', ' Country show'); + $data = Country::findOrFail($id); + + return view("crud.generated.countries.show", compact('data')); + } + + public function edit(Request $request, $id) + { + // createActivityLog(CountriesController::class, 'edit', ' Country edit'); + $TableData = Country::where('status', '<>', -1)->orderBy('display_order')->get(); + $data = Country::findOrFail($id); + $editable = true; + return view("crud.generated.countries.edit", compact('data', 'TableData', 'editable')); + } + + public function update(Request $request, $id) + { + // createActivityLog(CountriesController::class, 'update', ' Country update'); + $validator = Validator::make($request->all(), [ + //ADD VALIDATION FOR REQIRED FIELDS + ]); + + if ($validator->fails()) { + return response()->json([ + 'error' => $validator->errors(), + ], 500); + } + $requestData = $request->all(); + array_walk_recursive($requestData, function (&$value) { + $value = str_replace(env('APP_URL') . '/', '', $value); + }); + array_walk_recursive($requestData, function (&$value) { + $value = str_replace(env('APP_URL'), '', $value); + }); + DB::beginTransaction(); + try { + $OperationNumber = getOperationNumber(); + $this->modelService->update($OperationNumber, $OperationNumber, null, $requestData, $request->input('country_id')); + } catch (Exception $e) { + DB::rollBack(); + Log::info($e->getMessage()); + createErrorLog(CountriesController::class, 'update', $e->getMessage()); + return response()->json(['status' => false, 'message' => $e->getMessage()], 500); + } + DB::commit(); + if ($request->ajax()) { + return response()->json(['status' => true, 'message' => 'The Country updated Successfully.'], 200); + } + // return redirect()->route('countries.index')->with('success','The Country updated Successfully.'); + return redirect()->back()->with('success', 'The Country updated successfully.'); + } + + public function destroy(Request $request, $id) + { + // createActivityLog(CountriesController::class, 'destroy', ' Country destroy'); + DB::beginTransaction(); + try { + $OperationNumber = getOperationNumber(); + $this->modelService->destroy($OperationNumber, $OperationNumber, $id); + } catch (Exception $e) { + DB::rollBack(); + Log::info($e->getMessage()); + createErrorLog(CountriesController::class, 'destroy', $e->getMessage()); + return response()->json(['status' => false, 'message' => $e->getMessage()], 500); + } + DB::commit(); + return response()->json(['status' => true, 'message' => 'The Country Deleted Successfully.'], 200); + } + public function toggle(Request $request, $id) + { + // createActivityLog(CountriesController::class, 'destroy', ' Country destroy'); + $data = Country::findOrFail($id); + $requestData = ['status' => ($data->status == 1) ? 0 : 1]; + DB::beginTransaction(); + try { + $OperationNumber = getOperationNumber(); + $this->modelService->update($OperationNumber, $OperationNumber, null, $requestData, $id); + } catch (Exception $e) { + DB::rollBack(); + Log::info($e->getMessage()); + createErrorLog(CountriesController::class, 'destroy', $e->getMessage()); + return response()->json(['status' => false, 'message' => $e->getMessage()], 500); + } + DB::commit(); + return response()->json(['status' => true, 'message' => 'The Country Deleted Successfully.'], 200); + } + public function clone (Request $request, $id) + { + // createActivityLog(CountriesController::class, 'clone', ' Country clone'); + $data = Country::findOrFail($id); + unset($data['updatedby']); + unset($data['createdby']); + $requestData = $data->toArray(); + DB::beginTransaction(); + try { + $OperationNumber = getOperationNumber(); + $this->modelService->create($OperationNumber, $OperationNumber, null, $requestData); + } catch (Exception $e) { + DB::rollBack(); + Log::info($e->getMessage()); + createErrorLog(CountriesController::class, 'clone', $e->getMessage()); + return response()->json(['status' => false, 'message' => $e->getMessage()], 500); + } + DB::commit(); + return response()->json(['status' => true, 'message' => 'The Country Clonned Successfully.'], 200); + } + +} diff --git a/app/Http/Controllers/GeneralFormController.php b/app/Http/Controllers/GeneralFormController.php index d70ba25..44b0c51 100644 --- a/app/Http/Controllers/GeneralFormController.php +++ b/app/Http/Controllers/GeneralFormController.php @@ -2,7 +2,6 @@ namespace App\Http\Controllers; -use App\Helpers\BibClass; use App\Http\Controllers\Controller; use Exception; use Illuminate\Http\Request; @@ -41,7 +40,7 @@ class GeneralFormController extends Controller 'icon', 'favicon', 'og_image', - 'no_image' + 'no_image', ); self::$textEditorFields = array('details', 'description', 'text', 'qualification', 'experience', 'required_documents', 'biodata', 'privacy_policy', 'content1', 'content2', 'content3'); self::$textAreaFields = array('copyright', 'remarks', 'seo_keywords', 'seo_description', 'seo_descriptions', 'intro', 'meta_tags', 'google_map', 'og_tags'); @@ -67,10 +66,10 @@ class GeneralFormController extends Controller $databasdeName = DB::connection()->getDatabaseName(); $allTables = []; foreach ($tables as $table) { - + $table_field = "Tables_in_$databasdeName"; // dd($table->$table_field); - if(strpos($table->$table_field,"_logs")){continue;} + if (strpos($table->$table_field, "_logs")) {continue;} $allTables[$table->$table_field] = $table->$table_field; } return view('crud.form.create', compact('allTables')); @@ -79,7 +78,6 @@ class GeneralFormController extends Controller } } - public function store(Request $request) { // dd($request->all()); @@ -111,8 +109,6 @@ class GeneralFormController extends Controller $data['TableRows'] = DB::select("select * from " . $data['TableName']); return view("crud.settings.dictonary", $data); - - case 'curd': $data['tableName'] = $tableName; $data['directoryName'] = $directoryName; @@ -162,7 +158,7 @@ class GeneralFormController extends Controller $string = '_id'; $foreign = []; foreach ($all_columns as $key => $column) { - if (str_contains($column, $string) !== FALSE) { // Yoshi version + if (str_contains($column, $string) !== false) { // Yoshi version $foreign[] = $column; } } @@ -188,8 +184,6 @@ class GeneralFormController extends Controller return array_column(DB::select("SHOW COLUMNS FROM $TableName"), 'Field'); } - - public static function ajaxShowContent($TableName, $directoryName) { $TableName = strtolower($TableName); @@ -206,20 +200,23 @@ class GeneralFormController extends Controller $Table_pk = str_replace("tbl_", "", $TableName) . "_id"; $title = ucwords(str_replace("tbl_", "", $TableName)); $showContent = " - - + + "; foreach ($TableCols as $key => $TableCol): $TableCol = $TableCol->Field; - if ($key == 0 || $TableCol == 'createdOn' || $TableCol == 'createdBy' || $TableCol == 'updatedBy' || $TableCol == 'created_at' || $TableCol == 'updated_at') + if ($key == 0 || $TableCol == 'createdOn' || $TableCol == 'createdBy' || $TableCol == 'updatedBy' || $TableCol == 'created_at' || $TableCol == 'updated_at') { continue; + } + $TableColLabel = ucwords(str_replace("_", " ", $TableCol)); - if ($TableCol == 'status') + if ($TableCol == 'status') { $showContent .= "

Status :     $TableCol == 1 ? 'text-success' : 'text-danger'}}\">{{\$data->$TableCol == 1 ? 'Active' : 'Inactive'}}

"; - else + class=\"{{\$data->$TableCol == 1 ? 'text-success' : 'text-danger'}}\">{{\$data->$TableCol == 1 ? 'Active' : 'Inactive'}}

"; + } else { $showContent .= '

' . $TableColLabel . " :     {{\$data->$TableCol}}

"; + } endforeach; $showContent .= "
@@ -257,12 +254,12 @@ class GeneralFormController extends Controller $Table_pk = $all_columns[0]; $all_foreign_table = self::getForeignTable($all_columns); $all_foreignKey = []; - if ($all_foreign_table) + if ($all_foreign_table) { foreach ($all_foreign_table as $key => $tablename) { $all_foreignKey[$tablename] = self::getTableColumns($tablename); $all_foreignKey[$tablename] = $all_foreignKey[$tablename][0] ?? null; } - + } $editContent = "
$Table_pk]):route('$routeName.store')}}\" id=\"updateCustomForm\" method=\"POST\" >\n @csrf "; @@ -283,7 +280,7 @@ class GeneralFormController extends Controller $editContent .= "{{createCustomSelect('$TableName', 'title', '" . $TableCols[0]->Field . "', \$editable?\$data->$TableCol:'', '" . $TableColLabel . "','$TableCol', 'form-control select2','status<>-1')}}"; $editContent .= "
"; break; - case (strpos($TableCol, "s_id") !== false): //CASE TO HANDLE FOREIGN TABLE + case (strpos($TableCol, "s_id") !== false): //CASE TO HANDLE FOREIGN TABLE $FTNameRaw = str_replace("s_id", "s", $TableCol); $FTName = "tbl_" . str_replace("s_id", "s", $TableCol); $FTCols = DB::select("describe " . $FTName); @@ -325,7 +322,6 @@ class GeneralFormController extends Controller } } - endforeach; $editContent .= '
'; $editContent .= "\n"; @@ -333,8 +329,6 @@ class GeneralFormController extends Controller $editContent .= "
"; $editContent .= " "; - - return $editContent; } //end of ajaxEditContent method public static function editContent($TableName, $directoryName) @@ -352,7 +346,7 @@ class GeneralFormController extends Controller $folder .= str_replace("tbl_", "", $TableName); $Table_pk = str_replace("tbl_", "", $TableName) . "_id"; $title = ucwords(str_replace("tbl_", "", $TableName)); - $editContent = "@extends('backend.template') + $editContent = "@extends('layouts.app') @section('content')
@@ -392,7 +386,7 @@ class GeneralFormController extends Controller $Table_pk = str_replace("tbl_", "", $TableName) . "_id"; $title = ucwords(str_replace("tbl_", "", $TableName)); - $addContent = "@extends('backend.template') + $addContent = "@extends('layouts.app') @section('content')
@@ -418,96 +412,95 @@ class GeneralFormController extends Controller /* public static function ajaxAddContent($TableName, $directoryName) { - $TableName = strtolower($TableName); - $TableCols = DB::select("describe " . $TableName); - $TableRows = DB::select("select * from " . $TableName); - $folder = ''; - $routeName = ''; - if (!empty($directoryName)) { - $folder .= strtolower($directoryName) . '/'; - $routeName .= strtolower($directoryName) . '.'; - } - $routeName .= strtolower(str_replace("tbl_", "", $TableName)); - $folder .= str_replace("tbl_", "", $TableName); - $Table_pk = str_replace("tbl_", "", $TableName) . "_id"; - $title = ucwords(str_replace("tbl_", "", $TableName)); + $TableName = strtolower($TableName); + $TableCols = DB::select("describe " . $TableName); + $TableRows = DB::select("select * from " . $TableName); + $folder = ''; + $routeName = ''; + if (!empty($directoryName)) { + $folder .= strtolower($directoryName) . '/'; + $routeName .= strtolower($directoryName) . '.'; + } + $routeName .= strtolower(str_replace("tbl_", "", $TableName)); + $folder .= str_replace("tbl_", "", $TableName); + $Table_pk = str_replace("tbl_", "", $TableName) . "_id"; + $title = ucwords(str_replace("tbl_", "", $TableName)); - $all_columns = self::getTableColumns($TableName); - $all_foreign_table = self::getForeignTable($all_columns); - $all_foreignKey = []; - if ($all_foreign_table) - foreach ($all_foreign_table as $key => $tablename) { - $all_foreignKey[$tablename] = self::getTableColumns($tablename); - $all_foreignKey[$tablename] = $all_foreignKey[$tablename][0] ?? null; - } + $all_columns = self::getTableColumns($TableName); + $all_foreign_table = self::getForeignTable($all_columns); + $all_foreignKey = []; + if ($all_foreign_table) + foreach ($all_foreign_table as $key => $tablename) { + $all_foreignKey[$tablename] = self::getTableColumns($tablename); + $all_foreignKey[$tablename] = $all_foreignKey[$tablename][0] ?? null; + } - $addContent = " -
$Table_pk]):route('$routeName.store')}}\" id=\"storeCustomForm\" method=\"POST\">\n @csrf \n"; - $addContent .= '
'; - foreach ($TableCols as $key => $TableCol): - $TableCol = $TableCol->Field; - if (!in_array($TableCol, self::$HiddenCols)) { - $TableColLabel = ucwords(str_replace("_", " ", $TableCol)); + $addContent = " + $Table_pk]):route('$routeName.store')}}\" id=\"storeCustomForm\" method=\"POST\">\n @csrf \n"; + $addContent .= '
'; + foreach ($TableCols as $key => $TableCol): + $TableCol = $TableCol->Field; + if (!in_array($TableCol, self::$HiddenCols)) { + $TableColLabel = ucwords(str_replace("_", " ", $TableCol)); - switch ($TableCol) { - case $TableCols[0]->Field: - break; - case (strpos($TableCol, "parent_") !== false): - $addContent .= '
'; - $addContent .= "{{createCustomSelect('$TableName', 'title', '" . $TableCols[0]->Field . "', '', '" . $TableColLabel . "','$TableCol', 'form-control select2','status<>-1')}}"; - $addContent .= "
"; - break; - case (strpos($TableCol, "s_id") !== false): //CASE TO HANDLE FOREIGN TABLE - $FTNameRaw = str_replace("s_id", "s", $TableCol); - $FTName = "tbl_" . str_replace("s_id", "s", $TableCol); - $FTCols = DB::select("describe " . $FTName); - $addContent .= '
'; - //createCustomSelect($tableName, $fieldNameToDisplay, $fieldNameForValue, $defaultValueSelected, $displayTextForLabel, $HTMLElementName, $additionalClass = "form-control", $defaultCondition = null) - $addContent .= "{{createCustomSelect('$FTName', 'title', '" . $FTCols[0]->Field . "', '', '" . $TableColLabel . "','$TableCol', 'form-control select2','status<>-1')}}"; - $addContent .= "
"; - break; - case (in_array($TableCol, self::$textEditorFields)): - $addContent .= '
'; - $addContent .= "{{createTextarea(\"$TableCol\",\"$TableCol ckeditor-classic\",\"$TableColLabel\")}}\n"; - $addContent .= "
"; - break; - case (in_array($TableCol, self::$textAreaFields)): - $addContent .= '
'; - $addContent .= "{{createPlainTextArea(\"$TableCol\",\"$TableCol \",\"$TableColLabel\")}}\n"; - $addContent .= "
"; - break; - case (in_array($TableCol, self::$imageFields)): - $addContent .= '
'; - $addContent .= "{{createImageInput(\"$TableCol\",\"$TableColLabel\")}}\n"; - $addContent .= "
"; - break; - case (in_array($TableCol, self::$dateFields)): - $addContent .= '
'; - $addContent .= "{{createDate(\"$TableCol\",\"$TableColLabel\",'',date('Y-m-d'))}}\n"; //createDate($name, $display = "",$class = "datepicker", $default = "") - $addContent .= "
"; - break; - case (in_array($TableCol, self::$passwordFields)): - $addContent .= '
'; - $addContent .= "{{createPassword(\"$TableCol\",\"$TableColLabel\",'')}}\n"; //createDate($name, $display = "",$class = "datepicker", $default = "") - $addContent .= "
"; - break; - default: - $addContent .= '
'; - $addContent .= "{{createText(\"$TableCol\",\"$TableCol\",\"$TableColLabel\")}}\n"; - $addContent .= "
"; - } - } - endforeach; - $addContent .= '
'; - $addContent .= "\n"; - $addContent .= "\n"; - $addContent .= "
"; - $addContent .= " "; + switch ($TableCol) { + case $TableCols[0]->Field: + break; + case (strpos($TableCol, "parent_") !== false): + $addContent .= '
'; + $addContent .= "{{createCustomSelect('$TableName', 'title', '" . $TableCols[0]->Field . "', '', '" . $TableColLabel . "','$TableCol', 'form-control select2','status<>-1')}}"; + $addContent .= "
"; + break; + case (strpos($TableCol, "s_id") !== false): //CASE TO HANDLE FOREIGN TABLE + $FTNameRaw = str_replace("s_id", "s", $TableCol); + $FTName = "tbl_" . str_replace("s_id", "s", $TableCol); + $FTCols = DB::select("describe " . $FTName); + $addContent .= '
'; + //createCustomSelect($tableName, $fieldNameToDisplay, $fieldNameForValue, $defaultValueSelected, $displayTextForLabel, $HTMLElementName, $additionalClass = "form-control", $defaultCondition = null) + $addContent .= "{{createCustomSelect('$FTName', 'title', '" . $FTCols[0]->Field . "', '', '" . $TableColLabel . "','$TableCol', 'form-control select2','status<>-1')}}"; + $addContent .= "
"; + break; + case (in_array($TableCol, self::$textEditorFields)): + $addContent .= '
'; + $addContent .= "{{createTextarea(\"$TableCol\",\"$TableCol ckeditor-classic\",\"$TableColLabel\")}}\n"; + $addContent .= "
"; + break; + case (in_array($TableCol, self::$textAreaFields)): + $addContent .= '
'; + $addContent .= "{{createPlainTextArea(\"$TableCol\",\"$TableCol \",\"$TableColLabel\")}}\n"; + $addContent .= "
"; + break; + case (in_array($TableCol, self::$imageFields)): + $addContent .= '
'; + $addContent .= "{{createImageInput(\"$TableCol\",\"$TableColLabel\")}}\n"; + $addContent .= "
"; + break; + case (in_array($TableCol, self::$dateFields)): + $addContent .= '
'; + $addContent .= "{{createDate(\"$TableCol\",\"$TableColLabel\",'',date('Y-m-d'))}}\n"; //createDate($name, $display = "",$class = "datepicker", $default = "") + $addContent .= "
"; + break; + case (in_array($TableCol, self::$passwordFields)): + $addContent .= '
'; + $addContent .= "{{createPassword(\"$TableCol\",\"$TableColLabel\",'')}}\n"; //createDate($name, $display = "",$class = "datepicker", $default = "") + $addContent .= "
"; + break; + default: + $addContent .= '
'; + $addContent .= "{{createText(\"$TableCol\",\"$TableCol\",\"$TableColLabel\")}}\n"; + $addContent .= "
"; + } + } + endforeach; + $addContent .= '
'; + $addContent .= "\n"; + $addContent .= "\n"; + $addContent .= "
"; + $addContent .= " "; - - return $addContent; + return $addContent; } //End of ajax addContent - */ + */ public static function showContent($TableName, $directoryName) { $TableName = strtolower($TableName); @@ -524,7 +517,7 @@ class GeneralFormController extends Controller $Table_pk = str_replace("tbl_", "", $TableName) . "_id"; $title = ucwords(str_replace("tbl_", "", $TableName)); - $showContent = "@extends('backend.template') + $showContent = "@extends('layouts.app') @section('content')
@@ -537,7 +530,7 @@ class GeneralFormController extends Controller $showContent .= "
- + @endSection"; $path = base_path() . "/resources/views/crud/generated/$folder/"; @@ -553,7 +546,6 @@ class GeneralFormController extends Controller return $showContent; } - public static function migrationContent($tableName) { $tableName = strtolower($tableName); @@ -607,7 +599,7 @@ class GeneralFormController extends Controller $file = fopen(base_path() . "/database/migrations/" . date('Y_m_d_his') . "_create_" . $tableName . "_table.php", 'w'); fwrite($file, $contentString); fclose($file); - */ + */ return $contentString; } @@ -653,9 +645,6 @@ class GeneralFormController extends Controller fclose($file); } - - - return $RouteContent; } @@ -679,7 +668,7 @@ class GeneralFormController extends Controller $tableFields = DB::select("describe $TableName"); $translated = label('' . $title); $HiddenColumns = array($primaryKey, "remarks", "createdon", "createdby", "updatedby", "seo_title", "seo_descriptions", "seo_keywords", "google_map", "seo_description", "og_tags", "created_at", "updated_at", "description", "details", "text", "display_order", "status"); - $listContent = '@extends(\'backend.template\') + $listContent = '@extends(\'layouts.app\') @section(\'content\')
@@ -694,7 +683,7 @@ class GeneralFormController extends Controller foreach ($columns as $key => $column) { - if (!in_array($column, $HiddenColumns)) + if (!in_array($column, $HiddenColumns)) { switch ($column) { case (strpos($column, "parent_") !== false): $listContent .= '{{ label("Parent") }}' . PHP_EOL; @@ -706,6 +695,7 @@ class GeneralFormController extends Controller default: $listContent .= '{{ label("' . $column . '") }}' . PHP_EOL; } + } } $listContent .= '"> {{ $i++ }}'; foreach ($columns as $key => $column) { @@ -730,7 +720,7 @@ class GeneralFormController extends Controller $listContent .= '{!! getFieldData("' . $TableName . '", "title", "' . $columns[0] . '", $item->' . $column . ') !!}' . PHP_EOL; $listContent .= '' . PHP_EOL; break; - case (strpos($column, "s_id") !== false): //CASE TO HANDLE FOREIGN TABLE + case (strpos($column, "s_id") !== false): //CASE TO HANDLE FOREIGN TABLE $FTNameRaw = str_replace("s_id", "s", $column); $FTName = "tbl_" . str_replace("s_id", "s", $column); $FTCols = DB::select("describe " . $FTName); @@ -774,24 +764,24 @@ class GeneralFormController extends Controller ' . $primaryKey . '])}}" class="dropdown-item toggle-item-btn" onclick="confirmToggle(this.href)"> {{ ($item->status==1)?label(\'Unpublish\'):label(\'Publish\') }} - +
  • ' . $primaryKey . '])}}" class="dropdown-item toggle-item-btn" onclick="confirmClone(this.href)"> {{ label(\'Clone\') }} - +
  • ' . $primaryKey . '])}}" class="dropdown-item remove-item-btn" onclick="confirmDelete(this.href)"> {{ label(\'Delete\') }} - +
  • - - + + @@ -800,12 +790,12 @@ class GeneralFormController extends Controller - +
    @endsection - + @push("css") @@ -841,7 +831,7 @@ $(document).ready(function(e) { articleId: articleId, newAlias: newAlias }; - + $.ajax({ url: ajaxUrl, type: \'POST\', @@ -1014,7 +1004,6 @@ function confirmClone(url) { //ajax complete List - public static function modelContent($tableName, $directoryName) { $tableName = strtolower($tableName); @@ -1025,7 +1014,6 @@ function confirmClone(url) { $modelClass = ucfirst(str_replace("tbl_", "", $tableName)); - $tableFields = DB::select("describe $tableName"); $pkField = $tableFields[0]->Field; @@ -1052,7 +1040,7 @@ function confirmClone(url) { class $modelClass extends Model { use HasFactory, CreatedUpdatedBy; - + protected \$primaryKey = '$pkField'; public \$timestamps = true; protected \$fillable =[ @@ -1098,7 +1086,6 @@ function confirmClone(url) { return $contentString; } - public static function controllerContent($tableName, $directoryName) { $tableName = strtolower($tableName); @@ -1140,7 +1127,7 @@ function confirmClone(url) { { createActivityLog($controllerName::class, 'index', '$directoryName $modelClass index'); \$data = $modelClass::where('status','<>',-1)->orderBy('display_order')->get(); - + return view(\"crud.generated.$viewName.index\", compact('data')); } @@ -1174,7 +1161,7 @@ function confirmClone(url) { }); array_walk_recursive(\$requestData, function (&\$value) { \$value = str_replace(env('APP_URL'), '', \$value); - }); + }); DB::beginTransaction(); try { \$operationNumber = getOperationNumber(); @@ -1191,22 +1178,22 @@ function confirmClone(url) { } return redirect()->route('$viewName.index')->with('success','The $modelClass created Successfully.'); } - + public function sort(Request \$request) { \$idOrder = \$request->input('id_order'); - + foreach (\$idOrder as \$index => \$id) { \$companyArticle = $modelClass::find(\$id); \$companyArticle->display_order = \$index + 1; \$companyArticle->save(); } - + return response()->json(['status' => true, 'content' => 'The articles sorted successfully.'], 200); } public function updatealias(Request \$request) { - + \$articleId = \$request->input('articleId'); \$newAlias = \$request->input('newAlias'); \$companyArticle = $modelClass::find(\$articleId); @@ -1217,15 +1204,15 @@ function confirmClone(url) { \$companyArticle->save(); return response()->json(['status' => true, 'content' => 'Alias updated successfully.'], 200); } - - - + + + public function show(Request \$request, \$id) { createActivityLog($controllerName::class, 'show', '$directoryName $modelClass show'); \$data = $modelClass::findOrFail(\$id); - + return view(\"crud.generated.$viewName.show\", compact('data')); } @@ -1331,9 +1318,9 @@ function confirmClone(url) { DB::commit(); return response()->json(['status'=>true,'message'=>'The $modelClass Clonned Successfully.'],200); } - - + + } "; // $filename = ($controllerPath != "") ? $controllerPath . "/" : ""; diff --git a/app/Http/Controllers/Usercontroller.php b/app/Http/Controllers/Usercontroller.php.bak similarity index 100% rename from app/Http/Controllers/Usercontroller.php rename to app/Http/Controllers/Usercontroller.php.bak diff --git a/app/Models/Country/Country.php b/app/Models/Country/Country.php index fbc6637..474e1f1 100644 --- a/app/Models/Country/Country.php +++ b/app/Models/Country/Country.php @@ -1,6 +1,6 @@ where('status','Active')->get(); + return self::select('id', 'country_name')->where('status', 'Active')->get(); } } diff --git a/app/Service/CommonModelService.php b/app/Service/CommonModelService.php new file mode 100644 index 0000000..b241b80 --- /dev/null +++ b/app/Service/CommonModelService.php @@ -0,0 +1,217 @@ +model = $model; + + } + + + /** + * Create operation + * $operationStartNumber -> It is required first time if it contain multiple tables operation + * $operationEndNumber -> It is required Every time on any operation because on showing block it is required. + * $oldValues -> On store/insert old values will be null + * $newValues => On store/insert operation $new values will be model created object values and stoe in json format. + */ + public function create($operationStartNumber, $operationEndNumber, $oldValues, $newValues) + { + $baseClass = get_class($this->model); + $modelData = $this->model->create($newValues); + $prmimayKeyFieldName = $modelData->getKeyName(); + $ModelID = $modelData->$prmimayKeyFieldName; + createOperationLog($operationStartNumber, $operationEndNumber, $baseClass, $ModelID, 'create', $oldValues, $modelData); + return $modelData; + } + + /** + * update operation + * $operationStartNumber -> It is required first time if it contain multiple tables operation + * $operationEndNumber -> It is required Every time on any operation because on showing block it is required. + * $oldValues -> On store/insert old values case, is required only if it is updated on direct table on like users_roles table case other wise We get here + * null but find from model Id. It will be also stored in json format. + * $newValues => On store/insert operation $new values will be model created object values and stoe in json format. + */ + public function update($operationStartNumber, $operationEndNumber, $oldValues, $newValues, $ModelID) + { + $baseClass = get_class($this->model); + $this->model = $this->model->find($ModelID); + $oldValues = !empty($oldValues) ? $oldValues : $this->model->toArray(); + $this->model->update($newValues); + createOperationLog($operationStartNumber, $operationEndNumber, $baseClass, $ModelID, 'update', $oldValues, $this->model->getChanges()); + return $this->model; + } + + + /** + * Create operation + * $operationStartNumber -> It is required first time if it contain multiple tables operation + * $operationEndNumber -> It is required Every time on any operation because on showing block it is required. + * $oldValues -> On store/insert old values will be null + * $newValues => On store/insert operation $new values will be model created object values and stoe in json format. + */ + public function destroy($operationStartNumber, $operationEndNumber, $ModelID) + { + $baseClass = get_class($this->model); + $this->model = $this->model->find($ModelID); + $oldValues = ['status' => $this->model->status]; + $this->model->update(['status' => -1]); + createOperationLog($operationStartNumber, $operationEndNumber, $baseClass, $ModelID, 'delete', $oldValues, ['status' => -1]); + return $this->model; + } + /** + * Paginate all User + * + * @param array $filter + * @return Collection + */ + public function paginate(array $filter = []) + { + $filter['limit'] = 25; + + return $this->model->orderBy('id', 'DESC')->whereIsDeleted('no')->paginate($filter['limit']); + } + + /** + * Get all User + * + * @return Collection + */ + public function all() + { + return $this->model->whereIsDeleted('no')->all(); + } + + /** + * Get all users with supervisor type + * + * @return Collection + */ + + + public function find($userId) + { + try { + return $this->model->whereIsDeleted('no')->find($userId); + } catch (Exception $e) { + return null; + } + } + + + // public function update($userId, array $data) + // { + // try { + + // $data['visibility'] = (isset($data['visibility']) ? $data['visibility'] : '') == 'on' ? 'visible' : 'invisible'; + // $data['status'] = (isset($data['status']) ? $data['status'] : '') == 'on' ? 'active' : 'in_active'; + // $data['availability'] = (isset($data['availability']) ? $data['availability'] : '') == 'on' ? 'available' : 'not_available'; + // $data['has_subuser'] = (isset($data['has_subuser']) ? $data['has_subuser'] : '') == 'on' ? 'yes' : 'no'; + // $data['last_updated_by'] = Auth::user()->id; + // $user = $this->model->find($userId); + + // $user = $user->update($data); + // $this->logger->info(' created successfully', $data); + + // return $user; + // } catch (Exception $e) { + // $this->logger->error($e->getMessage()); + // return false; + // } + // } + + /** + * Delete a User + * + * @param Id + * @return bool + */ + public function delete($userId) + { + try { + $data['last_deleted_by'] = Auth::user()->id; + $data['deleted_at'] = Carbon::now(); + $user = $this->model->find($userId); + $data['is_deleted'] = 'yes'; + return $user = $user->update($data); + dd($user); + + } catch (Exception $e) { + return false; + } + } + + public function getUserRoles($id) + { + try { + $user = User::with('roles')->find($id); + $roles = $user->roles; + return $roles; + } catch (Exception $e) { + return false; + } + } + + + /** + * write brief description + * @param $name + * @return mixed + */ + public function getByName($name) + { + return $this->model->whereIsDeleted('no')->whereName($name); + } + + public function getBySlug($id) + { + return $this->model->whereIsDeleted('no')->whereId($id)->first(); + } + + + function uploadFile($file) + { + if (!empty($file)) { + $this->uploadPath = 'uploads/user'; + return $fileName = $this->uploadFromAjax($file); + } + } + + public function __deleteImages($subCat) + { + try { + if (is_file($subCat->image_path)) + unlink($subCat->image_path); + + if (is_file($subCat->thumbnail_path)) + unlink($subCat->thumbnail_path); + } catch (\Exception $e) { + + } + } + + public function updateImage($userId, array $data) + { + try { + $user = $this->model->find($userId); + $user = $user->update($data); + + return $user; + } catch (Exception $e) { + //$this->logger->error($e->getMessage()); + return false; + } + } +} \ No newline at end of file diff --git a/composer.lock b/composer.lock index a23a23e..06c4f77 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "18585a0d9833f75d740f42dfc2e2db87", + "content-hash": "8382101c555e42e8fbbf188fa8b7b1c6", "packages": [ { "name": "barryvdh/laravel-debugbar", @@ -8865,5 +8865,5 @@ "php": "^8.1" }, "platform-dev": [], - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" } diff --git a/modules_statuses.json b/modules_statuses.json index da4a80a..a4603f6 100644 --- a/modules_statuses.json +++ b/modules_statuses.json @@ -1,5 +1,6 @@ { "Leave": true, + "Employee": true, "Attendance": true, - "Employee": true + "User": true } \ No newline at end of file diff --git a/public/assets/js/custom.js b/public/assets/js/custom.js index 44a7427..bf466f0 100644 --- a/public/assets/js/custom.js +++ b/public/assets/js/custom.js @@ -1,78 +1,114 @@ + +$('body').on('click', '.remove-item-btn', function (e) { + e.preventDefault(); + let url = $(this).data('href'); + let id = $(this).data('id'); + + Swal.fire({ + title: 'Are you sure?', + text: "You won't be able to revert this!", + icon: 'warning', + showCancelButton: true, + confirmButtonColor: '#3085d6', + cancelButtonColor: '#d33', + confirmButtonText: 'Yes, delete it!' + }).then((result) => { + if (result.isConfirmed) { + $.ajax({ + url: url, + type: 'DELETE', + headers: { + 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') + }, + data: { + id: id + }, + success: function (response) { + location.reload(); + }, + error: function (xhr, status, error) { + console.error(xhr.responseText); + } + }); + } + }); +}); + //initialize ckeditor document.querySelectorAll('.ckeditor-classic').forEach(editor => { - console.log(editor); - ClassicEditor + console.log(editor); + ClassicEditor .create(editor) .catch(error => { - console.error(error); + console.error(error); }); - }); +}); $('.date-picker').nepaliDatePicker({ - // dateFormat: '%D, %M %d, %y', - dateFormat: '%y-%m-%d', - closeOnDateSelect: true, - }); + // dateFormat: '%D, %M %d, %y', + dateFormat: '%y-%m-%d', + closeOnDateSelect: true, +}); - // initialize filepond - const inputElement = document.querySelector('.filepond'); - console.log(inputElement); - FilePond.registerPlugin(FilePondPluginImagePreview); - const pond = FilePond.create(inputElement); - FilePond.setOptions({ - server:{ - process:"/filepond/upload", - revert: '/delete', - headers:{ - 'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content'), - }, - } - }); +// initialize filepond +const inputElement = document.querySelector('.filepond'); +console.log(inputElement); +FilePond.registerPlugin(FilePondPluginImagePreview); +const pond = FilePond.create(inputElement); +FilePond.setOptions({ + server: { + process: "/filepond/upload", + revert: '/delete', + headers: { + 'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content'), + }, + } +}); //ajax form submit document.addEventListener('DOMContentLoaded', function () { - let form = document.getElementById('storeUpdateForm'); + let form = document.getElementById('storeUpdateForm'); - let action = form.getAttribute('action'); + let action = form.getAttribute('action'); - let method = form.getAttribute('method'); + let method = form.getAttribute('method'); - toastr.options = { - 'closeButton': true, - 'debug': false, - 'newestOnTop': true, - 'progressBar': true, - 'positionClass': 'toast-top-right', - 'preventDuplicates': true, - 'showDuration': '1000', - 'hideDuration': '1000', - 'timeOut': '5000', - 'extendedTimeOut': '1000', - 'showEasing': 'swing', - 'hideEasing': 'linear', - 'showMethod': 'fadeIn', - 'hideMethod': 'fadeOut', - } + toastr.options = { + 'closeButton': true, + 'debug': false, + 'newestOnTop': true, + 'progressBar': true, + 'positionClass': 'toast-top-right', + 'preventDuplicates': true, + 'showDuration': '1000', + 'hideDuration': '1000', + 'timeOut': '5000', + 'extendedTimeOut': '1000', + 'showEasing': 'swing', + 'hideEasing': 'linear', + 'showMethod': 'fadeIn', + 'hideMethod': 'fadeOut', + } - form.addEventListener('submit', function (e) { - e.preventDefault(); + form.addEventListener('submit', function (e) { + e.preventDefault(); - let formData = new FormData(form); + let formData = new FormData(form); - fetch(action, { - method: method, - body: formData, - headers: { - 'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content') - } - }) + fetch(action, { + method: method, + body: formData, + headers: { + 'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content') + } + }) .then(response => { if (response.ok) { - response.json().then(data=>{ - toastr['success'](data.message); - }) + response.json().then(data => { + toastr['success'](data.message); + }) } else { response.json().then(data => { if (data.errors) { @@ -83,15 +119,16 @@ document.addEventListener('DOMContentLoaded', function () { } } }) - .catch(error => { - console.error('Error parsing JSON:', error); - }); + .catch(error => { + console.error('Error parsing JSON:', error); + }); } }) .catch(error => { console.error('Error during fetch:', error); }); - }); + }); }); + diff --git a/public/assets/js/pages/datatables.init.js b/public/assets/js/pages/datatables.init.js index ed7257a..b217fef 100644 --- a/public/assets/js/pages/datatables.init.js +++ b/public/assets/js/pages/datatables.init.js @@ -1 +1 @@ -function initializeTables(){new DataTable("#example"),new DataTable("#scroll-vertical",{scrollY:"210px",scrollCollapse:!0,paging:!1}),new DataTable("#scroll-horizontal",{scrollX:!0}),new DataTable("#alternative-pagination",{pagingType:"full_numbers"}),new DataTable("#fixed-header",{fixedHeader:!0}),new DataTable("#model-datatables",{responsive:{details:{display:$.fn.dataTable.Responsive.display.modal({header:function(a){a=a.data();return"Details for "+a[0]+" "+a[1]}}),renderer:$.fn.dataTable.Responsive.renderer.tableAll({tableClass:"table"})}}}),new DataTable("#buttons-datatables",{dom:"Bfrtip",buttons:["copy","csv","excel","print","pdf"]}),new DataTable("#ajax-datatables",{ajax:"assets/json/datatable.json"});var a=$("#add-rows").DataTable(),e=1;$("#addRow").on("click",function(){a.row.add([e+".1",e+".2",e+".3",e+".4",e+".5",e+".6",e+".7",e+".8",e+".9",e+".10",e+".11",e+".12"]).draw(!1),e++}),$("#addRow").trigger("click")}document.addEventListener("DOMContentLoaded",function(){initializeTables()}); \ No newline at end of file +function initializeTables() { new DataTable("#example"), new DataTable("#scroll-vertical", { scrollY: "210px", scrollCollapse: !0, paging: !1 }), new DataTable("#scroll-horizontal", { scrollX: !0 }), new DataTable("#alternative-pagination", { pagingType: "full_numbers" }), new DataTable("#fixed-header", { fixedHeader: !0 }), new DataTable("#model-datatables", { responsive: { details: { display: $.fn.dataTable.Responsive.display.modal({ header: function (a) { a = a.data(); return "Details for " + a[0] + " " + a[1] } }), renderer: $.fn.dataTable.Responsive.renderer.tableAll({ tableClass: "table" }) } } }), new DataTable("#buttons-datatables", { dom: "Bfrtip", buttons: ["copy", "csv", "excel", "print", "pdf"] }), new DataTable("#ajax-datatables", { ajax: "assets/json/datatable.json" }); var a = $("#add-rows").DataTable(), e = 1; $("#addRow").on("click", function () { a.row.add([e + ".1", e + ".2", e + ".3", e + ".4", e + ".5", e + ".6", e + ".7", e + ".8", e + ".9", e + ".10", e + ".11", e + ".12"]).draw(!1), e++ }), $("#addRow").trigger("click") } document.addEventListener("DOMContentLoaded", function () { initializeTables() }); \ No newline at end of file diff --git a/resources/views/crud/form/create.blade.php b/resources/views/crud/form/create.blade.php index c370648..9e41dae 100644 --- a/resources/views/crud/form/create.blade.php +++ b/resources/views/crud/form/create.blade.php @@ -1,39 +1,39 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    - @if ($errors->any()) -
    -
      - @foreach ($errors->all() as $error) -
    • {{ $error }}
    • - @endforeach -
    -
    - @endif -
    -
    - {{Label('Operation')}} - - {{ customCreateSelect('type', 'type', '', '', ['ajax-curd' => 'Ajax CURD']) }} - - {{Label('Table Name')}} - - {{ customCreateSelect('tableName', 'tableName', 'form-control custom-select2', '', $allTables) }} - - {{Label('Write To')}} - - {{ createText('directoryName', 'directoryName', 'Directory Name') }} - -
    -
    +
    +
    + @if ($errors->any()) +
    +
      + @foreach ($errors->all() as $error) +
    • {{ $error }}
    • + @endforeach +
    + @endif +
    +
    + {{ Label('Operation') }} + + {{ customCreateSelect('type', 'type', '', '', ['ajax-curd' => 'Ajax CURD']) }} + + {{ Label('Table Name') }} + + {{ customCreateSelect('tableName', 'tableName', 'form-control custom-select2', '', $allTables) }} + + {{ Label('Write To') }} + + {{ createText('directoryName', 'directoryName', 'Directory Name') }} + +
    +
    +
    @endsection @push('js') - + @endpush diff --git a/resources/views/crud/form/tables.blade.php b/resources/views/crud/form/tables.blade.php index 91690cd..7df0cfe 100644 --- a/resources/views/crud/form/tables.blade.php +++ b/resources/views/crud/form/tables.blade.php @@ -1,65 +1,67 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    +
    -
    -
    -
    -
    -
    -

    Tables in Database

    -
    -
    -
    -
    -
    -
    - - - @foreach ($allTables as $Table) - -
    -

    -
    -
    - - - - - - - - - - - @foreach($Table->tablecolumns as $column) - - - - - - - @endforeach - -
    S.N.{{__('lang.Column')}}{{label("Datatype")}}
    {{$sn}} {{$column->COLUMN_NAME}} {{$column->COLUMN_TYPE}}
    -
    -
    -
    - @endforeach - -
    -
    -
    +
    +
    +
    +
    +
    +

    Tables in Database

    +
    -
    -
    -
    +
    +
    +
    +
    + + @foreach ($allTables as $Table) + +
    +

    +
    +
    + + + + + + + + + + + @foreach ($Table->tablecolumns as $column) + + + + + + + @endforeach + +
    S.N.{{ __('lang.Column') }}{{ label('Datatype') }}
    {{ $sn }} {{ $column->COLUMN_NAME }} {{ $column->COLUMN_TYPE }}
    +
    +
    +
    + @endforeach + +
    +
    +
    +
    +
    +
    +
    @endsection @push('js') - + @endpush diff --git a/resources/views/crud/generated/branches/create.blade.php b/resources/views/crud/generated/branches/create.blade.php index a22872e..dca3b2e 100644 --- a/resources/views/crud/generated/branches/create.blade.php +++ b/resources/views/crud/generated/branches/create.blade.php @@ -1,26 +1,48 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Branche') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Branche') }}

    + -
    -
    -
    - @csrf -
    {{createCustomSelect('tbl_companies', 'title', 'company_id', $editable?$data->companies_id:'', 'Companies Id','companies_id', 'form-control select2','status<>-1')}}
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createTextarea("description","description ckeditor-classic","Description",$editable?$data->description:'')}} -
    {{createText("email","email","Email",'',$editable?$data->email:'')}} -
    {{createText("telephone","telephone","Telephone",'',$editable?$data->telephone:'')}} -
    {{createText("phone1","phone1","Phone1",'',$editable?$data->phone1:'')}} -
    {{createText("phone2","phone2","Phone2",'',$editable?$data->phone2:'')}} -
    {{createText("address","address","Address",'',$editable?$data->address:'')}} -
    {{createText("company_reg","company_reg","Company Reg",'',$editable?$data->company_reg:'')}} -
    {{createText("company_pan","company_pan","Company Pan",'',$editable?$data->company_pan:'')}} -
    {{createImageInput("logo","Logo",'',$editable?$data->logo:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    + {{ createCustomSelect('tbl_companies', 'title', 'company_id', $editable ? $data->companies_id : '', 'Companies Id', 'companies_id', 'form-control select2', 'status<>-1') }} +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    + {{ createTextarea('description', 'description ckeditor-classic', 'Description', $editable ? $data->description : '') }} +
    +
    {{ createText('email', 'email', 'Email', '', $editable ? $data->email : '') }} +
    +
    {{ createText('telephone', 'telephone', 'Telephone', '', $editable ? $data->telephone : '') }} +
    +
    {{ createText('phone1', 'phone1', 'Phone1', '', $editable ? $data->phone1 : '') }} +
    +
    {{ createText('phone2', 'phone2', 'Phone2', '', $editable ? $data->phone2 : '') }} +
    +
    {{ createText('address', 'address', 'Address', '', $editable ? $data->address : '') }} +
    +
    + {{ createText('company_reg', 'company_reg', 'Company Reg', '', $editable ? $data->company_reg : '') }} +
    +
    + {{ createText('company_pan', 'company_pan', 'Company Pan', '', $editable ? $data->company_pan : '') }} +
    +
    {{ createImageInput('logo', 'Logo', '', $editable ? $data->logo : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/branches/edit.blade.php b/resources/views/crud/generated/branches/edit.blade.php index a821456..50af14c 100644 --- a/resources/views/crud/generated/branches/edit.blade.php +++ b/resources/views/crud/generated/branches/edit.blade.php @@ -1,26 +1,48 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Edit Branches') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Edit Branches') }}

    + -
    -
    -
    - @csrf -
    {{createCustomSelect('tbl_companies', 'title', 'company_id', $editable?$data->companies_id:'', 'Companies Id','companies_id', 'form-control select2','status<>-1')}}
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createTextarea("description","description ckeditor-classic","Description",$editable?$data->description:'')}} -
    {{createText("email","email","Email",'',$editable?$data->email:'')}} -
    {{createText("telephone","telephone","Telephone",'',$editable?$data->telephone:'')}} -
    {{createText("phone1","phone1","Phone1",'',$editable?$data->phone1:'')}} -
    {{createText("phone2","phone2","Phone2",'',$editable?$data->phone2:'')}} -
    {{createText("address","address","Address",'',$editable?$data->address:'')}} -
    {{createText("company_reg","company_reg","Company Reg",'',$editable?$data->company_reg:'')}} -
    {{createText("company_pan","company_pan","Company Pan",'',$editable?$data->company_pan:'')}} -
    {{createImageInput("logo","Logo",'',$editable?$data->logo:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    + {{ createCustomSelect('tbl_companies', 'title', 'company_id', $editable ? $data->companies_id : '', 'Companies Id', 'companies_id', 'form-control select2', 'status<>-1') }} +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    + {{ createTextarea('description', 'description ckeditor-classic', 'Description', $editable ? $data->description : '') }} +
    +
    {{ createText('email', 'email', 'Email', '', $editable ? $data->email : '') }} +
    +
    {{ createText('telephone', 'telephone', 'Telephone', '', $editable ? $data->telephone : '') }} +
    +
    {{ createText('phone1', 'phone1', 'Phone1', '', $editable ? $data->phone1 : '') }} +
    +
    {{ createText('phone2', 'phone2', 'Phone2', '', $editable ? $data->phone2 : '') }} +
    +
    {{ createText('address', 'address', 'Address', '', $editable ? $data->address : '') }} +
    +
    + {{ createText('company_reg', 'company_reg', 'Company Reg', '', $editable ? $data->company_reg : '') }} +
    +
    + {{ createText('company_pan', 'company_pan', 'Company Pan', '', $editable ? $data->company_pan : '') }} +
    +
    {{ createImageInput('logo', 'Logo', '', $editable ? $data->logo : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/branches/index.blade.php b/resources/views/crud/generated/branches/index.blade.php index a382100..33c7058 100644 --- a/resources/views/crud/generated/branches/index.blade.php +++ b/resources/views/crud/generated/branches/index.blade.php @@ -1,203 +1,211 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Branches List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - - - - - - - - - - +
    +
    +

    {{ label('Branches List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("companies") }}{{ label("title") }}{{ label("alias") }}{{ label("email") }}{{ label("telephone") }}{{ label("phone1") }}{{ label("phone2") }}{{ label("address") }}{{ label("company_reg") }}{{ label("company_pan") }}{{ label("logo") }}{{ label("is_main") }}{{ label("Action") }} -
    {{ $i++ }} -{!! getFieldData("tbl_companies", "title", "company_id", $item->companies_id) !!} -{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    {{ $item->email }}{{ $item->telephone }}{{ $item->phone1 }}{{ $item->phone2 }}{{ $item->address }}{{ $item->company_reg }}{{ $item->company_pan }}{{ showImageThumb($item->logo) }}{{ $item->is_main }} - - - -
    + + + + + + + + + + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + + + + + + + + + + -
    {{ label('Sn.') }}{{ label('companies') }}{{ label('title') }}{{ label('alias') }}{{ label('email') }}{{ label('telephone') }}{{ label('phone1') }}{{ label('phone2') }}{{ label('address') }}{{ label('company_reg') }}{{ label('company_pan') }}{{ label('logo') }}{{ label('is_main') }}{{ label('Action') }} +
    {{ $i++ }} + {!! getFieldData('tbl_companies', 'title', 'company_id', $item->companies_id) !!} + {{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    {{ $item->email }}{{ $item->telephone }}{{ $item->phone1 }}{{ $item->phone2 }}{{ $item->address }}{{ $item->company_reg }}{{ $item->company_pan }}{{ showImageThumb($item->logo) }}{{ $item->is_main }} +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/branches/show.blade.php b/resources/views/crud/generated/branches/show.blade.php index ebd4628..15fe1e4 100644 --- a/resources/views/crud/generated/branches/show.blade.php +++ b/resources/views/crud/generated/branches/show.blade.php @@ -1,29 +1,47 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Companies Id :     {{$data->companies_id}}

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Description :     {{$data->description}}

    Email :     {{$data->email}}

    Telephone :     {{$data->telephone}}

    Phone1 :     {{$data->phone1}}

    Phone2 :     {{$data->phone2}}

    Address :     {{$data->address}}

    Company Reg :     {{$data->company_reg}}

    Company Pan :     {{$data->company_pan}}

    Logo :     {{$data->logo}}

    Is Main :     {{$data->is_main}}

    Display Order :     {{$data->display_order}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Companies Id :     {{ $data->companies_id }}

    +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Description :     {{ $data->description }}

    +

    Email :     {{ $data->email }}

    +

    Telephone :     {{ $data->telephone }}

    +

    Phone1 :     {{ $data->phone1 }}

    +

    Phone2 :     {{ $data->phone2 }}

    +

    Address :     {{ $data->address }}

    +

    Company Reg :     {{ $data->company_reg }}

    +

    Company Pan :     {{ $data->company_pan }}

    +

    Logo :     {{ $data->logo }}

    +

    Is Main :     {{ $data->is_main }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/castes/edit.blade.php b/resources/views/crud/generated/castes/edit.blade.php index 95e8f4a..0dc6368 100644 --- a/resources/views/crud/generated/castes/edit.blade.php +++ b/resources/views/crud/generated/castes/edit.blade.php @@ -1,17 +1,24 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Caste') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Caste') }}

    + -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/castes/index.blade.php b/resources/views/crud/generated/castes/index.blade.php index 53a510d..508c46e 100644 --- a/resources/views/crud/generated/castes/index.blade.php +++ b/resources/views/crud/generated/castes/index.blade.php @@ -1,182 +1,189 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Caste List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Caste List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + -
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/castes/show.blade.php b/resources/views/crud/generated/castes/show.blade.php index 072b116..841d33c 100644 --- a/resources/views/crud/generated/castes/show.blade.php +++ b/resources/views/crud/generated/castes/show.blade.php @@ -1,29 +1,36 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/cities/edit.blade.php b/resources/views/crud/generated/cities/edit.blade.php index 3f4aa1e..9a1f150 100644 --- a/resources/views/crud/generated/cities/edit.blade.php +++ b/resources/views/crud/generated/cities/edit.blade.php @@ -1,18 +1,30 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Cities') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Cities') }}

    + -
    -
    -
    - @csrf -
    {{createCustomSelect('tbl_districts', 'title', 'district_id', $editable?$data->districts_id:'', 'Districts Id','districts_id', 'form-control select2','status<>-1')}}
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createTextarea("description","description ckeditor-classic","Description",$editable?$data->description:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    + {{ createCustomSelect('tbl_districts', 'title', 'district_id', $editable ? $data->districts_id : '', 'Districts Id', 'districts_id', 'form-control select2', 'status<>-1') }} +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    + {{ createTextarea('description', 'description ckeditor-classic', 'Description', $editable ? $data->description : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/cities/index.blade.php b/resources/views/crud/generated/cities/index.blade.php index 75200e1..48f5e54 100644 --- a/resources/views/crud/generated/cities/index.blade.php +++ b/resources/views/crud/generated/cities/index.blade.php @@ -1,185 +1,193 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Cities List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Cities List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("districts") }}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }} -{!! getFieldData("tbl_districts", "title", "district_id", $item->districts_id) !!} -{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + -
    {{ label('Sn.') }}{{ label('districts') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }} + {!! getFieldData('tbl_districts', 'title', 'district_id', $item->districts_id) !!} + {{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/cities/show.blade.php b/resources/views/crud/generated/cities/show.blade.php index c361ff3..daa489e 100644 --- a/resources/views/crud/generated/cities/show.blade.php +++ b/resources/views/crud/generated/cities/show.blade.php @@ -1,29 +1,38 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Districts Id :     {{$data->districts_id}}

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Description :     {{$data->description}}

    Display Order :     {{$data->display_order}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Districts Id :     {{ $data->districts_id }}

    +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Description :     {{ $data->description }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/companies/edit.blade.php b/resources/views/crud/generated/companies/edit.blade.php index 67e37a8..ecade68 100644 --- a/resources/views/crud/generated/companies/edit.blade.php +++ b/resources/views/crud/generated/companies/edit.blade.php @@ -1,19 +1,35 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Company') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Company') }}

    + -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createTextarea("description","description ckeditor-classic","Description",$editable?$data->description:'')}} -
    {{createText("address","address","Address",'',$editable?$data->address:'')}} -
    {{createCustomSelect('tbl_cities', 'title', 'city_id', $editable?$data->cities_id:'', 'Cities Id','cities_id', 'form-control select2','status<>-1')}}
    {{createCustomSelect('tbl_companytypes', 'title', 'companytype_id', $editable?$data->companytypes_id:'', 'Companytypes Id','companytypes_id', 'form-control select2','status<>-1')}}
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    + {{ createTextarea('description', 'description ckeditor-classic', 'Description', $editable ? $data->description : '') }} +
    +
    {{ createText('address', 'address', 'Address', '', $editable ? $data->address : '') }} +
    +
    + {{ createCustomSelect('tbl_cities', 'title', 'city_id', $editable ? $data->cities_id : '', 'Cities Id', 'cities_id', 'form-control select2', 'status<>-1') }} +
    +
    + {{ createCustomSelect('tbl_companytypes', 'title', 'companytype_id', $editable ? $data->companytypes_id : '', 'Companytypes Id', 'companytypes_id', 'form-control select2', 'status<>-1') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/companies/index.blade.php b/resources/views/crud/generated/companies/index.blade.php index d5605cb..cf0d0ec 100644 --- a/resources/views/crud/generated/companies/index.blade.php +++ b/resources/views/crud/generated/companies/index.blade.php @@ -1,190 +1,200 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Companies List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - - +
    +
    +

    {{ label('Companies List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("address") }}{{ label("cities") }}{{ label("companytypes") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    {{ $item->address }} -{!! getFieldData("tbl_cities", "title", "city_id", $item->cities_id) !!} - -{!! getFieldData("tbl_companytypes", "title", "companytype_id", $item->companytypes_id) !!} - - - - -
    + + + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + + + -
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('address') }}{{ label('cities') }}{{ label('companytypes') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    {{ $item->address }} + {!! getFieldData('tbl_cities', 'title', 'city_id', $item->cities_id) !!} + + {!! getFieldData('tbl_companytypes', 'title', 'companytype_id', $item->companytypes_id) !!} + +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/companies/show.blade.php b/resources/views/crud/generated/companies/show.blade.php index 304173f..25244c1 100644 --- a/resources/views/crud/generated/companies/show.blade.php +++ b/resources/views/crud/generated/companies/show.blade.php @@ -1,29 +1,40 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Description :     {{$data->description}}

    Address :     {{$data->address}}

    Cities Id :     {{$data->cities_id}}

    Companytypes Id :     {{$data->companytypes_id}}

    Display Order :     {{$data->display_order}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Description :     {{ $data->description }}

    +

    Address :     {{ $data->address }}

    +

    Cities Id :     {{ $data->cities_id }}

    +

    Companytypes Id :     {{ $data->companytypes_id }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/companytypes/edit.blade.php b/resources/views/crud/generated/companytypes/edit.blade.php index 79534de..ee3dd5f 100644 --- a/resources/views/crud/generated/companytypes/edit.blade.php +++ b/resources/views/crud/generated/companytypes/edit.blade.php @@ -1,18 +1,27 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Company Type') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Company Type') }}

    + -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createTextarea("description","description ckeditor-classic","Description",$editable?$data->description:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    + {{ createTextarea('description', 'description ckeditor-classic', 'Description', $editable ? $data->description : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/companytypes/index.blade.php b/resources/views/crud/generated/companytypes/index.blade.php index e73c2dc..bc60e2e 100644 --- a/resources/views/crud/generated/companytypes/index.blade.php +++ b/resources/views/crud/generated/companytypes/index.blade.php @@ -1,182 +1,190 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Company Type List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Company Type List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + -
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/companytypes/show.blade.php b/resources/views/crud/generated/companytypes/show.blade.php index d616002..e53f3ea 100644 --- a/resources/views/crud/generated/companytypes/show.blade.php +++ b/resources/views/crud/generated/companytypes/show.blade.php @@ -1,29 +1,37 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Description :     {{$data->description}}

    Display Order :     {{$data->display_order}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Description :     {{ $data->description }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/countries/create.blade.php b/resources/views/crud/generated/countries/create.blade.php index 3491e73..f30927b 100644 --- a/resources/views/crud/generated/countries/create.blade.php +++ b/resources/views/crud/generated/countries/create.blade.php @@ -1,34 +1,35 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') - -
    -
    -
    + +
    +
    +

    Add Country

    - +
    +
    -
    -
    - -
    -@csrf -
    -
    +
    + + + @csrf +
    +
    -
    {{createText("title","title","Title")}}
    -
    {{createTextarea("description","description ckeditor-classic","Description")}}
    -
    {{createPlainTextArea("remarks","remarks ","Remarks")}}
    -
    -
    -
    -
    - - -
    - -@endsection \ No newline at end of file +
    {{ createText('title', 'title', 'Title') }}
    +
    {{ createTextarea('description', 'description ckeditor-classic', 'Description') }} +
    +
    {{ createPlainTextArea('remarks', 'remarks ', 'Remarks') }}
    +
    +
    +
    +
    + + +
    + +@endsection diff --git a/resources/views/crud/generated/countries/edit.blade.php b/resources/views/crud/generated/countries/edit.blade.php index 87ed01c..c161ecc 100644 --- a/resources/views/crud/generated/countries/edit.blade.php +++ b/resources/views/crud/generated/countries/edit.blade.php @@ -1,39 +1,40 @@ -@extends('backend.template') - @section('content') - -
    -
    -
    +@extends('layouts.app') +@section('content') + +
    +
    +

    Edit Country

    - +
    +
    -
    -
    - -
    - @csrf -
    - -
    - -
    -
    {{createText("title","title","Title",'',$data->title)}}
    -
    {{createTextarea("description","description ckeditor-classic","Description",$data->description)}}
    -
    -
    {{createPlainTextArea("remarks",'',"Remarks",$data->remarks)}}
    - -
    -
    - -
    -
    -@endsection \ No newline at end of file +
    + +
    + @csrf +
    + +
    + +
    +
    {{ createText('title', 'title', 'Title', '', $data->title) }}
    +
    + {{ createTextarea('description', 'description ckeditor-classic', 'Description', $data->description) }}
    +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $data->remarks) }}
    + +
    +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/countries/index.blade.php b/resources/views/crud/generated/countries/index.blade.php index fa64264..d8cd3c3 100644 --- a/resources/views/crud/generated/countries/index.blade.php +++ b/resources/views/crud/generated/countries/index.blade.php @@ -1,241 +1,253 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -
    +
    +
    + @csrf -
    -
    -

    Add Country

    -
    -
    -
    -
    {{createText("title","title","Title")}}
    -
    -
    {{createTextarea("description","description ","Description")}}
    -
    -
    {{createPlainTextArea("remarks","remarks ","Remarks")}}
    -
    -
    - - -
    - -
    -
    -
    -
    -

    {{ label("Countries List") }}

    -
    -
    - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - "> - - - - - @endforeach - -
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - -
    -
    +
    +
    +

    Add Country

    +
    +
    +
    +
    {{ createText('title', 'title', 'Title') }}
    +
    +
    {{ createTextarea('description', 'description ', 'Description') }}
    +
    +
    {{ createPlainTextArea('remarks', 'remarks ', 'Remarks') }}
    +
    + +
    +
    +
    +
    +
    +

    {{ label('Countries List') }}

    +
    +
    + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + + @endforeach + +
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    + +
    +
    +
    +
    +
    @endsection -@push("css") - - +@push('css') + + @endpush -@push("js") - - - - - - - - +@push('js') + + + + + + + + @endpush diff --git a/resources/views/crud/generated/countries/show.blade.php b/resources/views/crud/generated/countries/show.blade.php index a982950..d297b6f 100644 --- a/resources/views/crud/generated/countries/show.blade.php +++ b/resources/views/crud/generated/countries/show.blade.php @@ -1,29 +1,37 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Description :     {{$data->description}}

    Display Order :     {{$data->display_order}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Description :     {{ $data->description }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/dags/edit.blade.php b/resources/views/crud/generated/dags/edit.blade.php index bc712f0..7f1cbbe 100644 --- a/resources/views/crud/generated/dags/edit.blade.php +++ b/resources/views/crud/generated/dags/edit.blade.php @@ -1,17 +1,24 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Dags') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Dags') }}

    + -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/dags/index.blade.php b/resources/views/crud/generated/dags/index.blade.php index 09db252..019106e 100644 --- a/resources/views/crud/generated/dags/index.blade.php +++ b/resources/views/crud/generated/dags/index.blade.php @@ -1,182 +1,189 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Dags List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Dags List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + -
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/dags/show.blade.php b/resources/views/crud/generated/dags/show.blade.php index 586e501..bbbf9ef 100644 --- a/resources/views/crud/generated/dags/show.blade.php +++ b/resources/views/crud/generated/dags/show.blade.php @@ -1,29 +1,36 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/departments/edit.blade.php b/resources/views/crud/generated/departments/edit.blade.php index 5b60155..fc393b1 100644 --- a/resources/views/crud/generated/departments/edit.blade.php +++ b/resources/views/crud/generated/departments/edit.blade.php @@ -1,18 +1,30 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Department') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Department') }}

    + -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    {{createCustomSelect('tbl_branches', 'title', 'branch_id', $editable?$data->branches_id:'', 'Branches Id','branches_id', 'form-control select2','status<>-1')}}
    {{createTextarea("description","description ckeditor-classic","Description",$editable?$data->description:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + {{ createCustomSelect('tbl_branches', 'title', 'branch_id', $editable ? $data->branches_id : '', 'Branches Id', 'branches_id', 'form-control select2', 'status<>-1') }} +
    +
    + {{ createTextarea('description', 'description ckeditor-classic', 'Description', $editable ? $data->description : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/departments/index.blade.php b/resources/views/crud/generated/departments/index.blade.php index 6fd372d..4322bc2 100644 --- a/resources/views/crud/generated/departments/index.blade.php +++ b/resources/views/crud/generated/departments/index.blade.php @@ -1,185 +1,194 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Departments List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Departments List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("branches") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    -{!! getFieldData("tbl_branches", "title", "branch_id", $item->branches_id) !!} - - - - -
    + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + -
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('branches') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    + {!! getFieldData('tbl_branches', 'title', 'branch_id', $item->branches_id) !!} + +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/departments/show.blade.php b/resources/views/crud/generated/departments/show.blade.php index 58f0905..f3293de 100644 --- a/resources/views/crud/generated/departments/show.blade.php +++ b/resources/views/crud/generated/departments/show.blade.php @@ -1,29 +1,38 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    Branches Id :     {{$data->branches_id}}

    Description :     {{$data->description}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +

    Branches Id :     {{ $data->branches_id }}

    +

    Description :     {{ $data->description }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/designations/edit.blade.php b/resources/views/crud/generated/designations/edit.blade.php index 8c59b09..6614dcb 100644 --- a/resources/views/crud/generated/designations/edit.blade.php +++ b/resources/views/crud/generated/designations/edit.blade.php @@ -1,18 +1,30 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Designations') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Designations') }}

    + -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    {{createText("job_description","job_description","Job Description",'',$editable?$data->job_description:'')}} -
    {{createCustomSelect('tbl_departments', 'title', 'department_id', $editable?$data->departments_id:'', 'Departments Id','departments_id', 'form-control select2','status<>-1')}}
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + {{ createText('job_description', 'job_description', 'Job Description', '', $editable ? $data->job_description : '') }} +
    +
    + {{ createCustomSelect('tbl_departments', 'title', 'department_id', $editable ? $data->departments_id : '', 'Departments Id', 'departments_id', 'form-control select2', 'status<>-1') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/designations/index.blade.php b/resources/views/crud/generated/designations/index.blade.php index d7525e3..fbf9a20 100644 --- a/resources/views/crud/generated/designations/index.blade.php +++ b/resources/views/crud/generated/designations/index.blade.php @@ -1,187 +1,196 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Designations List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - - +
    +
    +

    {{ label('Designations List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("job_description") }}{{ label("departments") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    {{ $item->job_description }} -{!! getFieldData("tbl_departments", "title", "department_id", $item->departments_id) !!} - - - - -
    + + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + + -
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('job_description') }}{{ label('departments') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    {{ $item->job_description }} + {!! getFieldData('tbl_departments', 'title', 'department_id', $item->departments_id) !!} + +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/designations/show.blade.php b/resources/views/crud/generated/designations/show.blade.php index 3bd2ce5..91bdaae 100644 --- a/resources/views/crud/generated/designations/show.blade.php +++ b/resources/views/crud/generated/designations/show.blade.php @@ -1,29 +1,38 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    Job Description :     {{$data->job_description}}

    Departments Id :     {{$data->departments_id}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +

    Job Description :     {{ $data->job_description }}

    +

    Departments Id :     {{ $data->departments_id }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/districts/edit.blade.php b/resources/views/crud/generated/districts/edit.blade.php index 521c9ff..b91faaa 100644 --- a/resources/views/crud/generated/districts/edit.blade.php +++ b/resources/views/crud/generated/districts/edit.blade.php @@ -1,18 +1,30 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Districts') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Districts') }}

    + -
    -
    -
    - @csrf -
    {{createCustomSelect('tbl_proviences', 'title', 'provience_id', $editable?$data->proviences_id:'', 'Proviences Id','proviences_id', 'form-control select2','status<>-1')}}
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createTextarea("description","description ckeditor-classic","Description",$editable?$data->description:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    + {{ createCustomSelect('tbl_proviences', 'title', 'provience_id', $editable ? $data->proviences_id : '', 'Proviences Id', 'proviences_id', 'form-control select2', 'status<>-1') }} +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    + {{ createTextarea('description', 'description ckeditor-classic', 'Description', $editable ? $data->description : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/districts/index.blade.php b/resources/views/crud/generated/districts/index.blade.php index cfba3c0..b6a0d09 100644 --- a/resources/views/crud/generated/districts/index.blade.php +++ b/resources/views/crud/generated/districts/index.blade.php @@ -1,185 +1,194 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Districts List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Districts List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("proviences") }}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }} -{!! getFieldData("tbl_proviences", "title", "provience_id", $item->proviences_id) !!} -{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + -
    {{ label('Sn.') }}{{ label('proviences') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }} + {!! getFieldData('tbl_proviences', 'title', 'provience_id', $item->proviences_id) !!} + {{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/districts/show.blade.php b/resources/views/crud/generated/districts/show.blade.php index cb05cab..20b6253 100644 --- a/resources/views/crud/generated/districts/show.blade.php +++ b/resources/views/crud/generated/districts/show.blade.php @@ -1,29 +1,38 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Proviences Id :     {{$data->proviences_id}}

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Description :     {{$data->description}}

    Display Order :     {{$data->display_order}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Proviences Id :     {{ $data->proviences_id }}

    +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Description :     {{ $data->description }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/employees/edit.blade.php b/resources/views/crud/generated/employees/edit.blade.php index b8f8e51..0a84f29 100644 --- a/resources/views/crud/generated/employees/edit.blade.php +++ b/resources/views/crud/generated/employees/edit.blade.php @@ -1,129 +1,316 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label('Add Employees') }}

    - +
    +
    +

    {{ label('Add Employees') }}

    + -
    -
    -
    - @csrf -
    -
    {{createText("first_name","first_name","First - Name",'',$editable?$data->first_name:'')}} -
    -
    {{createText("middle_name","middle_name","Middle - Name",'',$editable?$data->middle_name:'')}} -
    -
    {{createText("last_name","last_name","Last - Name",'',$editable?$data->last_name:'')}} -
    -
    - {{createText("email","email","Email",'',$editable?$data->email:'')}} -
    -
    {{createCustomSelect('tbl_genders', 'title', 'gender_id', - $editable?$data->genders_id:'', 'Genders Id','genders_id', 'form-control - select2','status<>-1')}}
    -
    {{createText("nepali_dob","nepali_dob","Nepali - Dob",'',$editable?$data->nepali_dob:'')}} -
    -
    {{createDate("dob","Dob",'',$editable?$data->dob:'')}} -
    -
    {{createCustomSelect('tbl_nationalities', 'title', - 'nationality_id', $editable?$data->nationalities_id:'', 'Nationalities - Id','nationalities_id', 'form-control select2','status<>-1')}}
    -
    {{createText("about_me","about_me","About - Me",'',$editable?$data->about_me:'')}} -
    -
    - {{createImageInput("signature","Signature",'',$editable?$data->signature:'')}} -
    -
    {{createText("father_name","father_name","Father - Name",'',$editable?$data->father_name:'')}} -
    -
    {{createText("mother_name","mother_name","Mother - Name",'',$editable?$data->mother_name:'')}} -
    -
    {{createText("grand_father_name","grand_father_name","Grand Father - Name",'',$editable?$data->grand_father_name:'')}} -
    -
    {{createText("grand_mother_name","grand_mother_name","Grand Mother - Name",'',$editable?$data->grand_mother_name:'')}} -
    -
    - {{createText("spouse","spouse","Spouse",'',$editable?$data->spouse:'')}} -
    -
    - {{createText("contact","contact","Contact",'',$editable?$data->contact:'')}} -
    -
    {{createText("alt_contact","alt_contact","Alt - Contact",'',$editable?$data->alt_contact:'')}} +
    +
    + + @csrf +
    +
    + {{ createText( + 'first_name', + 'first_name', + "First + Name", + '', + $editable ? $data->first_name : '', + ) }} +
    +
    + {{ createText( + 'middle_name', + 'middle_name', + "Middle + Name", + '', + $editable ? $data->middle_name : '', + ) }} +
    +
    + {{ createText( + 'last_name', + 'last_name', + "Last + Name", + '', + $editable ? $data->last_name : '', + ) }} +
    +
    + {{ createText('email', 'email', 'Email', '', $editable ? $data->email : '') }} +
    +
    + {{ createCustomSelect( + 'tbl_genders', + 'title', + 'gender_id', + $editable ? $data->genders_id : '', + 'Genders Id', + 'genders_id', + 'form-control + select2', + 'status<>-1', + ) }} +
    +
    + {{ createText( + 'nepali_dob', + 'nepali_dob', + "Nepali + Dob", + '', + $editable ? $data->nepali_dob : '', + ) }} +
    +
    {{ createDate('dob', 'Dob', '', $editable ? $data->dob : '') }} +
    +
    + {{ createCustomSelect( + 'tbl_nationalities', + 'title', + 'nationality_id', + $editable ? $data->nationalities_id : '', + 'Nationalities + Id', + 'nationalities_id', + 'form-control select2', + 'status<>-1', + ) }} +
    +
    + {{ createText( + 'about_me', + 'about_me', + "About + Me", + '', + $editable ? $data->about_me : '', + ) }} +
    +
    + {{ createImageInput('signature', 'Signature', '', $editable ? $data->signature : '') }} +
    +
    + {{ createText( + 'father_name', + 'father_name', + "Father + Name", + '', + $editable ? $data->father_name : '', + ) }} +
    +
    + {{ createText( + 'mother_name', + 'mother_name', + "Mother + Name", + '', + $editable ? $data->mother_name : '', + ) }} +
    +
    + {{ createText( + 'grand_father_name', + 'grand_father_name', + "Grand Father + Name", + '', + $editable ? $data->grand_father_name : '', + ) }} +
    +
    + {{ createText( + 'grand_mother_name', + 'grand_mother_name', + "Grand Mother + Name", + '', + $editable ? $data->grand_mother_name : '', + ) }} +
    +
    + {{ createText('spouse', 'spouse', 'Spouse', '', $editable ? $data->spouse : '') }} +
    +
    + {{ createText('contact', 'contact', 'Contact', '', $editable ? $data->contact : '') }} +
    +
    + {{ createText( + 'alt_contact', + 'alt_contact', + "Alt + Contact", + '', + $editable ? $data->alt_contact : '', + ) }} -
    -
    {{createImageInput("profile_picture","Profile - Picture",'',$editable?$data->profile_picture:'')}} -
    -
    {{createCustomSelect('tbl_users', 'name', 'id', - $editable?$data->users_id:'', 'Users Id','users_id', 'form-control - select2','status<>-1')}}
    -
    {{createText("is_login_required","is_login_required","Is Login - Required",'',$editable?$data->is_login_required:'')}} -
    -
    - {{createText("skills","skills","Skills",'',$editable?$data->skills:'')}} -
    -
    {{createTextarea("experience","experience - ckeditor-classic","Experience",$editable?$data->experience:'')}} -
    -
    {{createText("permanent_address","permanent_address","Permanent - Address",'',$editable?$data->permanent_address:'')}} -
    - -
    {{createCustomSelect('tbl_cities', 'title', 'city_id', - $editable?$data->permanent_city:'', 'Permanent - City','permanent_city', 'form-control - select2','status<>-1')}} -
    +
    +
    + {{ createImageInput( + 'profile_picture', + "Profile + Picture", + '', + $editable ? $data->profile_picture : '', + ) }} +
    +
    + {{ createCustomSelect( + 'tbl_users', + 'name', + 'id', + $editable ? $data->users_id : '', + 'Users Id', + 'users_id', + 'form-control + select2', + 'status<>-1', + ) }} +
    +
    + {{ createText( + 'is_login_required', + 'is_login_required', + "Is Login + Required", + '', + $editable ? $data->is_login_required : '', + ) }} +
    +
    + {{ createText('skills', 'skills', 'Skills', '', $editable ? $data->skills : '') }} +
    +
    + {{ createTextarea( + 'experience', + "experience + ckeditor-classic", + 'Experience', + $editable ? $data->experience : '', + ) }} +
    +
    + {{ createText( + 'permanent_address', + 'permanent_address', + "Permanent + Address", + '', + $editable ? $data->permanent_address : '', + ) }} +
    -
    {{createText("temporary_address","temporary_address","Temporary - Address",'',$editable?$data->temporary_address:'')}} -
    - +
    + {{ createCustomSelect( + 'tbl_cities', + 'title', + 'city_id', + $editable ? $data->permanent_city : '', + 'Permanent + City', + 'permanent_city', + 'form-control + select2', + 'status<>-1', + ) }} +
    -
    {{createCustomSelect('tbl_cities', 'title', 'city_id', - $editable?$data->temporary_city:'', 'Temporary - City','temporary_city', 'form-control - select2','status<>-1')}} -
    +
    + {{ createText( + 'temporary_address', + 'temporary_address', + "Temporary + Address", + '', + $editable ? $data->temporary_address : '', + ) }} +
    -
    {{createText("old_system_address","old_system_address","Old System - Address",'',$editable?$data->old_system_address:'')}} -
    -
    - {{createText("education","education","Education",'',$editable?$data->education:'')}} -
    -
    {{createCustomSelect('tbl_castes', 'title', 'caste_id', - $editable?$data->castes_id:'', 'Castes Id','castes_id', 'form-control - select2','status<>-1')}}
    -
    {{createCustomSelect('tbl_ethnicities', 'title', 'ethnicity_id', - $editable?$data->ethnicities_id:'', 'Ethnicities Id','ethnicities_id', - 'form-control select2','status<>-1')}}
    -
    {{createCustomSelect('tbl_dags', 'title', 'dag_id', - $editable?$data->dags_id:'', 'Dags Id','dags_id', 'form-control select2','status - <>-1')}}
    -
    - {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    -
    - {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    -
    - - -
    - -
    -
    -@endsection \ No newline at end of file + +
    + {{ createCustomSelect( + 'tbl_cities', + 'title', + 'city_id', + $editable ? $data->temporary_city : '', + 'Temporary + City', + 'temporary_city', + 'form-control + select2', + 'status<>-1', + ) }} +
    + +
    + {{ createText( + 'old_system_address', + 'old_system_address', + "Old System + Address", + '', + $editable ? $data->old_system_address : '', + ) }} +
    +
    + {{ createText('education', 'education', 'Education', '', $editable ? $data->education : '') }} +
    +
    + {{ createCustomSelect( + 'tbl_castes', + 'title', + 'caste_id', + $editable ? $data->castes_id : '', + 'Castes Id', + 'castes_id', + 'form-control + select2', + 'status<>-1', + ) }} +
    +
    + {{ createCustomSelect( + 'tbl_ethnicities', + 'title', + 'ethnicity_id', + $editable ? $data->ethnicities_id : '', + 'Ethnicities Id', + 'ethnicities_id', + 'form-control select2', + 'status<>-1', + ) }} +
    +
    + {{ createCustomSelect( + 'tbl_dags', + 'title', + 'dag_id', + $editable ? $data->dags_id : '', + 'Dags Id', + 'dags_id', + 'form-control select2', + 'status + <>-1', + ) }} +
    +
    + {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    + {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/employees/index.blade.php b/resources/views/crud/generated/employees/index.blade.php index 7c921f3..624cf4f 100644 --- a/resources/views/crud/generated/employees/index.blade.php +++ b/resources/views/crud/generated/employees/index.blade.php @@ -1,250 +1,264 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Employees List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
    +
    +

    {{ label('Employees List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("first_name") }}{{ label("middle_name") }}{{ label("last_name") }}{{ label("email") }}{{ label("genders") }}{{ label("nepali_dob") }}{{ label("dob") }}{{ label("nationalities") }}{{ label("about_me") }}{{ label("signature") }}{{ label("father_name") }}{{ label("mother_name") }}{{ label("grand_father_name") }}{{ label("grand_mother_name") }}{{ label("spouse") }}{{ label("contact") }}{{ label("alt_contact") }}{{ label("profile_picture") }}{{ label("users") }}{{ label("is_login_required") }}{{ label("skills") }}{{ label("experience") }}{{ label("permanent_address") }}{{ label("permanent_city") }}{{ label("temporary_address") }}{{ label("temporary_city") }}{{ label("old_system_address") }}{{ label("education") }}{{ label("castes") }}{{ label("ethnicities") }}{{ label("dags") }}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->first_name }}{{ $item->middle_name }}{{ $item->last_name }}{{ $item->email }} -{!! getFieldData("tbl_genders", "title", "gender_id", $item->genders_id) !!} -{{ $item->nepali_dob }}{{ myDate($item->dob) }} -{!! getFieldData("tbl_nationalities", "title", "nationality_id", $item->nationalities_id) !!} -{{ $item->about_me }}{{ showImageThumb($item->signature) }}{{ $item->father_name }}{{ $item->mother_name }}{{ $item->grand_father_name }}{{ $item->grand_mother_name }}{{ $item->spouse }}{{ $item->contact }}{{ $item->alt_contact }}{{ showImageThumb($item->profile_picture) }} -{!! getFieldData("tbl_users", "name", "id", $item->users_id) !!} -{{ $item->is_login_required }}{{ $item->skills }}{{ $item->experience }}{{ $item->permanent_address }}{{ $item->permanent_city }}{{ $item->temporary_address }}{{ $item->temporary_city }}{{ $item->old_system_address }}{{ $item->education }} -{!! getFieldData("tbl_castes", "title", "caste_id", $item->castes_id) !!} - -{!! getFieldData("tbl_ethnicities", "title", "ethnicity_id", $item->ethnicities_id) !!} - -{!! getFieldData("tbl_dags", "title", "dag_id", $item->dags_id) !!} -{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
    {{ label('Sn.') }}{{ label('first_name') }}{{ label('middle_name') }}{{ label('last_name') }}{{ label('email') }}{{ label('genders') }}{{ label('nepali_dob') }}{{ label('dob') }}{{ label('nationalities') }}{{ label('about_me') }}{{ label('signature') }}{{ label('father_name') }}{{ label('mother_name') }}{{ label('grand_father_name') }}{{ label('grand_mother_name') }}{{ label('spouse') }}{{ label('contact') }}{{ label('alt_contact') }}{{ label('profile_picture') }}{{ label('users') }}{{ label('is_login_required') }}{{ label('skills') }}{{ label('experience') }}{{ label('permanent_address') }}{{ label('permanent_city') }}{{ label('temporary_address') }}{{ label('temporary_city') }}{{ label('old_system_address') }}{{ label('education') }}{{ label('castes') }}{{ label('ethnicities') }}{{ label('dags') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->first_name }}{{ $item->middle_name }}{{ $item->last_name }}{{ $item->email }} + {!! getFieldData('tbl_genders', 'title', 'gender_id', $item->genders_id) !!} + {{ $item->nepali_dob }}{{ myDate($item->dob) }} + {!! getFieldData('tbl_nationalities', 'title', 'nationality_id', $item->nationalities_id) !!} + {{ $item->about_me }}{{ showImageThumb($item->signature) }}{{ $item->father_name }}{{ $item->mother_name }}{{ $item->grand_father_name }}{{ $item->grand_mother_name }}{{ $item->spouse }}{{ $item->contact }}{{ $item->alt_contact }}{{ showImageThumb($item->profile_picture) }} + {!! getFieldData('tbl_users', 'name', 'id', $item->users_id) !!} + {{ $item->is_login_required }}{{ $item->skills }}{{ $item->experience }}{{ $item->permanent_address }}{{ $item->permanent_city }}{{ $item->temporary_address }}{{ $item->temporary_city }}{{ $item->old_system_address }}{{ $item->education }} + {!! getFieldData('tbl_castes', 'title', 'caste_id', $item->castes_id) !!} + + {!! getFieldData('tbl_ethnicities', 'title', 'ethnicity_id', $item->ethnicities_id) !!} + + {!! getFieldData('tbl_dags', 'title', 'dag_id', $item->dags_id) !!} + {{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/employees/show.blade.php b/resources/views/crud/generated/employees/show.blade.php index 699b7ad..410f0e2 100644 --- a/resources/views/crud/generated/employees/show.blade.php +++ b/resources/views/crud/generated/employees/show.blade.php @@ -1,29 +1,67 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    First Name :     {{$data->first_name}}

    Middle Name :     {{$data->middle_name}}

    Last Name :     {{$data->last_name}}

    Email :     {{$data->email}}

    Genders Id :     {{$data->genders_id}}

    Nepali Dob :     {{$data->nepali_dob}}

    Dob :     {{$data->dob}}

    Nationalities Id :     {{$data->nationalities_id}}

    About Me :     {{$data->about_me}}

    Signature :     {{$data->signature}}

    Father Name :     {{$data->father_name}}

    Mother Name :     {{$data->mother_name}}

    Grand Father Name :     {{$data->grand_father_name}}

    Grand Mother Name :     {{$data->grand_mother_name}}

    Spouse :     {{$data->spouse}}

    Contact :     {{$data->contact}}

    Alt Contact :     {{$data->alt_contact}}

    Profile Picture :     {{$data->profile_picture}}

    Users Id :     {{$data->users_id}}

    Is Login Required :     {{$data->is_login_required}}

    Skills :     {{$data->skills}}

    Experience :     {{$data->experience}}

    Permanent Address :     {{$data->permanent_address}}

    Permanent City :     {{$data->permanent_city}}

    Temporary Address :     {{$data->temporary_address}}

    Temporary City :     {{$data->temporary_city}}

    Old System Address :     {{$data->old_system_address}}

    Education :     {{$data->education}}

    Castes Id :     {{$data->castes_id}}

    Ethnicities Id :     {{$data->ethnicities_id}}

    Dags Id :     {{$data->dags_id}}

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    Remarks :     {{$data->remarks}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    First Name :     {{ $data->first_name }}

    +

    Middle Name :     {{ $data->middle_name }}

    +

    Last Name :     {{ $data->last_name }}

    +

    Email :     {{ $data->email }}

    +

    Genders Id :     {{ $data->genders_id }}

    +

    Nepali Dob :     {{ $data->nepali_dob }}

    +

    Dob :     {{ $data->dob }}

    +

    Nationalities Id :     {{ $data->nationalities_id }}

    +

    About Me :     {{ $data->about_me }}

    +

    Signature :     {{ $data->signature }}

    +

    Father Name :     {{ $data->father_name }}

    +

    Mother Name :     {{ $data->mother_name }}

    +

    Grand Father Name :     {{ $data->grand_father_name }}

    +

    Grand Mother Name :     {{ $data->grand_mother_name }}

    +

    Spouse :     {{ $data->spouse }}

    +

    Contact :     {{ $data->contact }}

    +

    Alt Contact :     {{ $data->alt_contact }}

    +

    Profile Picture :     {{ $data->profile_picture }}

    +

    Users Id :     {{ $data->users_id }}

    +

    Is Login Required :     {{ $data->is_login_required }}

    +

    Skills :     {{ $data->skills }}

    +

    Experience :     {{ $data->experience }}

    +

    Permanent Address :     {{ $data->permanent_address }}

    +

    Permanent City :     {{ $data->permanent_city }}

    +

    Temporary Address :     {{ $data->temporary_address }}

    +

    Temporary City :     {{ $data->temporary_city }}

    +

    Old System Address :     {{ $data->old_system_address }}

    +

    Education :     {{ $data->education }}

    +

    Castes Id :     {{ $data->castes_id }}

    +

    Ethnicities Id :     {{ $data->ethnicities_id }}

    +

    Dags Id :     {{ $data->dags_id }}

    +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Display Order :     {{ $data->display_order }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +

    Remarks :     {{ $data->remarks }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/ethnicities/edit.blade.php b/resources/views/crud/generated/ethnicities/edit.blade.php index 50cd46d..56d5ffc 100644 --- a/resources/views/crud/generated/ethnicities/edit.blade.php +++ b/resources/views/crud/generated/ethnicities/edit.blade.php @@ -1,17 +1,24 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Ethnicities') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Ethnicities') }}

    + -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/ethnicities/index.blade.php b/resources/views/crud/generated/ethnicities/index.blade.php index fa67377..9b64df2 100644 --- a/resources/views/crud/generated/ethnicities/index.blade.php +++ b/resources/views/crud/generated/ethnicities/index.blade.php @@ -1,182 +1,190 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Ethnicities List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Ethnicities List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + -
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/ethnicities/show.blade.php b/resources/views/crud/generated/ethnicities/show.blade.php index 95f2da5..659e8cc 100644 --- a/resources/views/crud/generated/ethnicities/show.blade.php +++ b/resources/views/crud/generated/ethnicities/show.blade.php @@ -1,29 +1,36 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/genders/edit.blade.php b/resources/views/crud/generated/genders/edit.blade.php index 499e130..c8e0e0d 100644 --- a/resources/views/crud/generated/genders/edit.blade.php +++ b/resources/views/crud/generated/genders/edit.blade.php @@ -1,17 +1,24 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Genders') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Genders') }}

    + -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/genders/index.blade.php b/resources/views/crud/generated/genders/index.blade.php index de172b1..35ef9a8 100644 --- a/resources/views/crud/generated/genders/index.blade.php +++ b/resources/views/crud/generated/genders/index.blade.php @@ -1,182 +1,189 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Genders List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Genders List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + -
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/genders/show.blade.php b/resources/views/crud/generated/genders/show.blade.php index c7b514f..b73f7dd 100644 --- a/resources/views/crud/generated/genders/show.blade.php +++ b/resources/views/crud/generated/genders/show.blade.php @@ -1,29 +1,36 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/leaves/edit.blade.php b/resources/views/crud/generated/leaves/edit.blade.php deleted file mode 100644 index 7470dcb..0000000 --- a/resources/views/crud/generated/leaves/edit.blade.php +++ /dev/null @@ -1,17 +0,0 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Leaves') }}

    - - -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    {{createCustomSelect('tbl_leavetypes', 'title', 'leavetype_id', $editable?$data->leavetypes_id:'', 'Leavetypes Id','leavetypes_id', 'form-control select2','status<>-1')}}
    - -
    -@endsection \ No newline at end of file diff --git a/resources/views/crud/generated/leaves/index.blade.php b/resources/views/crud/generated/leaves/index.blade.php deleted file mode 100644 index 65bff6e..0000000 --- a/resources/views/crud/generated/leaves/index.blade.php +++ /dev/null @@ -1,271 +0,0 @@ -@extends('backend.template') -@section('content') -
    -
    -

    {{ label("Leaves List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - - - @endforeach - - -
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("leavetypes") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    -{!! getFieldData("tbl_leavetypes", "title", "leavetype_id", $item->leavetypes_id) !!} - - - - -
    - - -
    -
    - - @endsection - -@push("css") - - -@endpush -@push("js") - - - - - - - - - - - - -@endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/leaves/show.blade.php b/resources/views/crud/generated/leaves/show.blade.php deleted file mode 100644 index b2558c9..0000000 --- a/resources/views/crud/generated/leaves/show.blade.php +++ /dev/null @@ -1,29 +0,0 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - - -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    Leavetypes Id :     {{$data->leavetypes_id}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    -
    - -
    -
    - -@endSection \ No newline at end of file diff --git a/resources/views/crud/generated/leavetypes/edit.blade.php b/resources/views/crud/generated/leavetypes/edit.blade.php deleted file mode 100644 index 94dbc8f..0000000 --- a/resources/views/crud/generated/leavetypes/edit.blade.php +++ /dev/null @@ -1,17 +0,0 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Leavetypes') }}

    - - -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file diff --git a/resources/views/crud/generated/leavetypes/index.blade.php b/resources/views/crud/generated/leavetypes/index.blade.php deleted file mode 100644 index 8f1436d..0000000 --- a/resources/views/crud/generated/leavetypes/index.blade.php +++ /dev/null @@ -1,268 +0,0 @@ -@extends('backend.template') -@section('content') -
    -
    -

    {{ label("Leavetypes List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - - - @endforeach - - -
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    - - -
    -
    - - @endsection - -@push("css") - - -@endpush -@push("js") - - - - - - - - - - - - -@endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/leavetypes/show.blade.php b/resources/views/crud/generated/leavetypes/show.blade.php deleted file mode 100644 index 95d3666..0000000 --- a/resources/views/crud/generated/leavetypes/show.blade.php +++ /dev/null @@ -1,29 +0,0 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - - -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    -
    - -
    -
    - -@endSection \ No newline at end of file diff --git a/resources/views/crud/generated/nationalities/edit.blade.php b/resources/views/crud/generated/nationalities/edit.blade.php index 28a0f16..cc23489 100644 --- a/resources/views/crud/generated/nationalities/edit.blade.php +++ b/resources/views/crud/generated/nationalities/edit.blade.php @@ -1,17 +1,24 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Nationalities') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Nationalities') }}

    + -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/nationalities/index.blade.php b/resources/views/crud/generated/nationalities/index.blade.php index 73e5494..18b04e8 100644 --- a/resources/views/crud/generated/nationalities/index.blade.php +++ b/resources/views/crud/generated/nationalities/index.blade.php @@ -1,182 +1,190 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Nationalities List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Nationalities List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + -
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/nationalities/show.blade.php b/resources/views/crud/generated/nationalities/show.blade.php index 871e7dc..03d0e61 100644 --- a/resources/views/crud/generated/nationalities/show.blade.php +++ b/resources/views/crud/generated/nationalities/show.blade.php @@ -1,29 +1,36 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/onboardings/edit.blade.php b/resources/views/crud/generated/onboardings/edit.blade.php index ab84d52..c7ef49c 100644 --- a/resources/views/crud/generated/onboardings/edit.blade.php +++ b/resources/views/crud/generated/onboardings/edit.blade.php @@ -1,58 +1,93 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label('Add Onboardings') }}

    - +
    +
    +

    {{ label('Add Onboardings') }}

    + -
    -
    -
    - @csrf -
    -
    {{createDate("doj","Doj",'',$editable?$data->doj:'')}} +
    +
    + + @csrf +
    +
    {{ createDate('doj', 'Doj', '', $editable ? $data->doj : '') }} -
    +
    -
    {{createCustomSelect('tbl_designations', 'title', - 'designation_id', $editable?$data->designations_id:'', 'Designations - Id','designations_id', 'form-control select2','status<>-1')}}
    -
    {{createText("position_status","position_status","Position - Status",'',$editable?$data->position_status:'')}} -
    -
    {{createCustomSelect('tbl_departments', 'title', 'department_id', - $editable?$data->departments_id:'', 'Departments Id','departments_id', - 'form-control select2','status<>-1')}}
    -
    {{createCustomSelect('tbl_shifts', 'title', 'shift_id', - $editable?$data->shifts_id:'', 'Shifts Id','shifts_id', 'form-control - select2','status<>-1')}} +
    + {{ createCustomSelect( + 'tbl_designations', + 'title', + 'designation_id', + $editable ? $data->designations_id : '', + 'Designations + Id', + 'designations_id', + 'form-control select2', + 'status<>-1', + ) }} +
    +
    + {{ createText( + 'position_status', + 'position_status', + "Position + Status", + '', + $editable ? $data->position_status : '', + ) }} +
    +
    + {{ createCustomSelect( + 'tbl_departments', + 'title', + 'department_id', + $editable ? $data->departments_id : '', + 'Departments Id', + 'departments_id', + 'form-control select2', + 'status<>-1', + ) }} +
    +
    + {{ createCustomSelect( + 'tbl_shifts', + 'title', + 'shift_id', + $editable ? $data->shifts_id : '', + 'Shifts Id', + 'shifts_id', + 'form-control + select2', + 'status<>-1', + ) }} - -
    -
    - {{createImageInput("agreement","Agreement",'',$editable?$data->agreement:'')}} -
    -
    {{createImageInput("nda","Nda",'',$editable?$data->nda:'')}} + +
    +
    + {{ createImageInput('agreement', 'Agreement', '', $editable ? $data->agreement : '') }} +
    +
    {{ createImageInput('nda', 'Nda', '', $editable ? $data->nda : '') }} -
    -
    - {{createText("terms","terms","Terms",'',$editable?$data->terms:'')}} -
    -
    - {{createText("workoptions","workoptions","Workoptions",'',$editable?$data->workoptions:'')}} -
    -
    - {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    -
    - {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    -
    - - -
    - -
    -
    -@endsection \ No newline at end of file +
    +
    + {{ createText('terms', 'terms', 'Terms', '', $editable ? $data->terms : '') }} +
    +
    + {{ createText('workoptions', 'workoptions', 'Workoptions', '', $editable ? $data->workoptions : '') }} +
    +
    + {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    + {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/onboardings/index.blade.php b/resources/views/crud/generated/onboardings/index.blade.php index 8633417..666f7c4 100644 --- a/resources/views/crud/generated/onboardings/index.blade.php +++ b/resources/views/crud/generated/onboardings/index.blade.php @@ -1,205 +1,215 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Onboardings List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - - +
    +
    +

    {{ label('Onboardings List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("doj") }}{{ label("designations") }}{{ label("position_status") }}{{ label("departments") }}{{ label("shifts") }}{{ label("agreement") }}{{ label("nda") }}{{ label("terms") }}{{ label("workoptions") }}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->doj }} -{!! getFieldData("tbl_designations", "title", "designation_id", $item->designations_id) !!} -{{ $item->position_status }} -{!! getFieldData("tbl_departments", "title", "department_id", $item->departments_id) !!} - -{!! getFieldData("tbl_shifts", "title", "shift_id", $item->shifts_id) !!} -{{ showImageThumb($item->agreement) }}{{ showImageThumb($item->nda) }}
    + + + + + + + + + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + + + + - - - - - - + + + + + -
    {{ label('Sn.') }}{{ label('doj') }}{{ label('designations') }}{{ label('position_status') }}{{ label('departments') }}{{ label('shifts') }}{{ label('agreement') }}{{ label('nda') }}{{ label('terms') }}{{ label('workoptions') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->doj }} + {!! getFieldData('tbl_designations', 'title', 'designation_id', $item->designations_id) !!} + {{ $item->position_status }} + {!! getFieldData('tbl_departments', 'title', 'department_id', $item->departments_id) !!} + + {!! getFieldData('tbl_shifts', 'title', 'shift_id', $item->shifts_id) !!} + {{ showImageThumb($item->agreement) }}{{ showImageThumb($item->nda) }}{{ $item->terms }}{{ $item->workoptions }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    {{ $item->terms }}{{ $item->workoptions }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/onboardings/show.blade.php b/resources/views/crud/generated/onboardings/show.blade.php index 01bffb0..86b9d60 100644 --- a/resources/views/crud/generated/onboardings/show.blade.php +++ b/resources/views/crud/generated/onboardings/show.blade.php @@ -1,29 +1,45 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Doj :     {{$data->doj}}

    Designations Id :     {{$data->designations_id}}

    Position Status :     {{$data->position_status}}

    Departments Id :     {{$data->departments_id}}

    Shifts Id :     {{$data->shifts_id}}

    Agreement :     {{$data->agreement}}

    Nda :     {{$data->nda}}

    Terms :     {{$data->terms}}

    Workoptions :     {{$data->workoptions}}

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Doj :     {{ $data->doj }}

    +

    Designations Id :     {{ $data->designations_id }}

    +

    Position Status :     {{ $data->position_status }}

    +

    Departments Id :     {{ $data->departments_id }}

    +

    Shifts Id :     {{ $data->shifts_id }}

    +

    Agreement :     {{ $data->agreement }}

    +

    Nda :     {{ $data->nda }}

    +

    Terms :     {{ $data->terms }}

    +

    Workoptions :     {{ $data->workoptions }}

    +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/permissions/edit.blade.php b/resources/views/crud/generated/permissions/edit.blade.php deleted file mode 100644 index ee23359..0000000 --- a/resources/views/crud/generated/permissions/edit.blade.php +++ /dev/null @@ -1,18 +0,0 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Permissions') }}

    - - -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createText("modal","modal","Modal",'',$editable?$data->modal:'')}} -
    {{createText("command","command","Command",'',$editable?$data->command:'')}} -
    - -
    -@endsection \ No newline at end of file diff --git a/resources/views/crud/generated/permissions/index.blade.php b/resources/views/crud/generated/permissions/index.blade.php deleted file mode 100644 index cc7033a..0000000 --- a/resources/views/crud/generated/permissions/index.blade.php +++ /dev/null @@ -1,272 +0,0 @@ -@extends('backend.template') -@section('content') -
    -
    -

    {{ label("Permissions List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - - - - - @endforeach - - -
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("modal") }}{{ label("command") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    {{ $item->modal }}{{ $item->command }} - - - -
    - - -
    -
    - - @endsection - -@push("css") - - -@endpush -@push("js") - - - - - - - - - - - - -@endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/permissions/show.blade.php b/resources/views/crud/generated/permissions/show.blade.php deleted file mode 100644 index ba62bda..0000000 --- a/resources/views/crud/generated/permissions/show.blade.php +++ /dev/null @@ -1,29 +0,0 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - - -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Modal :     {{$data->modal}}

    Command :     {{$data->command}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    -
    - -
    -
    - -@endSection \ No newline at end of file diff --git a/resources/views/crud/generated/proviences/edit.blade.php b/resources/views/crud/generated/proviences/edit.blade.php index c4882da..d8fb6a0 100644 --- a/resources/views/crud/generated/proviences/edit.blade.php +++ b/resources/views/crud/generated/proviences/edit.blade.php @@ -1,18 +1,30 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Proviences') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Proviences') }}

    + -
    -
    -
    - @csrf -
    {{createCustomSelect('tbl_countries', 'title', 'country_id', $editable?$data->countries_id:'', 'Countries Id','countries_id', 'form-control select2','status<>-1')}}
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createTextarea("description","description ckeditor-classic","Description",$editable?$data->description:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    + {{ createCustomSelect('tbl_countries', 'title', 'country_id', $editable ? $data->countries_id : '', 'Countries Id', 'countries_id', 'form-control select2', 'status<>-1') }} +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    + {{ createTextarea('description', 'description ckeditor-classic', 'Description', $editable ? $data->description : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/proviences/index.blade.php b/resources/views/crud/generated/proviences/index.blade.php index b9a91d8..b045d33 100644 --- a/resources/views/crud/generated/proviences/index.blade.php +++ b/resources/views/crud/generated/proviences/index.blade.php @@ -1,324 +1,315 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') - -
    +
    -
    - @csrf -
    -
    -

    {{ label('Add Proviences') }}

    + + @csrf +
    +
    +

    {{ label('Add Proviences') }}

    -
    -
    - -
    -
    {{createCustomSelect('tbl_countries', 'title', 'country_id', 'Countries Id','countries_id', 'form-control select2','status<>-1')}}
    -
    {{createText("title","title","Title")}} -
    -
    {{createTextarea("description","description ","Description")}} -
    - - -
    -
    - -
    - +
    +
    + +
    +
    + {{ createCustomSelect('tbl_countries', 'title', 'country_id', 'Countries Id', 'countries_id', 'form-control select2', 'status<>-1') }} +
    +
    {{ createText('title', 'title', 'Title') }} +
    +
    {{ createTextarea('description', 'description ', 'Description') }} +
    + + +
    +
    + +
    +
    -
    -
    -

    {{ label("Proviences List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - - - - - @endforeach - - -
    {{label("Sn.")}}{{ label("countries") }}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }} - {!! getFieldData("tbl_countries", "title", "country_id", $item->countries_id) !!} - {{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    - - -
    +
    +
    +

    {{ label('Proviences List') }}

    + {{ label('Create New') }}
    +
    + + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + + + @endforeach + + +
    {{ label('Sn.') }}{{ label('countries') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }} + {!! getFieldData('tbl_countries', 'title', 'country_id', $item->countries_id) !!} + {{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    + + + +
    + + +
    +
    -
    - - - - - - - - - - - - - - - - +
    @endsection -@push("css") - - +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - -@endpush \ No newline at end of file + +@endpush diff --git a/resources/views/crud/generated/proviences/show.blade.php b/resources/views/crud/generated/proviences/show.blade.php index 3dcd9d0..687e668 100644 --- a/resources/views/crud/generated/proviences/show.blade.php +++ b/resources/views/crud/generated/proviences/show.blade.php @@ -1,29 +1,38 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Countries Id :     {{$data->countries_id}}

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Description :     {{$data->description}}

    Display Order :     {{$data->display_order}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Countries Id :     {{ $data->countries_id }}

    +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Description :     {{ $data->description }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/rolepermissions/edit.blade.php b/resources/views/crud/generated/rolepermissions/edit.blade.php deleted file mode 100644 index 2048e75..0000000 --- a/resources/views/crud/generated/rolepermissions/edit.blade.php +++ /dev/null @@ -1,16 +0,0 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Rolepermissions') }}

    - - -
    -
    -
    - @csrf -
    {{createCustomSelect('tbl_roles', 'title', 'role_id', $editable?$data->roles_id:'', 'Roles Id','roles_id', 'form-control select2','status<>-1')}}
    {{createCustomSelect('tbl_permissions', 'title', 'permission_id', $editable?$data->permissions_id:'', 'Permissions Id','permissions_id', 'form-control select2','status<>-1')}}
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file diff --git a/resources/views/crud/generated/rolepermissions/index.blade.php b/resources/views/crud/generated/rolepermissions/index.blade.php deleted file mode 100644 index 1ee0605..0000000 --- a/resources/views/crud/generated/rolepermissions/index.blade.php +++ /dev/null @@ -1,189 +0,0 @@ -@extends('backend.template') -@section('content') -
    -
    -

    {{ label("Rolepermissions List") }}

    - {{label("Create New")}} -
    -
    - @foreach($PermissionGroups as $PermissionGroup) -
    - @foreach($PermissionGroup->Commands as $Permission) -
    -
    - - -
    -
    - @endforeach -
    - @endforeach - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - @endforeach - - -
    {{label("Sn.")}}{{ label("roles") }}{{ label("permissions") }}{{ label("Action") }} -
    {{ $i++ }} -{!! getFieldData("tbl_roles", "title", "role_id", $item->roles_id) !!} - -{!! getFieldData("tbl_permissions", "title", "permission_id", $item->permissions_id) !!} - - - - -
    - -
    -
    - - @endsection - -@push("css") - - -@endpush -@push("js") - - - - - - - - - - - - -@endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/rolepermissions/show.blade.php b/resources/views/crud/generated/rolepermissions/show.blade.php deleted file mode 100644 index e2e0664..0000000 --- a/resources/views/crud/generated/rolepermissions/show.blade.php +++ /dev/null @@ -1,29 +0,0 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - - -
    -
    - - - -

    Roles Id :     {{$data->roles_id}}

    Permissions Id :     {{$data->permissions_id}}

    Display Order :     {{$data->display_order}}

    Remarks :     {{$data->remarks}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    -
    - -
    -
    - -@endSection \ No newline at end of file diff --git a/resources/views/crud/generated/roles/edit.blade.php b/resources/views/crud/generated/roles/edit.blade.php deleted file mode 100644 index 742f620..0000000 --- a/resources/views/crud/generated/roles/edit.blade.php +++ /dev/null @@ -1,25 +0,0 @@ -@extends('backend.template') -@section('content') -
    -
    -

    {{ label('Add Role') }}

    - - -
    -
    -
    - @csrf -
    -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    -
    {{createTextarea("description","description ckeditor-classic","Description",$editable?$data->description:'')}} -
    -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    -
    - -
    - -
    -
    -@endsection \ No newline at end of file diff --git a/resources/views/crud/generated/roles/index.blade.php b/resources/views/crud/generated/roles/index.blade.php deleted file mode 100644 index 972ccb1..0000000 --- a/resources/views/crud/generated/roles/index.blade.php +++ /dev/null @@ -1,301 +0,0 @@ -@extends('backend.template') -@section('content') - -
    -
    -
    - @csrf -
    -
    -

    {{ label('Add Role') }}

    -
    -
    -
    -
    {{createText("title","title","Title",)}} -
    -
    {{createTextarea("description","description ","Description")}} -
    -
    -
    - -
    -
    -
    -
    -
    -
    -

    {{ label("Roles List") }}

    -
    -
    - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - - - - @endforeach - - -
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    - - -
    -
    - -
    -
    - - - - - - -@endsection - -@push("css") - - -@endpush -@push("js") - - - - - - - - - - -@endpush \ No newline at end of file diff --git a/resources/views/crud/generated/roles/show.blade.php b/resources/views/crud/generated/roles/show.blade.php deleted file mode 100644 index 198a461..0000000 --- a/resources/views/crud/generated/roles/show.blade.php +++ /dev/null @@ -1,29 +0,0 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - - -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Description :     {{$data->description}}

    Display Order :     {{$data->display_order}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    -
    - -
    -
    - -@endSection \ No newline at end of file diff --git a/resources/views/crud/generated/settings/create.blade.php b/resources/views/crud/generated/settings/create.blade.php index ce71e4b..d7d125b 100644 --- a/resources/views/crud/generated/settings/create.blade.php +++ b/resources/views/crud/generated/settings/create.blade.php @@ -1,40 +1,71 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label('Add Settings') }}

    - -
    -
    -
    -@csrf -
    {{createText("title","title","Title")}} -
    {{createTextarea("description","description ckeditor-classic","Description")}} -
    {{ createText("url1","url1","Url1")}} -
    {{createText("url2","url2","Url2")}} -
    {{createText("email","email","Email")}} -
    {{ createText("phone","phone","Phone")}} -
    {{createText("secondary_phone","secondary_phone","Secondary Phone")}} -
    {{createPlainTextArea("google_map","google_map ","Google Map")}} -
    {{createText("fb","fb","Fb")}} -
    {{createText("insta","insta","Insta")}} -
    {{createText("twitter","twitter","Twitter")}} -
    {{createText("tiktok","tiktok","Tiktok")}} -
    {{createImageInput("primary_logo","Primary Logo")}} -
    {{createImageInput("secondary_logo","Secondary Logo")}} -
    {{createImageInput ("thumb","Thumb")}} -
    {{createImageInput("icon","Icon")}} -
    {{createImageInput("og_image","Og Image")}} -
    {{createImageInput ("no_image","No Image")}} -
    {{createText("copyright_text","copyright_text","Copyright Text")}} -
    {{createTextarea("content1","content1 ckeditor-classic","Content1")}} -
    {{createTextarea("content2","content2 ckeditor-classic","Content2")}} -
    {{createTextarea("content3","content3 ckeditor-classic","Content3")}} -
    {{createText("seo_title","seo_title","Seo Title")}} -
    {{createPlainTextArea("seo_description","seo_description ","Seo Description")}} -
    {{createPlainTextArea("seo_keywords","seo_keywords ","Seo Keywords")}} -
    {{createPlainTextArea("og_tags","og_tags ","Og Tags")}} -

    < ?php createButton("btn-primary btn-store","","Submit"); ?> - -
    -@end section \ No newline at end of file +
    +
    +

    {{ label('Add Settings') }}

    + +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title') }} +
    +
    {{ createTextarea('description', 'description ckeditor-classic', 'Description') }} +
    +
    {{ createText('url1', 'url1', 'Url1') }} +
    +
    {{ createText('url2', 'url2', 'Url2') }} +
    +
    {{ createText('email', 'email', 'Email') }} +
    +
    {{ createText('phone', 'phone', 'Phone') }} +
    +
    {{ createText('secondary_phone', 'secondary_phone', 'Secondary Phone') }} +
    +
    {{ createPlainTextArea('google_map', 'google_map ', 'Google Map') }} +
    +
    {{ createText('fb', 'fb', 'Fb') }} +
    +
    {{ createText('insta', 'insta', 'Insta') }} +
    +
    {{ createText('twitter', 'twitter', 'Twitter') }} +
    +
    {{ createText('tiktok', 'tiktok', 'Tiktok') }} +
    +
    {{ createImageInput('primary_logo', 'Primary Logo') }} +
    +
    {{ createImageInput('secondary_logo', 'Secondary Logo') }} +
    +
    {{ createImageInput('thumb', 'Thumb') }} +
    +
    {{ createImageInput('icon', 'Icon') }} +
    +
    {{ createImageInput('og_image', 'Og Image') }} +
    +
    {{ createImageInput('no_image', 'No Image') }} +
    +
    {{ createText('copyright_text', 'copyright_text', 'Copyright Text') }} +
    +
    {{ createTextarea('content1', 'content1 ckeditor-classic', 'Content1') }} +
    +
    {{ createTextarea('content2', 'content2 ckeditor-classic', 'Content2') }} +
    +
    {{ createTextarea('content3', 'content3 ckeditor-classic', 'Content3') }} +
    +
    {{ createText('seo_title', 'seo_title', 'Seo Title') }} +
    +
    {{ createPlainTextArea('seo_description', 'seo_description ', 'Seo Description') }} +
    +
    {{ createPlainTextArea('seo_keywords', 'seo_keywords ', 'Seo Keywords') }} +
    +
    {{ createPlainTextArea('og_tags', 'og_tags ', 'Og Tags') }} +

    +
    + < ?php createButton("btn-primary btn-store","","Submit"); ?> + +
    + +
    +
    + @end section diff --git a/resources/views/crud/generated/settings/edit.blade.php b/resources/views/crud/generated/settings/edit.blade.php index 50deff2..02b3845 100644 --- a/resources/views/crud/generated/settings/edit.blade.php +++ b/resources/views/crud/generated/settings/edit.blade.php @@ -1,154 +1,168 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') - -
    + +
    -
    -

    Edit Setting

    -
    - -
    +
    +

    Edit Setting

    +
    +
    +
    -
    - -
    - @csrf +
    + + + @csrf
    -
    -
    -
    -
    -
    {{createText("title","title","Title",'',$data->title)}}
    -
    -
    {{createTextarea("description","description ckeditor-classic","Description",$data->description)}}
    +
    +
    +
    +
    +
    {{ createText('title', 'title', 'Title', '', $data->title) }}
    +
    +
    + {{ createTextarea('description', 'description ckeditor-classic', 'Description', $data->description) }}
    -
    -
    -
    -
    -

    Contact Details

    -
    -
    -
    -
    {{createText("address","address","Address",'',$data->address)}}
    -
    {{createText("url1","url1","Url1",'',$data->url1)}}
    +
    +
    +
    +
    +

    Contact Details

    +
    +
    +
    +
    {{ createText('address', 'address', 'Address', '', $data->address) }}
    +
    {{ createText('url1', 'url1', 'Url1', '', $data->url1) }}
    -
    {{createText("email","email","Email",'',$data->email)}}
    -
    {{createText("phone","phone","Phone",'',$data->phone)}}
    -
    {{createText("secondary_phone","secondary_phone","Secondary Phone",'',$data->secondary_phone)}}
    -
    {{createPlainTextArea("google_map",'',"Google Map",$data->google_map)}}
    -
    -
    +
    {{ createText('email', 'email', 'Email', '', $data->email) }}
    +
    {{ createText('phone', 'phone', 'Phone', '', $data->phone) }}
    +
    + {{ createText('secondary_phone', 'secondary_phone', 'Secondary Phone', '', $data->secondary_phone) }}
    +
    {{ createPlainTextArea('google_map', '', 'Google Map', $data->google_map) }}
    -
    -
    -
    Footer
    -
    -
    -
    -
    {{createText("copyright_text","copyright_text","Copyright Text",'',$data->copyright_text)}}
    -
    {{createTextarea("content1","content1","Content1",$data->content1)}}
    -
    {{createTextarea("content2","content2","Content2",$data->content2)}}
    -
    {{createTextarea("content3","content3","Content3",$data->content3)}}
    -
    -
    +
    +
    +
    +
    +
    Footer
    +
    +
    +
    +
    + {{ createText('copyright_text', 'copyright_text', 'Copyright Text', '', $data->copyright_text) }}
    +
    {{ createTextarea('content1', 'content1', 'Content1', $data->content1) }}
    +
    {{ createTextarea('content2', 'content2', 'Content2', $data->content2) }}
    +
    {{ createTextarea('content3', 'content3', 'Content3', $data->content3) }}
    -
    -
    -
    SEO Related
    -
    -
    -
    {{createText("seo_title","seo_title","Seo Title",'',$data->seo_title)}}
    -
    {{createPlainTextArea("seo_description",'',"Seo Description",$data->seo_description)}}
    -
    {{createPlainTextArea("seo_keywords",'',"Seo Keywords",$data->seo_keywords)}}
    -
    {{createPlainTextArea("og_tags",'',"Og Tags",$data->og_tags)}}
    -
    +
    +
    +
    +
    +
    SEO Related
    +
    +
    +
    {{ createText('seo_title', 'seo_title', 'Seo Title', '', $data->seo_title) }}
    +
    + {{ createPlainTextArea('seo_description', '', 'Seo Description', $data->seo_description) }}
    +
    {{ createPlainTextArea('seo_keywords', '', 'Seo Keywords', $data->seo_keywords) }}
    - -
    -
    -
    Site Settings
    -
    -
    -
    {{createPlainTextArea("meta_pixel_code",'',"Meta Pixel Code",$data->meta_pixel_code,10)}}
    -
    {{createText("smtp_server","smtp_server","SMTP Server",'',$data->smtp_server)}}
    -
    {{createText("smtp_security","smtp_security","SMTP Security (TSL/SSL/Empty for none)",'',$data->smtp_security)}}
    -
    {{createText("smtp_port","smtp_port","SMTP PORT (25/587/465)",'',$data->smtp_port)}}
    -
    {{createText("smtp_user","smtp_user","SMTP Username",'',$data->smtp_user)}}
    -
    {{createText("smtp_password","smtp_password","SMTP Password",'',$data->smtp_password)}}
    -
    {{createText("sms_api","sms_api","SMS API",'',$data->sms_api)}}
    -
    {{createText("sms_username","sms_username","SMS Username",'',$data->sms_username)}}
    -
    {{createText("sms_password","sms_password","SMS Password",'',$data->sms_password)}}
    -
    {{createText("sms_sender","sms_sender","SMS Sender (Default is SMS)",'',$data->sms_sender)}}
    -
    -
    - - +
    {{ createPlainTextArea('og_tags', '', 'Og Tags', $data->og_tags) }}
    +
    -
    - -
    -
    -

    Social Media

    -
    -
    -
    -
    {{createText("fb","fb","Facebook",'',$data->fb)}}
    -
    {{createText("insta","insta","Instagram",'',$data->insta)}}
    -
    {{createText("twitter","twitter","Twitter",'',$data->twitter)}}
    -
    {{createText("tiktok","tiktok","Tiktok",'',$data->tiktok)}}
    -
    -
    +
    +
    +
    Site Settings
    +
    +
    +
    + {{ createPlainTextArea('meta_pixel_code', '', 'Meta Pixel Code', $data->meta_pixel_code, 10) }}
    +
    {{ createText('smtp_server', 'smtp_server', 'SMTP Server', '', $data->smtp_server) }}
    -
    -
    -

    Images

    -
    -
    -
    {{createImageInput("primary_logo","Primary Logo",'',$data->primary_logo)}}
    -
    -
    {{createImageInput("secondary_logo","Secondary Logo",'',$data->secondary_logo)}}
    -
    -
    {{createImageInput("thumb","Thumb",'',$data->thumb)}}
    -
    -
    {{createImageInput("icon","Icon",'',$data->icon)}}
    -
    -
    {{createImageInput("og_image","Og Image",'',$data->og_image)}}
    -
    -
    {{createImageInput("no_image","No Image",'',$data->no_image)}}
    -
    +
    + {{ createText('smtp_security', 'smtp_security', 'SMTP Security (TSL/SSL/Empty for none)', '', $data->smtp_security) }}
    - -
    -
    -

    Published

    -
    -
    -
    - - -
    -
    - +
    {{ createText('smtp_port', 'smtp_port', 'SMTP PORT (25/587/465)', '', $data->smtp_port) }}
    - +
    {{ createText('smtp_user', 'smtp_user', 'SMTP Username', '', $data->smtp_user) }}
    +
    + {{ createText('smtp_password', 'smtp_password', 'SMTP Password', '', $data->smtp_password) }}
    +
    {{ createText('sms_api', 'sms_api', 'SMS API', '', $data->sms_api) }}
    +
    {{ createText('sms_username', 'sms_username', 'SMS Username', '', $data->sms_username) }} +
    +
    {{ createText('sms_password', 'sms_password', 'SMS Password', '', $data->sms_password) }} +
    +
    + {{ createText('sms_sender', 'sms_sender', 'SMS Sender (Default is SMS)', '', $data->sms_sender) }}
    +
    + + +
    + +
    + +
    +
    +

    Social Media

    +
    +
    +
    +
    {{ createText('fb', 'fb', 'Facebook', '', $data->fb) }}
    +
    {{ createText('insta', 'insta', 'Instagram', '', $data->insta) }}
    +
    {{ createText('twitter', 'twitter', 'Twitter', '', $data->twitter) }}
    +
    {{ createText('tiktok', 'tiktok', 'Tiktok', '', $data->tiktok) }}
    +
    +
    +
    +
    +
    +

    Images

    +
    +
    +
    {{ createImageInput('primary_logo', 'Primary Logo', '', $data->primary_logo) }} +
    +
    +
    + {{ createImageInput('secondary_logo', 'Secondary Logo', '', $data->secondary_logo) }}
    +
    +
    {{ createImageInput('thumb', 'Thumb', '', $data->thumb) }}
    +
    +
    {{ createImageInput('icon', 'Icon', '', $data->icon) }}
    +
    +
    {{ createImageInput('og_image', 'Og Image', '', $data->og_image) }}
    +
    +
    {{ createImageInput('no_image', 'No Image', '', $data->no_image) }}
    +
    +
    + +
    +
    +

    Published

    +
    +
    +
    + + +
    +
    + +
    + +
    - - - -@endsection \ No newline at end of file + +@endsection diff --git a/resources/views/crud/generated/settings/index.blade.php b/resources/views/crud/generated/settings/index.blade.php index 52773ab..32d3772 100644 --- a/resources/views/crud/generated/settings/index.blade.php +++ b/resources/views/crud/generated/settings/index.blade.php @@ -1,209 +1,211 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') +
    +
    +

    {{ label('Settings List') }}

    + {{ label('Create New') }} +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + + + + + + + + + + + + + + + + + + + + @endforeach -
    -
    -

    {{ label("Settings List") }}

    - {{label("Create New")}} -
    -
    -
    {{ label('Sn.') }}{{ label('title') }}{{ label('url1') }}{{ label('url2') }}{{ label('email') }}{{ label('phone') }}{{ label('secondary_phone') }}{{ label('fb') }}{{ label('insta') }}{{ label('twitter') }}{{ label('tiktok') }}{{ label('primary_logo') }}{{ label('secondary_logo') }}{{ label('thumb') }}{{ label('icon') }}{{ label('og_image') }}{{ label('no_image') }}{{ label('copyright_text') }}{{ label('content1') }}{{ label('content2') }}{{ label('content3') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }}{{ $item->url1 }}{{ $item->url2 }}{{ $item->email }}{{ $item->phone }}{{ $item->secondary_phone }}{{ $item->fb }}{{ $item->insta }}{{ $item->twitter }}{{ $item->tiktok }}{{ showImageThumb($item->primary_logo) }}{{ showImageThumb($item->secondary_logo) }}{{ showImageThumb($item->thumb) }}{{ showImageThumb($item->icon) }}{{ showImageThumb($item->og_image) }}{{ showImageThumb($item->no_image) }}{{ $item->copyright_text }}{{ $item->content1 }}{{ $item->content2 }}{{ $item->content3 }} + +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - - - - - - - - - - - - - - - - - - - + +
    {{label("Sn.")}}{{ label("title") }}{{ label("url1") }}{{ label("url2") }}{{ label("email") }}{{ label("phone") }}{{ label("secondary_phone") }}{{ label("fb") }}{{ label("insta") }}{{ label("twitter") }}{{ label("tiktok") }}{{ label("primary_logo") }}{{ label("secondary_logo") }}{{ label("thumb") }}{{ label("icon") }}{{ label("og_image") }}{{ label("no_image") }}{{ label("copyright_text") }}{{ label("content1") }}{{ label("content2") }}{{ label("content3") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }}{{ $item->url1 }}{{ $item->url2 }}{{ $item->email }}{{ $item->phone }}{{ $item->secondary_phone }}{{ $item->fb }}{{ $item->insta }}{{ $item->twitter }}{{ $item->tiktok }}{{ showImageThumb($item->primary_logo) }}{{ showImageThumb($item->secondary_logo) }}{{ showImageThumb($item->thumb) }}{{ showImageThumb($item->icon) }}{{ showImageThumb($item->og_image) }}{{ showImageThumb($item->no_image) }}{{ $item->copyright_text }}{{ $item->content1 }}{{ $item->content2 }}{{ $item->content3 }} - - - -
    - @endforeach - - +
    +
    +@endsection - -
    -
    - - @endsection - -@push("css") - - +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/settings/show.blade.php b/resources/views/crud/generated/settings/show.blade.php index 7f526cd..cecc3c5 100644 --- a/resources/views/crud/generated/settings/show.blade.php +++ b/resources/views/crud/generated/settings/show.blade.php @@ -1,29 +1,59 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Description :     {{$data->description}}

    Url1 :     {{$data->url1}}

    Url2 :     {{$data->url2}}

    Email :     {{$data->email}}

    Phone :     {{$data->phone}}

    Secondary Phone :     {{$data->secondary_phone}}

    Google Map :     {{$data->google_map}}

    Fb :     {{$data->fb}}

    Insta :     {{$data->insta}}

    Twitter :     {{$data->twitter}}

    Tiktok :     {{$data->tiktok}}

    Primary Logo :     {{$data->primary_logo}}

    Secondary Logo :     {{$data->secondary_logo}}

    Thumb :     {{$data->thumb}}

    Icon :     {{$data->icon}}

    Og Image :     {{$data->og_image}}

    No Image :     {{$data->no_image}}

    Copyright Text :     {{$data->copyright_text}}

    Content1 :     {{$data->content1}}

    Content2 :     {{$data->content2}}

    Content3 :     {{$data->content3}}

    Seo Title :     {{$data->seo_title}}

    Seo Description :     {{$data->seo_description}}

    Seo Keywords :     {{$data->seo_keywords}}

    Og Tags :     {{$data->og_tags}}

    Display Order :     {{$data->display_order}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Description :     {{ $data->description }}

    +

    Url1 :     {{ $data->url1 }}

    +

    Url2 :     {{ $data->url2 }}

    +

    Email :     {{ $data->email }}

    +

    Phone :     {{ $data->phone }}

    +

    Secondary Phone :     {{ $data->secondary_phone }}

    +

    Google Map :     {{ $data->google_map }}

    +

    Fb :     {{ $data->fb }}

    +

    Insta :     {{ $data->insta }}

    +

    Twitter :     {{ $data->twitter }}

    +

    Tiktok :     {{ $data->tiktok }}

    +

    Primary Logo :     {{ $data->primary_logo }}

    +

    Secondary Logo :     {{ $data->secondary_logo }}

    +

    Thumb :     {{ $data->thumb }}

    +

    Icon :     {{ $data->icon }}

    +

    Og Image :     {{ $data->og_image }}

    +

    No Image :     {{ $data->no_image }}

    +

    Copyright Text :     {{ $data->copyright_text }}

    +

    Content1 :     {{ $data->content1 }}

    +

    Content2 :     {{ $data->content2 }}

    +

    Content3 :     {{ $data->content3 }}

    +

    Seo Title :     {{ $data->seo_title }}

    +

    Seo Description :     {{ $data->seo_description }}

    +

    Seo Keywords :     {{ $data->seo_keywords }}

    +

    Og Tags :     {{ $data->og_tags }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/shifts/edit.blade.php b/resources/views/crud/generated/shifts/edit.blade.php index 33331d8..b9f5a34 100644 --- a/resources/views/crud/generated/shifts/edit.blade.php +++ b/resources/views/crud/generated/shifts/edit.blade.php @@ -1,17 +1,24 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Shifts') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Shifts') }}

    + -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/shifts/index.blade.php b/resources/views/crud/generated/shifts/index.blade.php index 9bd07a2..358775b 100644 --- a/resources/views/crud/generated/shifts/index.blade.php +++ b/resources/views/crud/generated/shifts/index.blade.php @@ -1,182 +1,189 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Shifts List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Shifts List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + -
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/shifts/show.blade.php b/resources/views/crud/generated/shifts/show.blade.php index bd03117..318bd87 100644 --- a/resources/views/crud/generated/shifts/show.blade.php +++ b/resources/views/crud/generated/shifts/show.blade.php @@ -1,29 +1,36 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/users/__edit.blade.php b/resources/views/crud/generated/users/__edit.blade.php index 13e6d69..649d981 100644 --- a/resources/views/crud/generated/users/__edit.blade.php +++ b/resources/views/crud/generated/users/__edit.blade.php @@ -1,45 +1,50 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') - -
    -
    -
    -

    Edit User

    -
    - -
    -
    + +
    +
    +
    +

    Edit User

    +
    +
    -
    - -
    - @csrf -
    -
    -
    -
    {{createText("name","name","Name",'',$data->name)}}
    -
    - {{createText("username","username","Username",'',$data->username)}}
    -
    {{createPassword("password","Password",'',$data->password)}} -
    -
    {{createText("email","email","Email",'',$data->email)}}
    -
    {{createCustomSelect('tbl_roles', 'title', 'role_id', $data->roles_id, - 'Role','roles_id', 'form-control select2','status<>-1')}}
    +
    +
    +
    + + + @csrf +
    +
    +
    +
    {{ createText('name', 'name', 'Name', '', $data->name) }}
    +
    + {{ createText('username', 'username', 'Username', '', $data->username) }}
    +
    {{ createPassword('password', 'Password', '', $data->password) }} +
    +
    {{ createText('email', 'email', 'Email', '', $data->email) }}
    +
    + {{ createCustomSelect( + 'tbl_roles', + 'title', + 'role_id', + $data->roles_id, + 'Role', + 'roles_id', + 'form-control select2', + 'status<>-1', + ) }} +
    -
    -
    -
    - - -
    -
    - - - - - -@endsection \ No newline at end of file +
    +
    +
    + + +
    + +@endsection diff --git a/resources/views/crud/generated/users/create.blade.php b/resources/views/crud/generated/users/create.blade.php index ae1a3fa..52b6217 100644 --- a/resources/views/crud/generated/users/create.blade.php +++ b/resources/views/crud/generated/users/create.blade.php @@ -1,37 +1,37 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') - -
    -
    -
    -

    Add User

    -
    - -
    -
    + +
    +
    +
    +

    Add User

    +
    +
    -
    - -
    - @csrf -
    -
    -
    -
    {{createText("name","name","Name")}}
    -
    {{createText("username","username","Username")}}
    -
    {{createPassword("password","Password",'')}}
    -
    {{createText("email","email","Email")}}
    -
    {{createText("remember_token","remember_token","Remember Token")}} -
    -
    -
    +
    +
    +
    + + + @csrf +
    +
    +
    +
    {{ createText('name', 'name', 'Name') }}
    +
    {{ createText('username', 'username', 'Username') }}
    +
    {{ createPassword('password', 'Password', '') }}
    +
    {{ createText('email', 'email', 'Email') }}
    +
    {{ createText('remember_token', 'remember_token', 'Remember Token') }} +
    -
    - - -
    - -@endsection \ No newline at end of file +
    +
    +
    + + +
    + +@endsection diff --git a/resources/views/crud/generated/users/edit.blade.php b/resources/views/crud/generated/users/edit.blade.php index fc1a3ef..1e9b6e9 100644 --- a/resources/views/crud/generated/users/edit.blade.php +++ b/resources/views/crud/generated/users/edit.blade.php @@ -1,44 +1,82 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label('Add Users') }}

    - +
    +
    +

    {{ label('Add Users') }}

    + -
    -
    -
    - @csrf -
    -
    {{createText("name","name","Name",'',$editable?$data->name:'')}} -
    -
    - {{createText("email","email","Email",'',$editable?$data->email:'')}} -
    -
    - {{createText("username","username","Username",'',$editable?$data->username:'')}} -
    -
    - {{createPassword("password","Password",'',$editable?$data->password:'')}} -
    -
    {{createText("remember_token","remember_token","Remember - Token",'',$editable?$data->remember_token:'')}} -
    -
    {{createCustomSelect('tbl_roles', 'title', 'role_id', - $editable?$data->roles_id:'', 'Roles Id','roles_id', 'form-control - select2','status<>-1')}}
    -
    {{createCustomSelect('tbl_branches', 'title', 'branch_id', - $editable?$data->branches_id:'', 'Branches Id','branches_id', 'form-control - select2','status<>-1')}}
    - -
    {{createCustomSelect('tbl_employees', 'title', 'employee_id', - $editable?$data->employees_id:'', 'employees Id','employees_id', 'form-control - select2','status<>-1')}}
    -
    - - -
    - -
    -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('name', 'name', 'Name', '', $editable ? $data->name : '') }} +
    +
    + {{ createText('email', 'email', 'Email', '', $editable ? $data->email : '') }} +
    +
    + {{ createText('username', 'username', 'Username', '', $editable ? $data->username : '') }} +
    +
    + {{ createPassword('password', 'Password', '', $editable ? $data->password : '') }} +
    +
    + {{ createText( + 'remember_token', + 'remember_token', + "Remember + Token", + '', + $editable ? $data->remember_token : '', + ) }} +
    +
    + {{ createCustomSelect( + 'tbl_roles', + 'title', + 'role_id', + $editable ? $data->roles_id : '', + 'Roles Id', + 'roles_id', + 'form-control + select2', + 'status<>-1', + ) }} +
    +
    + {{ createCustomSelect( + 'tbl_branches', + 'title', + 'branch_id', + $editable ? $data->branches_id : '', + 'Branches Id', + 'branches_id', + 'form-control + select2', + 'status<>-1', + ) }} +
    + +
    + {{ createCustomSelect( + 'tbl_employees', + 'title', + 'employee_id', + $editable ? $data->employees_id : '', + 'employees Id', + 'employees_id', + 'form-control + select2', + 'status<>-1', + ) }} +
    +
    + + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/users/index.blade.php b/resources/views/crud/generated/users/index.blade.php index a81d19f..092c002 100644 --- a/resources/views/crud/generated/users/index.blade.php +++ b/resources/views/crud/generated/users/index.blade.php @@ -1,273 +1,304 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') - - - -
    +
    -
    -
    -

    {{ label("Create User") }}

    -
    -
    -
    - @csrf -
    -
    {{createText("name","name","Name",'',$editable?$data->name:'')}} -
    -
    - {{createText("email","email","Email",'',$editable?$data->email:'')}} -
    -
    - {{createText("username","username","Username",'',$editable?$data->username:'')}} -
    -
    - {{createPassword("password","Password",'',$editable?$data->password:'')}} -
    - -
    {{createCustomSelect('tbl_roles', 'title', 'role_id', - $editable?$data->roles_id:'', 'Roles Id','roles_id', 'form-control - select2','status<>-1')}}
    -
    {{createCustomSelect('tbl_branches', 'title', 'branch_id', - $editable?$data->branches_id:'', 'Branches Id','branches_id', 'form-control - select2','status<>-1')}}
    - -
    {{createCustomSelect('tbl_employees', 'title', 'employee_id', - $editable?$data->employees_id:'', 'employees Id','employees_id', 'form-control - select2','status<>-1')}}
    -
    - - -
    -
    -
    -
    +
    +
    +

    {{ label('Create User') }}

    +
    +
    + @csrf +
    +
    {{ createText('name', 'name', 'Name', '', $editable ? $data->name : '') }} +
    +
    + {{ createText('email', 'email', 'Email', '', $editable ? $data->email : '') }} +
    +
    + {{ createText('username', 'username', 'Username', '', $editable ? $data->username : '') }} +
    +
    + {{ createPassword('password', 'Password', '', $editable ? $data->password : '') }} +
    + +
    + {{ createCustomSelect( + 'tbl_roles', + 'title', + 'role_id', + $editable ? $data->roles_id : '', + 'Roles Id', + 'roles_id', + 'form-control + select2', + 'status<>-1', + ) }} +
    +
    + {{ createCustomSelect( + 'tbl_branches', + 'title', + 'branch_id', + $editable ? $data->branches_id : '', + 'Branches Id', + 'branches_id', + 'form-control + select2', + 'status<>-1', + ) }} +
    + +
    + {{ createCustomSelect( + 'tbl_employees', + 'title', + 'employee_id', + $editable ? $data->employees_id : '', + 'employees Id', + 'employees_id', + 'form-control + select2', + 'status<>-1', + ) }} +
    +
    + + +
    +
    +
    +
    +
    -
    -
    -

    {{ label("Users List") }}

    - -
    -
    - - - - - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - "> - - - - - - - - @endforeach - -
    {{label("Sn.")}}{{ label("Name") }}{{ label("Email") }}{{ label("User Name") }}{{ label("Role") }}{{ label("Branch") }}{{ label("Employee") }}{{ label("Action") - }} -
    {{ $i++ }}{{ $item->name }}{{ $item->email }}{{ $item->username }}{!! getFieldData("tbl_roles", "title", "role_id", $item->roles_id) !!} - {!! getFieldData("tbl_branches", "title", "branch_id", $item->branches_id) !!} - - {!! getFieldData("tbl_employees", "title", "employee_id", $item->employees_id) !!} - - -
    -
    +
    +
    +

    {{ label('Users List') }}

    +
    +
    + + + + + + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + + + + @endforeach + +
    {{ label('Sn.') }}{{ label('Name') }}{{ label('Email') }}{{ label('User Name') }}{{ label('Role') }}{{ label('Branch') }}{{ label('Employee') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->name }}{{ $item->email }}{{ $item->username }}{!! getFieldData('tbl_roles', 'title', 'role_id', $item->roles_id) !!} + {!! getFieldData('tbl_branches', 'title', 'branch_id', $item->branches_id) !!} + + {!! getFieldData('tbl_employees', 'title', 'employee_id', $item->employees_id) !!} + + +
    +
    +
    -
    - +
    @endsection -@push("css") - - +@push('css') + + @endpush -@push("js") - - - - - - - - + + + + + + + -@endpush \ No newline at end of file + }); + }); + + function confirmDelete(url) { + event.preventDefault(); + Swal.fire({ + title: 'Are you sure?', + text: 'You will not be able to recover this item!', + icon: 'warning', + showCancelButton: true, + confirmButtonText: 'Delete', + cancelButtonText: 'Cancel', + reverseButtons: true + }).then((result) => { + if (result.isConfirmed) { + $.ajax({ + url: url, + type: 'DELETE', + headers: { + 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') + }, + success: function(response) { + Swal.fire('Deleted!', 'The item has been deleted.', 'success'); + location.reload(); + }, + error: function(xhr, status, error) { + Swal.fire('Error!', 'An error occurred while deleting the item.', 'error'); + } + }); + } + }); + } + + function confirmToggle(url) { + event.preventDefault(); + Swal.fire({ + title: 'Are you sure?', + text: 'Publish Status of Item will be changed!! if Unpublished, links will be dead!', + icon: 'warning', + showCancelButton: true, + confirmButtonText: 'Proceed', + cancelButtonText: 'Cancel', + reverseButtons: true + }).then((result) => { + if (result.isConfirmed) { + $.ajax({ + url: url, + type: 'GET', + headers: { + 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') + }, + success: function(response) { + Swal.fire('Updated!', 'Publishing Status has been updated.', 'success'); + location.reload(); + }, + error: function(xhr, status, error) { + Swal.fire('Error!', 'An error occurred.', 'error'); + } + }); + } + }); + } + +@endpush diff --git a/resources/views/crud/generated/users/show.blade.php b/resources/views/crud/generated/users/show.blade.php index d2e3681..196685e 100644 --- a/resources/views/crud/generated/users/show.blade.php +++ b/resources/views/crud/generated/users/show.blade.php @@ -1,29 +1,39 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Name :     {{$data->name}}

    Email :     {{$data->email}}

    Username :     {{$data->username}}

    Email Verified At :     {{$data->email_verified_at}}

    Password :     {{$data->password}}

    Remember Token :     {{$data->remember_token}}

    Display Order :     {{$data->display_order}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Name :     {{ $data->name }}

    +

    Email :     {{ $data->email }}

    +

    Username :     {{ $data->username }}

    +

    Email Verified At :     {{ $data->email_verified_at }}

    +

    Password :     {{ $data->password }}

    +

    Remember Token :     {{ $data->remember_token }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/vendors/edit.blade.php b/resources/views/crud/generated/vendors/edit.blade.php index 238523f..32b5f60 100644 --- a/resources/views/crud/generated/vendors/edit.blade.php +++ b/resources/views/crud/generated/vendors/edit.blade.php @@ -1,18 +1,30 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Vendors') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Vendors') }}

    + -
    -
    -
    - @csrf -
    {{createCustomSelect('tbl_vendortypes', 'title', 'vendortypes_id', $editable?$data->vendortypes_id:'', 'Vendortypes Id','vendortypes_id', 'form-control select2','status<>-1')}}
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createTextarea("description","description ckeditor-classic","Description",$editable?$data->description:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    + {{ createCustomSelect('tbl_vendortypes', 'title', 'vendortypes_id', $editable ? $data->vendortypes_id : '', 'Vendortypes Id', 'vendortypes_id', 'form-control select2', 'status<>-1') }} +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    + {{ createTextarea('description', 'description ckeditor-classic', 'Description', $editable ? $data->description : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/vendors/index.blade.php b/resources/views/crud/generated/vendors/index.blade.php index eaf011f..d727efc 100644 --- a/resources/views/crud/generated/vendors/index.blade.php +++ b/resources/views/crud/generated/vendors/index.blade.php @@ -1,185 +1,193 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Vendors List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Vendors List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("vendortypes") }}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }} -{!! getFieldData("tbl_vendortypes", "title", "vendortypes_id", $item->vendortypes_id) !!} -{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + + -
    {{ label('Sn.') }}{{ label('vendortypes') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }} + {!! getFieldData('tbl_vendortypes', 'title', 'vendortypes_id', $item->vendortypes_id) !!} + {{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/vendors/show.blade.php b/resources/views/crud/generated/vendors/show.blade.php index ef24c50..4941807 100644 --- a/resources/views/crud/generated/vendors/show.blade.php +++ b/resources/views/crud/generated/vendors/show.blade.php @@ -1,29 +1,38 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Vendortypes Id :     {{$data->vendortypes_id}}

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Description :     {{$data->description}}

    Display Order :     {{$data->display_order}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Vendortypes Id :     {{ $data->vendortypes_id }}

    +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Description :     {{ $data->description }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/vendortypes/edit.blade.php b/resources/views/crud/generated/vendortypes/edit.blade.php index b44a2f1..eb953c2 100644 --- a/resources/views/crud/generated/vendortypes/edit.blade.php +++ b/resources/views/crud/generated/vendortypes/edit.blade.php @@ -1,18 +1,27 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Vendortypes') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Vendortypes') }}

    + -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createTextarea("description","description ckeditor-classic","Description",$editable?$data->description:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    + {{ createTextarea('description', 'description ckeditor-classic', 'Description', $editable ? $data->description : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/vendortypes/index.blade.php b/resources/views/crud/generated/vendortypes/index.blade.php index 69be60e..eda7f9e 100644 --- a/resources/views/crud/generated/vendortypes/index.blade.php +++ b/resources/views/crud/generated/vendortypes/index.blade.php @@ -1,182 +1,190 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Vendortypes List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Vendortypes List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + -
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/vendortypes/show.blade.php b/resources/views/crud/generated/vendortypes/show.blade.php index 3000eaa..696aeba 100644 --- a/resources/views/crud/generated/vendortypes/show.blade.php +++ b/resources/views/crud/generated/vendortypes/show.blade.php @@ -1,29 +1,37 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Description :     {{$data->description}}

    Display Order :     {{$data->display_order}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Description :     {{ $data->description }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/generated/workoptions/edit.blade.php b/resources/views/crud/generated/workoptions/edit.blade.php index 86489e0..f2d0a62 100644 --- a/resources/views/crud/generated/workoptions/edit.blade.php +++ b/resources/views/crud/generated/workoptions/edit.blade.php @@ -1,17 +1,24 @@ -@extends('backend.template') - @section('content') -
    -
    -

    {{ label('Add Workoptions') }}

    - +@extends('layouts.app') +@section('content') +
    +
    +

    {{ label('Add Workoptions') }}

    + -
    -
    -
    - @csrf -
    {{createText("title","title","Title",'',$editable?$data->title:'')}} -
    {{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}} -
    - -
    -@endsection \ No newline at end of file +
    +
    +
    + @csrf +
    +
    {{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }} +
    +
    {{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }} +
    +
    + +
    + +
    +
    +@endsection diff --git a/resources/views/crud/generated/workoptions/index.blade.php b/resources/views/crud/generated/workoptions/index.blade.php index 43ca96b..e10ed56 100644 --- a/resources/views/crud/generated/workoptions/index.blade.php +++ b/resources/views/crud/generated/workoptions/index.blade.php @@ -1,182 +1,190 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    -
    -

    {{ label("Workoptions List") }}

    - {{label("Create New")}} -
    -
    - - - - - - - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - - "> - - - - +
    +
    +

    {{ label('Workoptions List') }}

    + {{ label('Create New') }} +
    +
    +
    {{label("Sn.")}}{{ label("title") }}{{ label("alias") }}{{ label("Action") }} -
    {{ $i++ }}{{ $item->title }} -
    - {{ $item->alias }} - -
    - change alias -
    - - - -
    + + + + + + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + + + + + -
    {{ label('Sn.') }}{{ label('title') }}{{ label('alias') }}{{ label('Action') }} +
    {{ $i++ }}{{ $item->title }} +
    + {{ $item->alias }} + +
    + change alias +
    +
    + +
  • + + {{ label('Delete') }} + - -
  • -
    + + +
    - @endsection - -@push("css") - - + + + + @endforeach + + + + + +
    +
    +@endsection + +@push('css') + + @endpush -@push("js") - - - - - - - +@push('js') + + + + + + + - - - + }); + } + @endpush - \ No newline at end of file diff --git a/resources/views/crud/generated/workoptions/show.blade.php b/resources/views/crud/generated/workoptions/show.blade.php index 959b64f..4779603 100644 --- a/resources/views/crud/generated/workoptions/show.blade.php +++ b/resources/views/crud/generated/workoptions/show.blade.php @@ -1,29 +1,36 @@ -@extends('backend.template') - @section('content') -
    -
    -

    - +@extends('layouts.app') +@section('content') +
    +
    +

    + -
    -
    - - - -

    Title :     {{$data->title}}

    Alias :     {{$data->alias}}

    Status :     {{$data->status == 1 ? 'Active' : 'Inactive'}}

    Remarks :     {{$data->remarks}}

    Display Order :     {{$data->display_order}}

    Createdby :     {{$data->createdby}}

    Updatedby :     {{$data->updatedby}}

    -
    -

    Created On :   {{$data->created_at}}

    -

    Created By :   {{$data->createdBy}}

    -
    -
    -

    Updated On :   {{$data->updated_at}}

    -

    Updated By :   {{$data->updatedBy}}

    - -
    - -
    +
    + + + +

    Title :     {{ $data->title }}

    +

    Alias :     {{ $data->alias }}

    +

    Status :     {{ $data->status == 1 ? 'Active' : 'Inactive' }} +

    +

    Remarks :     {{ $data->remarks }}

    +

    Display Order :     {{ $data->display_order }}

    +

    Createdby :     {{ $data->createdby }}

    +

    Updatedby :     {{ $data->updatedby }}

    +
    +
    +

    Created On :   {{ $data->created_at }}

    +

    Created By :   {{ $data->createdBy }}

    - -@endSection \ No newline at end of file +
    +

    Updated On :   {{ $data->updated_at }}

    +

    Updated By :   {{ $data->updatedBy }}

    + +
    +
    + +
    +
    +@endSection diff --git a/resources/views/crud/settings/ajax-curd.blade.php b/resources/views/crud/settings/ajax-curd.blade.php index 6f4b8f9..672d057 100644 --- a/resources/views/crud/settings/ajax-curd.blade.php +++ b/resources/views/crud/settings/ajax-curd.blade.php @@ -2,62 +2,62 @@ use App\Http\Controllers\GeneralFormController; ?> -@extends("backend.template") -@section("content") - -
    +@extends('layouts.app') +@section('content') +
    -
    -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    + +
    +
    + + + +
    +
    -
    -@endsection \ No newline at end of file +
    +@endsection diff --git a/resources/views/crud/template.blade.php b/resources/views/crud/template.blade.php index cb1df3b..49ca3e9 100644 --- a/resources/views/crud/template.blade.php +++ b/resources/views/crud/template.blade.php @@ -1,41 +1,42 @@ -@extends('backend.template') +@extends('layouts.app') @section('content') -
    +
    - {{ label($title . ' List') }} + {{ label($title . ' List') }} - +
    - - - - - {{ $tableHeader }} - - - - - @php - $i = 1; - @endphp - @foreach ($data as $item) - {{ $tableRows }} - @endforeach - -
    S.N.{{ label('Action') }}
    + + + + + {{ $tableHeader }} + + + + + @php + $i = 1; + @endphp + @foreach ($data as $item) + {{ $tableRows }} + @endforeach + +
    S.N.{{ label('Action') }}
    -
    -@endsection \ No newline at end of file +
    +@endsection diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index c69fe29..a22e6c8 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -106,39 +106,39 @@ - - - - - + {{-- --}} + {{-- --}} + {{-- --}} + {{-- --}} + {{-- --}} - + {{-- - + --}} - + {{-- --}} - + {{-- --}} - + {{-- --}} - - + {{-- + --}} diff --git a/resources/views/layouts/partials/breadcrumb.blade.php b/resources/views/layouts/partials/breadcrumb.blade.php new file mode 100644 index 0000000..35585ae --- /dev/null +++ b/resources/views/layouts/partials/breadcrumb.blade.php @@ -0,0 +1,15 @@ +
    +
    +
    +

    {{ $title }}

    + +
    + +
    + +
    +
    +
    diff --git a/resources/views/layouts/partials/header.blade.php b/resources/views/layouts/partials/header.blade.php index 4d10e30..5dc0635 100644 --- a/resources/views/layouts/partials/header.blade.php +++ b/resources/views/layouts/partials/header.blade.php @@ -449,26 +449,12 @@ Profile - Messages - Taskboard - Help - - Balance - : $5971.67 + New Settings - Lock - screen +
    diff --git a/routes/CRUDgenerated/route.users.php b/routes/CRUDgenerated/route.users.php index 8167adf..6cb936a 100644 --- a/routes/CRUDgenerated/route.users.php +++ b/routes/CRUDgenerated/route.users.php @@ -1,15 +1,16 @@ group(function () { - Route::get('/', [UsersController::class, 'index'])->name('users.index'); - Route::get('/create', [UsersController::class, 'create'])->name('users.create'); - Route::post('/store', [UsersController::class, 'store'])->name('users.store'); - Route::post('/sort', [UsersController::class, 'sort'])->name('users.sort'); - Route::post('/updatealias', [UsersController::class, 'updatealias'])->name('users.updatealias'); - Route::get('/show/{id}', [UsersController::class, 'show'])->name('users.show'); - Route::get('/edit/{id}', [UsersController::class, 'edit'])->name('users.edit') ; - Route::post('/update/{id}', [UsersController::class, 'update'])->name('users.update'); - Route::delete('/destroy/{id}', [UsersController::class, 'destroy'])->name('users.destroy'); - Route::get('/toggle/{id}', [UsersController::class, 'toggle'])->name('users.toggle'); - }); \ No newline at end of file + Route::get('/', [UsersController::class, 'index'])->name('users.index'); + Route::get('/create', [UsersController::class, 'create'])->name('users.create'); + Route::post('/store', [UsersController::class, 'store'])->name('users.store'); + Route::post('/sort', [UsersController::class, 'sort'])->name('users.sort'); + Route::post('/updatealias', [UsersController::class, 'updatealias'])->name('users.updatealias'); + Route::get('/show/{id}', [UsersController::class, 'show'])->name('users.show'); + // Route::get('/edit/{id}', [UsersController::class, 'edit'])->name('users.edit') ; + Route::post('/update/{id}', [UsersController::class, 'update'])->name('users.update'); + Route::delete('/destroy/{id}', [UsersController::class, 'destroy'])->name('users.destroy'); + Route::get('/toggle/{id}', [UsersController::class, 'toggle'])->name('users.toggle'); +}); diff --git a/routes/web.php b/routes/web.php index 6b07195..0b347d9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -32,13 +32,13 @@ Route::get('/initialize-db', function () { OMIS::initDB(); }); -require __DIR__ . '/route.client.php'; +// require __DIR__ . '/route.client.php'; Route::middleware('auth')->group(function () { - require __DIR__ . '/route.users.php'; - require __DIR__ . '/route.roles.php'; - require __DIR__ . '/route.rolepermissions.php'; - require __DIR__ . '/route.settings.php'; - require __DIR__ . '/route.form.php'; + // require __DIR__ . '/CRUDgenerated/route.users.php'; + // require __DIR__ . '/route.roles.php'; + // require __DIR__ . '/route.rolepermissions.php'; + // require __DIR__ . '/route.settings.php'; + // require __DIR__ . '/route.form.php'; require __DIR__ . '/CRUDgenerated/route.countries.php'; require __DIR__ . '/CRUDgenerated/route.companytypes.php'; @@ -58,14 +58,14 @@ Route::middleware('auth')->group(function () { require __DIR__ . '/CRUDgenerated/route.ethnicities.php'; require __DIR__ . '/CRUDgenerated/route.dags.php'; - require __DIR__ . '/CRUDgenerated/route.employees.php'; + // require __DIR__ . '/CRUDgenerated/route.employees.php'; require __DIR__ . '/CRUDgenerated/route.onboardings.php'; require __DIR__ . '/CRUDgenerated/route.departments.php'; require __DIR__ . '/CRUDgenerated/route.designations.php'; require __DIR__ . '/CRUDgenerated/route.shifts.php'; require __DIR__ . '/CRUDgenerated/route.workoptions.php'; - require __DIR__ . '/CRUDgenerated/route.leavetypes.php'; - require __DIR__ . '/CRUDgenerated/route.leaves.php'; + // require __DIR__ . '/CRUDgenerated/route.leavetypes.php'; + // require __DIR__ . '/CRUDgenerated/route.leaves.php'; }); diff --git a/server.php b/server.php new file mode 100644 index 0000000..5fb6379 --- /dev/null +++ b/server.php @@ -0,0 +1,21 @@ + + */ + +$uri = urldecode( + parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) +); + +// This file allows us to emulate Apache's "mod_rewrite" functionality from the +// built-in PHP web server. This provides a convenient way to test a Laravel +// application without having installed a "real" web server software here. +if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { + return false; +} + +require_once __DIR__.'/public/index.php';