From b3539e6c7e250116276875f84f2bb19ab88b9d28 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 9 May 2023 16:31:44 +0900 Subject: [PATCH] Added Account report, renamed Product to Service List --- .../Wholesale/ReportController.php | 9 +- .../backend/adminlte/account/report.blade.php | 102 ++++++++++++++++++ .../{a/product => service}/report.blade.php | 6 +- .../layouts/partials/sidebarmenu.blade.php | 16 ++- routes/web.php | 3 +- 5 files changed, 126 insertions(+), 10 deletions(-) create mode 100644 resources/views/theme/backend/adminlte/account/report.blade.php rename resources/views/theme/backend/adminlte/{a/product => service}/report.blade.php (98%) diff --git a/app/Http/Controllers/Wholesale/ReportController.php b/app/Http/Controllers/Wholesale/ReportController.php index e7d80b7..5135100 100644 --- a/app/Http/Controllers/Wholesale/ReportController.php +++ b/app/Http/Controllers/Wholesale/ReportController.php @@ -6,8 +6,13 @@ use App\Http\Controllers\Controller; class ReportController extends Controller { - public function products() + public function accounts() { - return view('a/product/report'); + return view('account/report'); + } + + public function services() + { + return view('service/report'); } } \ No newline at end of file diff --git a/resources/views/theme/backend/adminlte/account/report.blade.php b/resources/views/theme/backend/adminlte/account/report.blade.php new file mode 100644 index 0000000..3c2b033 --- /dev/null +++ b/resources/views/theme/backend/adminlte/account/report.blade.php @@ -0,0 +1,102 @@ +@extends('adminlte::layouts.app') + +@section('htmlheader_title') + Account List +@endsection +@section('page_title') + Account List +@endsection + +@section('contentheader_title') + Account List +@endsection +@section('contentheader_description') +@endsection + +@section('main-content') +
+
+
+ + + + + + + + + + + + + + @foreach (\App\Models\Account::with(['services','group','user'])->get() as $o) + + + + + + + + + @endforeach + +
IDAccountActiveGroupServicesUser
{{ $o->id }}{{ $o->name }}{{ $o->active ? 'YES' : 'NO' }}{{ $o->group?->name }}{{ $o->services->count() }}{{ $o->user->name }}
+
+
+
+@endsection + +@section('page-scripts') + @css(datatables,bootstrap4|fixedheader|responsive|rowgroup|select|searchpanes|searchpanes-left) + @js(datatables,bootstrap4|fixedheader|responsive|rowgroup|select|searchpanes) + + +@append \ No newline at end of file diff --git a/resources/views/theme/backend/adminlte/a/product/report.blade.php b/resources/views/theme/backend/adminlte/service/report.blade.php similarity index 98% rename from resources/views/theme/backend/adminlte/a/product/report.blade.php rename to resources/views/theme/backend/adminlte/service/report.blade.php index a9f2fb1..1dacc84 100644 --- a/resources/views/theme/backend/adminlte/a/product/report.blade.php +++ b/resources/views/theme/backend/adminlte/service/report.blade.php @@ -1,14 +1,14 @@ @extends('adminlte::layouts.app') @section('htmlheader_title') - Product List + Service List @endsection @section('page_title') - Product List + Service List @endsection @section('contentheader_title') - Product List + Service List @endsection @section('contentheader_description') @endsection diff --git a/resources/views/vendor/adminlte/layouts/partials/sidebarmenu.blade.php b/resources/views/vendor/adminlte/layouts/partials/sidebarmenu.blade.php index 13d0ecb..e4df00b 100644 --- a/resources/views/vendor/adminlte/layouts/partials/sidebarmenu.blade.php +++ b/resources/views/vendor/adminlte/layouts/partials/sidebarmenu.blade.php @@ -119,15 +119,23 @@ -