From 98e487cbc9a7e60004d7ce105e45948d6bed8e24 Mon Sep 17 00:00:00 2001 From: A1Gard Date: Tue, 26 Nov 2024 00:05:20 +0330 Subject: [PATCH] added developer guide area --- app/Http/Controllers/Admin/AreaController.php | 5 ++++ .../views/admin/areas/area-guide.blade.php | 26 +++++++++++++++++++ .../views/admin/areas/area-list.blade.php | 10 +++++++ routes/web.php | 1 + 4 files changed, 42 insertions(+) create mode 100644 resources/views/admin/areas/area-guide.blade.php diff --git a/app/Http/Controllers/Admin/AreaController.php b/app/Http/Controllers/Admin/AreaController.php index 0367d89..02ac360 100644 --- a/app/Http/Controllers/Admin/AreaController.php +++ b/app/Http/Controllers/Admin/AreaController.php @@ -247,4 +247,9 @@ class AreaController extends Controller return redirect()->back()->with(['message' => __('Assets build failed')]); } } + + public function guide(){ + $areas = Area::all(); + return view('admin.areas.area-guide', compact('areas')); + } } diff --git a/resources/views/admin/areas/area-guide.blade.php b/resources/views/admin/areas/area-guide.blade.php new file mode 100644 index 0000000..87e02c0 --- /dev/null +++ b/resources/views/admin/areas/area-guide.blade.php @@ -0,0 +1,26 @@ +@extends('layouts.app') + +@section('title') + {{__("Design guide")}} +@endsection + +@section('content') + + @include('components.err') +
+ +
+@endsection diff --git a/resources/views/admin/areas/area-list.blade.php b/resources/views/admin/areas/area-list.blade.php index eeed81e..ff21e62 100644 --- a/resources/views/admin/areas/area-list.blade.php +++ b/resources/views/admin/areas/area-list.blade.php @@ -27,4 +27,14 @@ + + + + @endsection diff --git a/routes/web.php b/routes/web.php index 9cb8f49..b079d93 100644 --- a/routes/web.php +++ b/routes/web.php @@ -362,6 +362,7 @@ Route::prefix(config('app.panel.prefix'))->name('admin.')->group( Route::post('update/model/{model}/{id}', [\App\Http\Controllers\Admin\AreaController::class, "updateModel"])->name('update.model'); Route::get('sort/{area}', [\App\Http\Controllers\Admin\AreaController::class, "sort"])->name('sort'); Route::get('build', [\App\Http\Controllers\Admin\AreaController::class, "build"])->name('build'); + Route::get('guide', [\App\Http\Controllers\Admin\AreaController::class, "guide"])->name('guide'); Route::post('sort-save/{area}', [\App\Http\Controllers\Admin\AreaController::class, "sortSave"])->name('sort-save'); } );