diff --git a/Modules/Admin/app/Http/Controllers/CompanyController.php b/Modules/Admin/app/Http/Controllers/CompanyController.php new file mode 100644 index 0000000..cfa3519 --- /dev/null +++ b/Modules/Admin/app/Http/Controllers/CompanyController.php @@ -0,0 +1,114 @@ +companyRepository = $companyRepository; + $this->adminService = $adminService; + } + /** + * Display a listing of the resource. + */ + public function index() + { + $data['title'] = 'Company Lists'; + $data['companyLists'] = $this->companyRepository->findAll(); + return view('admin::companies.index', $data); + } + + /** + * Show the form for creating a new resource. + */ + public function create() + { + $data['title'] = 'Create Companys'; + $data['editable'] = false; + $data['companyTypeLists'] = $this->adminService->pluckCompanyTypes(); + return view('admin::companies.create', $data); + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request): RedirectResponse + { + try { + $this->companyRepository->create($request->all()); + toastr()->success('Company Created Successfully'); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('company.index'); + } + + /** + * Show the specified resource. + */ + public function show($id) + { + return view('admin::companies.show'); + } + + /** + * Show the form for editing the specified resource. + */ + public function edit($id) + { + try { + $data['title'] = 'Edit Company'; + $data['editable'] = true; + $data['companyTypeLists'] = $this->adminService->pluckCompanyTypes(); + $data['company'] = $this->companyRepository->getCompanyById($id); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + + return view('admin::companies.edit', $data); + + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, $id): RedirectResponse + { + try { + + $this->companyRepository->update($id, $request->all()); + toastr()->success('Company Updated Successfully'); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('company.index'); + } + + /** + * Remove the specified resource from storage. + */ + public function destroy($id) + { + try { + $this->companyRepository->delete($id); + toastr()->success('Company Deleted Successfully'); + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('company.index'); + } +} diff --git a/Modules/Admin/app/Http/Controllers/CompanyTypeController.php b/Modules/Admin/app/Http/Controllers/CompanyTypeController.php new file mode 100644 index 0000000..7037340 --- /dev/null +++ b/Modules/Admin/app/Http/Controllers/CompanyTypeController.php @@ -0,0 +1,109 @@ +companyTypeRepository = $companyTypeRepository; + } + /** + * Display a listing of the resource. + */ + public function index() + { + $data['title'] = 'Company Type Lists'; + $data['companyTypeLists'] = $this->companyTypeRepository->findAll(); + return view('admin::companytypes.index', $data); + } + + /** + * Show the form for creating a new resource. + */ + public function create() + { + $data['title'] = 'Create Company Type'; + $data['editable'] = false; + return view('admin::companytypes.create', $data); + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request): RedirectResponse + { + try { + $this->companyTypeRepository->create($request->all()); + toastr()->success('Company Type Created Successfully'); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('companyType.index'); + } + + /** + * Show the specified resource. + */ + public function show($id) + { + return view('admin::companytypes.show'); + } + + /** + * Show the form for editing the specified resource. + */ + public function edit($id) + { + try { + $data['title'] = 'Edit Company Type'; + $data['editable'] = true; + $data['companyType'] = $this->companyTypeRepository->getCompanyById($id); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + + return view('admin::companytypes.edit', $data); + + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, $id): RedirectResponse + { + try { + + $this->companyTypeRepository->update($id, $request->all()); + toastr()->success('Company Updated Successfully'); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('company.index'); + } + + /** + * Remove the specified resource from storage. + */ + public function destroy($id) + { + try { + $this->companyTypeRepository->delete($id); + toastr()->success('Company Type Deleted Successfully'); + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('companyType.index'); + } +} diff --git a/Modules/Admin/app/Http/Controllers/ComplaintController.php b/Modules/Admin/app/Http/Controllers/ComplaintController.php new file mode 100644 index 0000000..979f3c7 --- /dev/null +++ b/Modules/Admin/app/Http/Controllers/ComplaintController.php @@ -0,0 +1,109 @@ +complaintRepository = $complaintRepository; + } + /** + * Display a listing of the resource. + */ + public function index() + { + $data['title'] = 'Complaint Lists'; + $data['complaintLists'] = $this->complaintRepository->findAll(); + return view('admin::complaints.index', $data); + } + + /** + * Show the form for creating a new resource. + */ + public function create() + { + $data['title'] = 'Create Complaints'; + $data['editable'] = false; + return view('admin::complaints.create', $data); + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request): RedirectResponse + { + try { + $this->complaintRepository->create($request->all()); + toastr()->success('Complaint Created Successfully'); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('complaint.index'); + } + + /** + * Show the specified resource. + */ + public function show($id) + { + return view('admin::complaints.show'); + } + + /** + * Show the form for editing the specified resource. + */ + public function edit($id) + { + try { + $data['title'] = 'Edit Complaints'; + $data['editable'] = true; + $data['complaint'] = $this->complaintRepository->getComplaintById($id); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + + return view('admin::complaints.edit', $data); + + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, $id): RedirectResponse + { + try { + + $this->complaintRepository->update($id, $request->all()); + toastr()->success('Complaint Updated Successfully'); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('complaint.index'); + } + + /** + * Remove the specified resource from storage. + */ + public function destroy($id) + { + try { + $this->complaintRepository->delete($id); + toastr()->success('Complaint Deleted Successfully'); + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('complaint.index'); + } +} diff --git a/Modules/Admin/app/Http/Controllers/TransferController.php b/Modules/Admin/app/Http/Controllers/TransferController.php new file mode 100644 index 0000000..a86157a --- /dev/null +++ b/Modules/Admin/app/Http/Controllers/TransferController.php @@ -0,0 +1,109 @@ +transferRepository = $transferRepository; + } + /** + * Display a listing of the resource. + */ + public function index() + { + $data['title'] = 'Transfer Lists'; + $data['transferLists'] = $this->transferRepository->findAll(); + return view('admin::transfers.index', $data); + } + + /** + * Show the form for creating a new resource. + */ + public function create() + { + $data['title'] = 'Create Transfers'; + $data['editable'] = false; + return view('admin::transfers.create', $data); + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request): RedirectResponse + { + try { + $this->transferRepository->create($request->all()); + toastr()->success('Transfer Created Successfully'); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('transfer.index'); + } + + /** + * Show the specified resource. + */ + public function show($id) + { + return view('admin::transfers.show'); + } + + /** + * Show the form for editing the specified resource. + */ + public function edit($id) + { + try { + $data['title'] = 'Edit Transfers'; + $data['editable'] = true; + $data['transfer'] = $this->transferRepository->getTransferById($id); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + + return view('admin::transfers.edit', $data); + + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, $id): RedirectResponse + { + try { + + $this->transferRepository->update($id, $request->all()); + toastr()->success('Transfer Updated Successfully'); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('transfer.index'); + } + + /** + * Remove the specified resource from storage. + */ + public function destroy($id) + { + try { + $this->transferRepository->delete($id); + toastr()->success('Transfer Deleted Successfully'); + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('transfer.index'); + } +} diff --git a/Modules/Admin/app/Http/Controllers/WarningController.php b/Modules/Admin/app/Http/Controllers/WarningController.php new file mode 100644 index 0000000..b4e55ef --- /dev/null +++ b/Modules/Admin/app/Http/Controllers/WarningController.php @@ -0,0 +1,109 @@ +warningRepository = $warningRepository; + } + /** + * Display a listing of the resource. + */ + public function index() + { + $data['title'] = 'Warning Lists'; + $data['warningLists'] = $this->warningRepository->findAll(); + return view('admin::warnings.index', $data); + } + + /** + * Show the form for creating a new resource. + */ + public function create() + { + $data['title'] = 'Create Warnings'; + $data['editable'] = false; + return view('admin::warnings.create', $data); + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request): RedirectResponse + { + try { + $this->warningRepository->create($request->all()); + toastr()->success('Warning Created Successfully'); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('warning.index'); + } + + /** + * Show the specified resource. + */ + public function show($id) + { + return view('admin::warnings.show'); + } + + /** + * Show the form for editing the specified resource. + */ + public function edit($id) + { + try { + $data['title'] = 'Edit Warnings'; + $data['editable'] = true; + $data['warning'] = $this->warningRepository->getWarningById($id); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + + return view('admin::warnings.edit', $data); + + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, $id): RedirectResponse + { + try { + + $this->warningRepository->update($id, $request->all()); + toastr()->success('Warning Updated Successfully'); + + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('warning.index'); + } + + /** + * Remove the specified resource from storage. + */ + public function destroy($id) + { + try { + $this->warningRepository->delete($id); + toastr()->success('Warning Deleted Successfully'); + } catch (\Throwable $th) { + toastr()->error($th->getMessage()); + } + return redirect()->route('warning.index'); + } +} diff --git a/Modules/Admin/app/Models/Company.php b/Modules/Admin/app/Models/Company.php new file mode 100644 index 0000000..64b2b69 --- /dev/null +++ b/Modules/Admin/app/Models/Company.php @@ -0,0 +1,28 @@ +update($newDetails); + } + +} diff --git a/Modules/Admin/app/Repositories/CompanyTypeInterface.php b/Modules/Admin/app/Repositories/CompanyTypeInterface.php new file mode 100644 index 0000000..8b96f2c --- /dev/null +++ b/Modules/Admin/app/Repositories/CompanyTypeInterface.php @@ -0,0 +1,12 @@ +update($newDetails); + } + +} diff --git a/Modules/Admin/app/Repositories/ComplaintInterface.php b/Modules/Admin/app/Repositories/ComplaintInterface.php new file mode 100644 index 0000000..8b3c8ac --- /dev/null +++ b/Modules/Admin/app/Repositories/ComplaintInterface.php @@ -0,0 +1,12 @@ +update($newDetails); + } + +} diff --git a/Modules/Admin/app/Repositories/PromotionDemotionInterface.php b/Modules/Admin/app/Repositories/PromotionDemotionInterface.php index e6781f6..ffa7bc8 100644 --- a/Modules/Admin/app/Repositories/PromotionDemotionInterface.php +++ b/Modules/Admin/app/Repositories/PromotionDemotionInterface.php @@ -7,6 +7,6 @@ interface PromotionDemotionInterface public function findAll(); public function getPromotionDemotionById($promotionDemotionId); public function delete($promotionDemotionId); - public function create(array $PromotionDemotionDetails); + public function create(array $promotionDemotionDetails); public function update($promotionDemotionId, array $newDetails); } diff --git a/Modules/Admin/app/Repositories/ResignationInterface.php b/Modules/Admin/app/Repositories/ResignationInterface.php index 1e806e8..0403595 100644 --- a/Modules/Admin/app/Repositories/ResignationInterface.php +++ b/Modules/Admin/app/Repositories/ResignationInterface.php @@ -7,6 +7,6 @@ interface ResignationInterface public function findAll(); public function getResignationById($resignationId); public function delete($resignationId); - public function create(array $ResignationDetails); + public function create(array $resignationDetails); public function update($resignationId, array $newDetails); } diff --git a/Modules/Admin/app/Repositories/TransferInterface.php b/Modules/Admin/app/Repositories/TransferInterface.php new file mode 100644 index 0000000..b662d16 --- /dev/null +++ b/Modules/Admin/app/Repositories/TransferInterface.php @@ -0,0 +1,12 @@ +update($newDetails); + } + +} diff --git a/Modules/Admin/app/Repositories/WarningInterface.php b/Modules/Admin/app/Repositories/WarningInterface.php new file mode 100644 index 0000000..ba78fab --- /dev/null +++ b/Modules/Admin/app/Repositories/WarningInterface.php @@ -0,0 +1,12 @@ +update($newDetails); + } + +} diff --git a/Modules/Admin/app/Services/AdminService.php b/Modules/Admin/app/Services/AdminService.php index 884d222..bd3c3a4 100644 --- a/Modules/Admin/app/Services/AdminService.php +++ b/Modules/Admin/app/Services/AdminService.php @@ -3,6 +3,7 @@ namespace Modules\Admin\Services; use Modules\Admin\Models\Castes; use Modules\Admin\Models\Cities; +use Modules\Admin\Models\CompanyType; use Modules\Admin\Models\Country; use Modules\Admin\Models\Departments; use Modules\Admin\Models\Designations; @@ -18,6 +19,11 @@ final class AdminService return Country::pluck('title', 'country_id'); } + function pluckCompanyTypes() + { + return CompanyType::pluck('title', 'company_type_id'); + } + function pluckProvinces() { return Province::pluck('title', 'province_id'); diff --git a/Modules/Admin/database/migrations/2024_04_14_080050_create_promotion_demotions_table.php b/Modules/Admin/database/migrations/2024_04_14_080050_create_promotion_demotions_table.php index 4b535ae..06cf576 100644 --- a/Modules/Admin/database/migrations/2024_04_14_080050_create_promotion_demotions_table.php +++ b/Modules/Admin/database/migrations/2024_04_14_080050_create_promotion_demotions_table.php @@ -18,8 +18,8 @@ return new class extends Migration { $table->unsignedBigInteger('old_designation_id')->nullable(); $table->unsignedBigInteger('new_designation_id')->nullable(); $table->unsignedBigInteger('type')->nullable(); - $table->unsignedBigInteger('status')->nullable(); $table->date('date')->nullable(); + $table->integer('status')->nullable(); $table->mediumText('description')->nullable(); $table->mediumText('remarks')->nullable(); $table->unsignedBigInteger('createdBy')->nullable(); diff --git a/Modules/Admin/database/migrations/2024_04_14_105508_create_appreciations_table.php b/Modules/Admin/database/migrations/2024_04_14_105508_create_appreciations_table.php index b1420df..d526eab 100644 --- a/Modules/Admin/database/migrations/2024_04_14_105508_create_appreciations_table.php +++ b/Modules/Admin/database/migrations/2024_04_14_105508_create_appreciations_table.php @@ -18,7 +18,7 @@ return new class extends Migration { $table->unsignedBigInteger('employee_id')->nullable(); $table->unsignedBigInteger('appreciated_by')->nullable(); $table->date('appreciated_date')->nullable(); - $table->unsignedBigInteger('status')->nullable(); + $table->integer('status')->nullable(); $table->mediumText('description')->nullable(); $table->mediumText('remarks')->nullable(); $table->unsignedBigInteger('createdBy')->nullable(); diff --git a/Modules/Admin/database/migrations/2024_04_14_115955_create_resignations_table.php b/Modules/Admin/database/migrations/2024_04_14_115955_create_resignations_table.php index 468722c..0a3e1ac 100644 --- a/Modules/Admin/database/migrations/2024_04_14_115955_create_resignations_table.php +++ b/Modules/Admin/database/migrations/2024_04_14_115955_create_resignations_table.php @@ -18,7 +18,7 @@ return new class extends Migration { $table->unsignedBigInteger('approved_by')->nullable(); $table->mediumText('description')->nullable(); $table->mediumText('remarks')->nullable(); - $table->unsignedBigInteger('status')->nullable(); + $table->integer('status')->nullable(); $table->unsignedBigInteger('createdBy')->nullable(); $table->unsignedBigInteger('updatedBy')->nullable(); $table->timestamps(); diff --git a/Modules/Admin/database/migrations/2024_04_15_054639_create_complaints_table.php b/Modules/Admin/database/migrations/2024_04_15_054639_create_complaints_table.php new file mode 100644 index 0000000..cd35016 --- /dev/null +++ b/Modules/Admin/database/migrations/2024_04_15_054639_create_complaints_table.php @@ -0,0 +1,34 @@ +tinyInteger('complaint_id')->unsigned()->autoIncrement(); + $table->unsignedBigInteger('employee_id')->nullable(); + $table->date('complaint_date')->nullable(); + $table->unsignedBigInteger('complaint_by')->nullable(); + $table->mediumText('description')->nullable(); + $table->mediumText('remarks')->nullable(); + $table->integer('status')->nullable(); + $table->unsignedBigInteger('createdBy')->nullable(); + $table->unsignedBigInteger('updatedBy')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('tbl_complaints'); + } +}; diff --git a/Modules/Admin/database/migrations/2024_04_15_061721_create_transfers_table.php b/Modules/Admin/database/migrations/2024_04_15_061721_create_transfers_table.php new file mode 100644 index 0000000..e385d42 --- /dev/null +++ b/Modules/Admin/database/migrations/2024_04_15_061721_create_transfers_table.php @@ -0,0 +1,35 @@ +tinyInteger('transfer_id')->unsigned()->autoIncrement(); + $table->unsignedBigInteger('employee_id')->nullable(); + $table->unsignedBigInteger('old_department_id')->nullable(); + $table->unsignedBigInteger('new_department_id')->nullable(); + $table->integer('status')->nullable(); + $table->date('transfer_date')->nullable(); + $table->mediumText('description')->nullable(); + $table->mediumText('remarks')->nullable(); + $table->unsignedBigInteger('createdBy')->nullable(); + $table->unsignedBigInteger('updatedBy')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('tbl_transfers'); + } +}; diff --git a/Modules/Admin/database/migrations/2024_04_15_065950_create_warnings_table.php b/Modules/Admin/database/migrations/2024_04_15_065950_create_warnings_table.php new file mode 100644 index 0000000..64ff573 --- /dev/null +++ b/Modules/Admin/database/migrations/2024_04_15_065950_create_warnings_table.php @@ -0,0 +1,35 @@ +tinyInteger('warning_id')->unsigned()->autoIncrement(); + $table->unsignedBigInteger('employee_id')->nullable(); + $table->mediumText('subject')->nullable(); + $table->string('type')->nullable(); + $table->date('warning_date')->nullable(); + $table->mediumText('description')->nullable(); + $table->mediumText('remarks')->nullable(); + $table->integer('status')->nullable(); + $table->unsignedBigInteger('createdBy')->nullable(); + $table->unsignedBigInteger('updatedBy')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('tbl_warnings'); + } +}; diff --git a/Modules/Admin/database/migrations/2024_04_15_073007_create_companies_table.php b/Modules/Admin/database/migrations/2024_04_15_073007_create_companies_table.php new file mode 100644 index 0000000..52b9f78 --- /dev/null +++ b/Modules/Admin/database/migrations/2024_04_15_073007_create_companies_table.php @@ -0,0 +1,34 @@ +tinyInteger('company_id')->unsigned()->autoIncrement(); + $table->string('title')->nullable(); + $table->string('alias')->nullable(); + $table->unsignedBigInteger('company_type_id')->nullable(); + $table->integer('status')->nullable(); + $table->mediumText('description')->nullable(); + $table->mediumText('remarks')->nullable(); + $table->unsignedBigInteger('createdBy')->nullable(); + $table->unsignedBigInteger('updatedBy')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('tbl_companies'); + } +}; diff --git a/Modules/Admin/database/migrations/2024_04_15_073442_create_company_types_table.php b/Modules/Admin/database/migrations/2024_04_15_073442_create_company_types_table.php new file mode 100644 index 0000000..c9a8d93 --- /dev/null +++ b/Modules/Admin/database/migrations/2024_04_15_073442_create_company_types_table.php @@ -0,0 +1,34 @@ +tinyInteger('company_type_id')->unsigned()->autoIncrement(); + $table->string('title')->nullable(); + $table->string('alias')->nullable(); + $table->integer('status')->nullable(); + $table->mediumText('description')->nullable(); + $table->mediumText('remarks')->nullable(); + $table->unsignedBigInteger('createdBy')->nullable(); + $table->unsignedBigInteger('updatedBy')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('tbl_company_types'); + } +}; diff --git a/Modules/Admin/resources/views/companies/create.blade.php b/Modules/Admin/resources/views/companies/create.blade.php new file mode 100644 index 0000000..18a7c49 --- /dev/null +++ b/Modules/Admin/resources/views/companies/create.blade.php @@ -0,0 +1,23 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+ + {{ html()->form('POST')->route('company.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }} + + @include('admin::partials.companies.action') + + {{ html()->form()->close() }} + +
+
+
+ @endsection diff --git a/Modules/Admin/resources/views/companies/edit.blade.php b/Modules/Admin/resources/views/companies/edit.blade.php new file mode 100644 index 0000000..3f94d12 --- /dev/null +++ b/Modules/Admin/resources/views/companies/edit.blade.php @@ -0,0 +1,23 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+ + {{ html()->modelForm($company, 'PUT')->route('company.update', $company->company_id)->class(['needs-validation'])->attributes(['novalidate'])->open() }} + + @include('admin::partials.companies.action') + + {{ html()->form()->close() }} + +
+
+
+ @endsection diff --git a/Modules/Admin/resources/views/companies/index.blade.php b/Modules/Admin/resources/views/companies/index.blade.php new file mode 100644 index 0000000..604310f --- /dev/null +++ b/Modules/Admin/resources/views/companies/index.blade.php @@ -0,0 +1,69 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+
{{ $title }}
+ +
+
+ + + + + + + + + + + @foreach ($companyLists as $index => $item) + + + + + + @endforeach + +
S.NNameAction +
{{ $index + 1 }}{{ $item->title }} + +
+
+
+
+
+@endsection diff --git a/Modules/Admin/resources/views/companies/show.blade.php b/Modules/Admin/resources/views/companies/show.blade.php new file mode 100644 index 0000000..9ed0171 --- /dev/null +++ b/Modules/Admin/resources/views/companies/show.blade.php @@ -0,0 +1,48 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+
View Detail
+ +
+ +
+

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

+ +
+
+ +
+
+
+
+@endSection diff --git a/Modules/Admin/resources/views/companytypes/create.blade.php b/Modules/Admin/resources/views/companytypes/create.blade.php new file mode 100644 index 0000000..d18ba9c --- /dev/null +++ b/Modules/Admin/resources/views/companytypes/create.blade.php @@ -0,0 +1,23 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+ + {{ html()->form('POST')->route('companyType.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }} + + @include('admin::partials.companytypes.action') + + {{ html()->form()->close() }} + +
+
+
+ @endsection diff --git a/Modules/Admin/resources/views/companytypes/edit.blade.php b/Modules/Admin/resources/views/companytypes/edit.blade.php new file mode 100644 index 0000000..564b727 --- /dev/null +++ b/Modules/Admin/resources/views/companytypes/edit.blade.php @@ -0,0 +1,23 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+ + {{ html()->modelForm($companyType, 'PUT')->route('companyType.update', $companytype->company_type_id)->class(['needs-validation'])->attributes(['novalidate'])->open() }} + + @include('admin::partials.companytypes.action') + + {{ html()->form()->close() }} + +
+
+
+ @endsection diff --git a/Modules/Admin/resources/views/companytypes/index.blade.php b/Modules/Admin/resources/views/companytypes/index.blade.php new file mode 100644 index 0000000..4e63249 --- /dev/null +++ b/Modules/Admin/resources/views/companytypes/index.blade.php @@ -0,0 +1,69 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+
{{ $title }}
+ +
+
+ + + + + + + + + + + @foreach ($companyTypeLists as $index => $item) + + + + + + @endforeach + +
S.NNameAction +
{{ $index + 1 }}{{ $item->title }} + +
+
+
+
+
+@endsection diff --git a/Modules/Admin/resources/views/companytypes/show.blade.php b/Modules/Admin/resources/views/companytypes/show.blade.php new file mode 100644 index 0000000..9ed0171 --- /dev/null +++ b/Modules/Admin/resources/views/companytypes/show.blade.php @@ -0,0 +1,48 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+
View Detail
+ +
+ +
+

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

+ +
+
+ +
+
+
+
+@endSection diff --git a/Modules/Admin/resources/views/complaints/create.blade.php b/Modules/Admin/resources/views/complaints/create.blade.php new file mode 100644 index 0000000..a558a58 --- /dev/null +++ b/Modules/Admin/resources/views/complaints/create.blade.php @@ -0,0 +1,23 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+ + {{ html()->form('POST')->route('complaint.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }} + + @include('admin::partials.complaints.action') + + {{ html()->form()->close() }} + +
+
+
+ @endsection diff --git a/Modules/Admin/resources/views/complaints/edit.blade.php b/Modules/Admin/resources/views/complaints/edit.blade.php new file mode 100644 index 0000000..0cde18e --- /dev/null +++ b/Modules/Admin/resources/views/complaints/edit.blade.php @@ -0,0 +1,23 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+ + {{ html()->modelForm($complaint, 'PUT')->route('complaint.update', $complaint->complaint_id)->class(['needs-validation'])->attributes(['novalidate'])->open() }} + + @include('admin::partials.complaints.action') + + {{ html()->form()->close() }} + +
+
+
+ @endsection diff --git a/Modules/Admin/resources/views/complaints/index.blade.php b/Modules/Admin/resources/views/complaints/index.blade.php new file mode 100644 index 0000000..b873ef4 --- /dev/null +++ b/Modules/Admin/resources/views/complaints/index.blade.php @@ -0,0 +1,73 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+
{{ $title }}
+ +
+
+ + + + + + + + + + + + + @foreach ($complaintLists as $index => $item) + + + + + + + + @endforeach + +
S.NComplaint Againstcomplaint Bycomplaint DateAction +
{{ $index + 1 }}{{ $item->employee_id }}{{ $item->complaint_by }}{{ $item->complaint_date }} + +
+
+
+
+
+@endsection diff --git a/Modules/Admin/resources/views/complaints/show.blade.php b/Modules/Admin/resources/views/complaints/show.blade.php new file mode 100644 index 0000000..757b447 --- /dev/null +++ b/Modules/Admin/resources/views/complaints/show.blade.php @@ -0,0 +1,48 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+
View Detail
+ +
+ +
+

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

+ +
+
+ +
+
+
+
+@endSection diff --git a/Modules/Admin/resources/views/partials/companies/action.blade.php b/Modules/Admin/resources/views/partials/companies/action.blade.php new file mode 100644 index 0000000..eb04df0 --- /dev/null +++ b/Modules/Admin/resources/views/partials/companies/action.blade.php @@ -0,0 +1,26 @@ +
+ +
+ {{ html()->label('Title')->class('form-label') }} + {{ html()->text('title')->class('form-control')->placeholder('Enter Title') }} +
+ +
+ {{ html()->label('Company Type')->class('form-label') }} + {{ html()->select('company_type_id', $companyTypeLists)->class('form-select')->placeholder('Select Company Type') }} +
+ +
+ {{ html()->label('Description')->class('form-label') }} + {{ html()->textarea('description')->class('form-control')->attributes(['rows' => 5]) }} +
+ +
+ {{ html()->label('Remarks')->class('form-label') }} + {{ html()->textarea('remarks')->class('form-control')->attributes(['rows' => 5]) }} +
+ +
+ {{ html()->button($editable ? 'Update' : 'Add Company', 'submit')->class('btn btn-success') }} +
+
diff --git a/Modules/Admin/resources/views/partials/companytypes/action.blade.php b/Modules/Admin/resources/views/partials/companytypes/action.blade.php new file mode 100644 index 0000000..f99fb61 --- /dev/null +++ b/Modules/Admin/resources/views/partials/companytypes/action.blade.php @@ -0,0 +1,11 @@ +
+ +
+ {{ html()->label('Title')->class('form-label') }} + {{ html()->text('title')->class('form-control')->placeholder('Enter Title') }} +
+ +
+ {{ html()->button($editable ? 'Update' : 'Add Company Type', 'submit')->class('btn btn-success') }} +
+
diff --git a/Modules/Admin/resources/views/partials/complaints/action.blade.php b/Modules/Admin/resources/views/partials/complaints/action.blade.php new file mode 100644 index 0000000..59e5728 --- /dev/null +++ b/Modules/Admin/resources/views/partials/complaints/action.blade.php @@ -0,0 +1,33 @@ +
+ +
+ {{ html()->label('Complaint Against')->class('form-label') }} + {{ html()->select('employee_id')->class('form-select')->placeholder('Select Employee') }} +
+ + +
+ {{ html()->label('Complaint By')->class('form-label') }} + {{ html()->select('complaint_by')->class('form-select')->placeholder('Select Who Complaint') }} +
+ + +
+ {{ html()->label('Complaint Date')->class('form-label') }} + {{ html()->date('complaint_date')->class('form-control')->placeholder('Select Date') }} +
+ +
+ {{ html()->label('Description')->class('form-label') }} + {{ html()->textarea('description')->class('form-control')->attributes(['rows' => 5]) }} +
+ +
+ {{ html()->label('Remarks')->class('form-label') }} + {{ html()->textarea('remarks')->class('form-control')->attributes(['rows' => 5]) }} +
+ +
+ {{ html()->button($editable ? 'Update' : 'Add Complaint', 'submit')->class('btn btn-success') }} +
+
diff --git a/Modules/Admin/resources/views/partials/transfers/action.blade.php b/Modules/Admin/resources/views/partials/transfers/action.blade.php new file mode 100644 index 0000000..48e348a --- /dev/null +++ b/Modules/Admin/resources/views/partials/transfers/action.blade.php @@ -0,0 +1,37 @@ +
+ +
+ {{ html()->label('Employee')->class('form-label') }} + {{ html()->select('employee_id')->class('form-select')->placeholder('Select Employee') }} +
+ +
+ {{ html()->label('Department From')->class('form-label') }} + {{ html()->select('old_department_id')->class('form-select')->placeholder('Select Previous Department') }} +
+ + +
+ {{ html()->label('Department To')->class('form-label') }} + {{ html()->select('new_department_id')->class('form-select')->placeholder('Select New Department') }} +
+ +
+ {{ html()->label('Transfer Date')->class('form-label') }} + {{ html()->date('transfer_date')->class('form-control')->placeholder('Select Transfer Date') }} +
+ +
+ {{ html()->label('Description')->class('form-label') }} + {{ html()->textarea('description')->class('form-control')->attributes(['rows' => 3]) }} +
+ +
+ {{ html()->label('Remarks')->class('form-label') }} + {{ html()->textarea('remarks')->class('form-control')->attributes(['rows' => 3]) }} +
+ +
+ {{ html()->button($editable ? 'Update' : 'Add Transfer', 'submit')->class('btn btn-success') }} +
+
diff --git a/Modules/Admin/resources/views/partials/warnings/action.blade.php b/Modules/Admin/resources/views/partials/warnings/action.blade.php new file mode 100644 index 0000000..61a83fa --- /dev/null +++ b/Modules/Admin/resources/views/partials/warnings/action.blade.php @@ -0,0 +1,36 @@ +
+ +
+ {{ html()->label('Employee')->class('form-label') }} + {{ html()->select('employee_id')->class('form-select')->placeholder('Select Employee') }} +
+ +
+ {{ html()->label('Warning type')->class('form-label') }} + {{ html()->select('type')->class('form-control')->placeholder('Select Warning Type') }} +
+ +
+ {{ html()->label('Warning Date')->class('form-label') }} + {{ html()->date('warning_date')->class('form-control')->placeholder('Select Warning Date') }} +
+ +
+ {{ html()->label('Subject')->class('form-label') }} + {{ html()->text('subject')->class('form-control')->placeholder('Write Warning Suject') }} +
+ +
+ {{ html()->label('Description')->class('form-label') }} + {{ html()->textarea('description')->class('form-control')->attributes(['rows' => 3]) }} +
+ +
+ {{ html()->label('Remarks')->class('form-label') }} + {{ html()->textarea('remarks')->class('form-control')->attributes(['rows' => 3]) }} +
+ +
+ {{ html()->button($editable ? 'Update' : 'Add Warning', 'submit')->class('btn btn-success') }} +
+
diff --git a/Modules/Admin/resources/views/transfers/create.blade.php b/Modules/Admin/resources/views/transfers/create.blade.php new file mode 100644 index 0000000..1cd7c5f --- /dev/null +++ b/Modules/Admin/resources/views/transfers/create.blade.php @@ -0,0 +1,23 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+ + {{ html()->form('POST')->route('transfer.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }} + + @include('admin::partials.transfers.action') + + {{ html()->form()->close() }} + +
+
+
+ @endsection diff --git a/Modules/Admin/resources/views/transfers/edit.blade.php b/Modules/Admin/resources/views/transfers/edit.blade.php new file mode 100644 index 0000000..9d94e68 --- /dev/null +++ b/Modules/Admin/resources/views/transfers/edit.blade.php @@ -0,0 +1,23 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+ + {{ html()->modelForm($transfer, 'PUT')->route('transfer.update', $transfer->transfer_id)->class(['needs-validation'])->attributes(['novalidate'])->open() }} + + @include('admin::partials.transfers.action') + + {{ html()->form()->close() }} + +
+
+
+ @endsection diff --git a/Modules/Admin/resources/views/transfers/index.blade.php b/Modules/Admin/resources/views/transfers/index.blade.php new file mode 100644 index 0000000..e7b85cb --- /dev/null +++ b/Modules/Admin/resources/views/transfers/index.blade.php @@ -0,0 +1,75 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+
{{ $title }}
+ +
+
+ + + + + + + + + + + + + + @foreach ($transferLists as $index => $item) + + + + + + + + + @endforeach + +
S.NEmployeeDepartment FromDepartment ToTransfer DateAction +
{{ $index + 1 }}{{ $item->employee_id }}{{ $item->old_department_id }}{{ $item->new_department_id }}{{ $item->transfer_date }} + +
+
+
+
+
+@endsection diff --git a/Modules/Admin/resources/views/transfers/show.blade.php b/Modules/Admin/resources/views/transfers/show.blade.php new file mode 100644 index 0000000..9ed0171 --- /dev/null +++ b/Modules/Admin/resources/views/transfers/show.blade.php @@ -0,0 +1,48 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+
View Detail
+ +
+ +
+

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

+ +
+
+ +
+
+
+
+@endSection diff --git a/Modules/Admin/resources/views/warnings/create.blade.php b/Modules/Admin/resources/views/warnings/create.blade.php new file mode 100644 index 0000000..57d6142 --- /dev/null +++ b/Modules/Admin/resources/views/warnings/create.blade.php @@ -0,0 +1,23 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+ + {{ html()->form('POST')->route('warning.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }} + + @include('admin::partials.warnings.action') + + {{ html()->form()->close() }} + +
+
+
+ @endsection diff --git a/Modules/Admin/resources/views/warnings/edit.blade.php b/Modules/Admin/resources/views/warnings/edit.blade.php new file mode 100644 index 0000000..e79c19d --- /dev/null +++ b/Modules/Admin/resources/views/warnings/edit.blade.php @@ -0,0 +1,23 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+ + {{ html()->modelForm($warning, 'PUT')->route('warning.update', $warning->warning_id)->class(['needs-validation'])->attributes(['novalidate'])->open() }} + + @include('admin::partials.warnings.action') + + {{ html()->form()->close() }} + +
+
+
+ @endsection diff --git a/Modules/Admin/resources/views/warnings/index.blade.php b/Modules/Admin/resources/views/warnings/index.blade.php new file mode 100644 index 0000000..379ddf3 --- /dev/null +++ b/Modules/Admin/resources/views/warnings/index.blade.php @@ -0,0 +1,75 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+
{{ $title }}
+ +
+
+ + + + + + + + + + + + + + @foreach ($warningLists as $index => $item) + + + + + + + + + @endforeach + +
S.NEmployeeWarning TypeSubjectWarning DateAction +
{{ $index + 1 }}{{ $item->employee_id }}{{ $item->type }}{{ $item->subject }}{{ $item->warning_date }} + +
+
+
+
+
+@endsection diff --git a/Modules/Admin/resources/views/warnings/show.blade.php b/Modules/Admin/resources/views/warnings/show.blade.php new file mode 100644 index 0000000..9ed0171 --- /dev/null +++ b/Modules/Admin/resources/views/warnings/show.blade.php @@ -0,0 +1,48 @@ +@extends('layouts.app') +@section('content') +
+
+ + + @include('layouts.partials.breadcrumb', ['title' => $title]) + + + +
+
+
View Detail
+ +
+ +
+

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

+ +
+
+ +
+
+
+
+@endSection diff --git a/Modules/Admin/routes/web.php b/Modules/Admin/routes/web.php index a84cbee..1281ea4 100644 --- a/Modules/Admin/routes/web.php +++ b/Modules/Admin/routes/web.php @@ -3,8 +3,13 @@ use Illuminate\Support\Facades\Route; use Modules\Admin\Http\Controllers\AdminController; use Modules\Admin\Http\Controllers\AppreciationController; +use Modules\Admin\Http\Controllers\CompanyController; +use Modules\Admin\Http\Controllers\CompanyTypeController; +use Modules\Admin\Http\Controllers\ComplaintController; use Modules\Admin\Http\Controllers\PromotionDemotionController; use Modules\Admin\Http\Controllers\ResignationController; +use Modules\Admin\Http\Controllers\TransferController; +use Modules\Admin\Http\Controllers\WarningController; /* |-------------------------------------------------------------------------- @@ -22,6 +27,11 @@ Route::group([], function () { Route::resource('promotion-demotion', PromotionDemotionController::class)->names('promotionDemotion'); Route::resource('appreciation', AppreciationController::class)->names('appreciation'); Route::resource('resignation', ResignationController::class)->names('resignation'); + Route::resource('complaint', ComplaintController::class)->names('complaint'); + Route::resource('transfer', TransferController::class)->names('transfer'); + Route::resource('warning', WarningController::class)->names('warning'); + Route::resource('company', CompanyController::class)->names('company'); + Route::resource('company-type', CompanyTypeController::class)->names('companyType'); }); require __DIR__ . '/route.countries.php'; diff --git a/app/Helpers/OMIS.php b/app/Helpers/OMIS.php index 7e2bcf0..aebc583 100644 --- a/app/Helpers/OMIS.php +++ b/app/Helpers/OMIS.php @@ -411,37 +411,37 @@ class OMIS ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; "); - DB::statement("CREATE TABLE IF NOT EXISTS `tbl_companytypes` ( - `companytype_id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, - `title` VARCHAR(255), - `alias` VARCHAR(255), - `description` TEXT, - `display_order` INT(11), - `status` INT(11), - `remarks` TEXT, - `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP, - `createdby` INT(11), - `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `updatedby` INT(11) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; - "); - DB::statement("CREATE TABLE IF NOT EXISTS `tbl_companies` ( - `company_id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, - `title` VARCHAR(255), - `alias` VARCHAR(255), - `description` TEXT, - `address` TEXT, - `cities_id` INT(11), - `companytypes_id` INT(11), - `display_order` INT(11), - `status` INT(11), - `remarks` TEXT, - `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP, - `createdby` INT(11), - `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `updatedby` INT(11) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; - "); + // DB::statement("CREATE TABLE IF NOT EXISTS `tbl_companytypes` ( + // `companytype_id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, + // `title` VARCHAR(255), + // `alias` VARCHAR(255), + // `description` TEXT, + // `display_order` INT(11), + // `status` INT(11), + // `remarks` TEXT, + // `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP, + // `createdby` INT(11), + // `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + // `updatedby` INT(11) + // ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + // "); + // DB::statement("CREATE TABLE IF NOT EXISTS `tbl_companies` ( + // `company_id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, + // `title` VARCHAR(255), + // `alias` VARCHAR(255), + // `description` TEXT, + // `address` TEXT, + // `cities_id` INT(11), + // `companytypes_id` INT(11), + // `display_order` INT(11), + // `status` INT(11), + // `remarks` TEXT, + // `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP, + // `createdby` INT(11), + // `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + // `updatedby` INT(11) + // ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + // "); DB::statement("CREATE TABLE IF NOT EXISTS `tbl_branches` ( `branch_id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `companies_id` INT(11) NULL, diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index a22e6c8..2f4c238 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -106,9 +106,9 @@ - {{-- --}} - {{-- --}} - {{-- --}} + + + {{-- --}} {{-- --}} diff --git a/resources/views/layouts/partials/sidebar.blade.php b/resources/views/layouts/partials/sidebar.blade.php index af9d36e..eebfdfd 100644 --- a/resources/views/layouts/partials/sidebar.blade.php +++ b/resources/views/layouts/partials/sidebar.blade.php @@ -43,12 +43,12 @@ +
+ + +