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') +
ID | +Account | +Active | +Group | +Services | +User | +
---|---|---|---|---|---|
{{ $o->id }} | +{{ $o->name }} | +{{ $o->active ? 'YES' : 'NO' }} | +{{ $o->group?->name }} | +{{ $o->services->count() }} | +{{ $o->user->name }} | +
REPORT
+ + diff --git a/routes/web.php b/routes/web.php index 18f2f3e..92e18af 100644 --- a/routes/web.php +++ b/routes/web.php @@ -102,7 +102,8 @@ Route::group(['middleware'=>['theme:adminlte-be','auth','role:wholesaler'],'pref ->whereIn('type',Supplier::offeringTypeKeys()->toArray()) ->where('oo','[0-9]+'); - Route::get('report/products',[ReportController::class,'products']); + Route::get('report/accounts',[ReportController::class,'accounts']); + Route::get('report/services',[ReportController::class,'services']); // Charges - @todo This should probably go to resellers Route::match(['get','post'],'charge/addedit/{o?}',[AdminController::class,'charge_addedit']); Route::get('charge/unprocessed',[AdminController::class,'charge_unprocessed']);