diff --git a/app/Http/Controllers/Bo/ConvictionpageController.php b/app/Http/Controllers/Bo/ConvictionpageController.php
new file mode 100644
index 0000000..445827c
--- /dev/null
+++ b/app/Http/Controllers/Bo/ConvictionpageController.php
@@ -0,0 +1,77 @@
+authorizeResource(Convictionpage::class);
+ }
+
+ /**
+ * Display a listing of the resource.
+ *
+ * @return \Illuminate\Contracts\View\View
+ */
+ public function index(): \Illuminate\Contracts\View\View
+ {
+ /** @var \Illuminate\Database\Eloquent\Builder $convictionpageModels */
+ $convictionpageModels = Convictionpage::query();
+
+ /** Sort columns with a query */
+ $this->sortQuery($convictionpageModels);
+
+ /** Custom pagination */
+ $convictionpageModels = $this->paginate($convictionpageModels);
+
+ return view('bo.pages.convictionpages.index', compact('convictionpageModels'));
+ }
+
+ /**
+ * Show the form for editing the specified resource.
+ *
+ * @param App\Models\Convictionpage $convictionpage
+ * @return \Illuminate\Contracts\View\View
+ */
+ public function edit(Convictionpage $convictionpage): \Illuminate\Contracts\View\View
+ {
+ return view('bo.pages.convictionpages.edit', ['convictionpageModel' => $convictionpage]);
+ }
+
+ /**
+ * Update the specified resource in storage.
+ *
+ * @param \App\Http\Requests\Bo\Convictionpages\UpdateConvictionpageRequest $request
+ * @param \App\Models\Convictionpage $convictionpage
+ * @return \Illuminate\Http\RedirectResponse
+ */
+ public function update(
+ UpdateConvictionpageRequest $request,
+ Convictionpage $convictionpage
+ ): \Illuminate\Http\RedirectResponse {
+ return DB::transaction(function () use ($request, $convictionpage) {
+ $convictionpage->fill($request->validated());
+
+ if ($convictionpage->saveOrFail()) {
+ return redirect()->route('bo.convictionpages.edit', $convictionpage)
+ ->with('success', __('crud.messages.has_been_updated', [
+ 'model' => Str::ucfirst(__('models.classes.convictionpage'))
+ ]));
+ }
+ return redirect()->route('bo.convictionpages.edit', $convictionpage)
+ ->with('error', __('crud.messages.cannot_be_updated', [
+ 'model' => Str::ucfirst(__('models.classes.convictionpage'))
+ ]));
+ });
+ }
+}
diff --git a/app/Http/Requests/Bo/Convictionpages/StoreConvictionpageRequest.php b/app/Http/Requests/Bo/Convictionpages/StoreConvictionpageRequest.php
new file mode 100644
index 0000000..26f2b43
--- /dev/null
+++ b/app/Http/Requests/Bo/Convictionpages/StoreConvictionpageRequest.php
@@ -0,0 +1,40 @@
+check();
+ }
+
+ /**
+ * Get the validation rules that apply to the request.
+ *
+ * @return array
+ */
+ public function rules()
+ {
+ return [
+ 'key_feed' => 'required|numeric',
+ 'key_earth_1' => 'required|numeric',
+ 'key_earth_2' => 'required|numeric',
+ 'key_together_1' => 'required|numeric',
+ 'key_together_2' => 'required|numeric',
+ 'key_together_3' => 'required|numeric',
+ 'key_together_4' => 'required|numeric',
+ 'key_territory' => 'required|numeric',
+ ];
+ }
+}
diff --git a/app/Http/Requests/Bo/Convictionpages/UpdateConvictionpageRequest.php b/app/Http/Requests/Bo/Convictionpages/UpdateConvictionpageRequest.php
new file mode 100644
index 0000000..f459858
--- /dev/null
+++ b/app/Http/Requests/Bo/Convictionpages/UpdateConvictionpageRequest.php
@@ -0,0 +1,18 @@
+ 'explorer page',
'commitment' => 'commitment',
'product' => 'product',
+ 'convictionpage' => 'conviction page',
]
];
diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php
index 4fa21f3..aed6654 100644
--- a/resources/lang/en/validation.php
+++ b/resources/lang/en/validation.php
@@ -246,9 +246,9 @@ return [
'picture_2' => 'picture two',
'picture_3' => 'picture three',
'presentation_title' => 'presentation title',
- 'title_part1' => 'title part one',
- 'title_part2' => 'title part two',
- 'title_part3' => 'title part three',
+ 'title_part1' => 'title part one',
+ 'title_part2' => 'title part two',
+ 'title_part3' => 'title part three',
'category' => 'category',
'publish_at' => 'publication date',
'unpublish_at' => 'end of publication date',
@@ -257,5 +257,13 @@ return [
'cooking_advice' => 'cooking advice',
'ingredients' => 'ingredients',
'nutritionnal_values' => 'nutritionnal values',
+ 'key_feed' => 'key number for "feed well"',
+ 'key_earth_1' => 'key number for "respect the earth" 1',
+ 'key_earth_2' => 'key number for "respect the earth" 2',
+ 'key_together_1' => 'key number for "live together" 1',
+ 'key_together_2' => 'key number for "live together" 2',
+ 'key_together_3' => 'key number for "live together" 3',
+ 'key_together_4' => 'key number for "live together" 4',
+ 'key_territory' => 'key number for "integrate its territory"',
],
];
diff --git a/resources/lang/fr/models.php b/resources/lang/fr/models.php
index 5432d52..cab2280 100644
--- a/resources/lang/fr/models.php
+++ b/resources/lang/fr/models.php
@@ -13,5 +13,6 @@ return [
'stamp' => 'tampon',
'explorerpage' => 'page explorateur',
'product' => 'produit',
+ 'convictionpage' => 'page conviction',
]
];
diff --git a/resources/lang/fr/validation.php b/resources/lang/fr/validation.php
index bdbde5b..fcdcd33 100644
--- a/resources/lang/fr/validation.php
+++ b/resources/lang/fr/validation.php
@@ -259,5 +259,13 @@ return [
'cooking_advice' => 'conseil de réchauffage',
'ingredients' => 'ingrédients',
'nutritionnal_values' => 'valeurs nutritionnelles',
+ 'key_feed' => 'chiffre clé "bien nourrir"',
+ 'key_earth_1' => 'Chiffre clé "respecter la terre" 1',
+ 'key_earth_2' => 'Chiffre clé "respecter la terre" 2',
+ 'key_together_1' => 'Chiffre clé "vivre ensemble" 1',
+ 'key_together_2' => 'Chiffre clé "vivre ensemble" 2',
+ 'key_together_3' => 'Chiffre clé "vivre ensemble" 3',
+ 'key_together_4' => 'Chiffre clé "vivre ensemble" 4',
+ 'key_territory' => 'Chiffre clé "intégrer son territoire"',
],
];
diff --git a/resources/views/bo/layouts/nav-list.blade.php b/resources/views/bo/layouts/nav-list.blade.php
index 3b5ee44..e268fe1 100644
--- a/resources/views/bo/layouts/nav-list.blade.php
+++ b/resources/views/bo/layouts/nav-list.blade.php
@@ -6,32 +6,14 @@
{{ __('Accueil') }}
- @can('viewAny', \App\Models\StaticPage::class)
-
-
- {{ Str::of(trans_choice('models.classes.static_page', '*'))->title() }}
-
-
- @endcan
@can('viewAny', \App\Models\Commitment::class)
-
{{ Str::of(__('models.classes.commitment'))->plural()->ucfirst() }}
@endcan
- @can('viewAny', \App\Models\News::class)
-
-
- {{ Str::of(__('models.classes.news'))->plural()->title() }}
-
-
- @endcan
@can('viewAny', \App\Models\SeasonalSection::class)
@endcan
- @can('viewAny', \App\Models\Homepage::class)
-
-
- {{ Str::of(__('models.classes.homepage'))->plural()->ucfirst() }}
-
-
- @endcan
@can('viewAny', \App\Models\Stamp::class)
@endcan
- @can('viewAny', \App\Models\Explorerpage::class)
+ @can('viewAny', \App\Models\Convictionpage::class)
-
- {{ Str::of(__('models.classes.explorerpage'))->plural()->ucfirst() }}
+
+ {{ Str::of(__('models.classes.convictionpage'))->plural()->ucfirst() }}
@endcan
+
+
+
$convictionpageModel])
+
+@section('title', trans_choice('crud.meta.title.edit', 0, ['model' => __('models.classes.convictionpage')]))
+@section('description', trans_choice('crud.meta.description.edit', 0, ['model' => __('models.classes.convictionpage')]))
+@section('breadcrumb',
+ request()->route()->getName())
+
+@section('content')
+
+
+
+
+
+ @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $convictionpageModel])
+
+
+
+
+
+
+@endsection
diff --git a/resources/views/bo/pages/convictionpages/form.blade.php b/resources/views/bo/pages/convictionpages/form.blade.php
new file mode 100644
index 0000000..73f79c1
--- /dev/null
+++ b/resources/views/bo/pages/convictionpages/form.blade.php
@@ -0,0 +1,254 @@
+
+ {{-- KEY_FEED --}}
+
+
+ {{ Str::ucfirst(__('validation.custom.key_feed')) }}
+
+
+ @include('bo.partials.inputs.int-number', [
+ 'id' => 'convictionpageKeyFeed',
+ 'label' => __(':field :inter:model', [
+ 'field' => Str::ucfirst(__('validation.custom.key_feed')),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ 'step' => 0.01,
+ 'name' => 'key_feed',
+ 'required' => true,
+ 'model' => $convictionpageModel ?? null,
+ 'helper' => __('validation.numeric', [
+ 'attribute' => __(':field :inter:model', [
+ 'field' => __('validation.custom.key_feed'),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ ]),
+ ])
+
+
+
+
+ {{-- KEY_EARTH_1 --}}
+
+
+ {{ Str::ucfirst(__('validation.custom.key_earth_1')) }}
+
+
+ @include('bo.partials.inputs.int-number', [
+ 'id' => 'convictionpageKeyEarth1',
+ 'label' => __(':field :inter:model', [
+ 'field' => Str::ucfirst(__('validation.custom.key_earth_1')),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ 'step' => 0.01,
+ 'name' => 'key_earth_1',
+ 'required' => true,
+ 'model' => $convictionpageModel ?? null,
+ 'helper' => __('validation.numeric', [
+ 'attribute' => __(':field :inter:model', [
+ 'field' => __('validation.custom.key_earth_1'),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ ]),
+ ])
+
+
+
+
+ {{-- KEY_EARTH_2 --}}
+
+
+ {{ Str::ucfirst(__('validation.custom.key_earth_2')) }}
+
+
+ @include('bo.partials.inputs.int-number', [
+ 'id' => 'convictionpageKeyEarth2',
+ 'label' => __(':field :inter:model', [
+ 'field' => Str::ucfirst(__('validation.custom.key_earth_2')),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ 'step' => 0.01,
+ 'name' => 'key_earth_2',
+ 'required' => true,
+ 'model' => $convictionpageModel ?? null,
+ 'helper' => __('validation.numeric', [
+ 'attribute' => __(':field :inter:model', [
+ 'field' => __('validation.custom.key_earth_2'),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ ]),
+ ])
+
+
+
+
+ {{-- KEY_TOGETHER_1 --}}
+
+
+ {{ Str::ucfirst(__('validation.custom.key_together_1')) }}
+
+
+ @include('bo.partials.inputs.int-number', [
+ 'id' => 'convictionpageKeyTogether1',
+ 'label' => __(':field :inter:model', [
+ 'field' => Str::ucfirst(__('validation.custom.key_together_1')),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ 'step' => 0.01,
+ 'name' => 'key_together_1',
+ 'required' => true,
+ 'model' => $convictionpageModel ?? null,
+ 'helper' => __('validation.numeric', [
+ 'attribute' => __(':field :inter:model', [
+ 'field' => __('validation.custom.key_together_1'),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ ]),
+ ])
+
+
+
+
+ {{-- KEY_TOGETHER_2 --}}
+
+
+ {{ Str::ucfirst(__('validation.custom.key_together_2')) }}
+
+
+ @include('bo.partials.inputs.int-number', [
+ 'id' => 'convictionpageKeyTogether2',
+ 'label' => __(':field :inter:model', [
+ 'field' => Str::ucfirst(__('validation.custom.key_together_2')),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ 'step' => 0.01,
+ 'name' => 'key_together_2',
+ 'required' => true,
+ 'model' => $convictionpageModel ?? null,
+ 'helper' => __('validation.numeric', [
+ 'attribute' => __(':field :inter:model', [
+ 'field' => __('validation.custom.key_together_2'),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ ]),
+ ])
+
+
+
+
+ {{-- KEY_TOGETHER_3 --}}
+
+
+ {{ Str::ucfirst(__('validation.custom.key_together_3')) }}
+
+
+ @include('bo.partials.inputs.int-number', [
+ 'id' => 'convictionpageKeyTogether3',
+ 'label' => __(':field :inter:model', [
+ 'field' => Str::ucfirst(__('validation.custom.key_feed')),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ 'step' => 0.01,
+ 'name' => 'key_together_3',
+ 'required' => true,
+ 'model' => $convictionpageModel ?? null,
+ 'helper' => __('validation.numeric', [
+ 'attribute' => __(':field :inter:model', [
+ 'field' => __('validation.custom.key_together_3'),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ ]),
+ ])
+
+
+
+
+ {{-- KEY_TOGETHER_4 --}}
+
+
+ {{ Str::ucfirst(__('validation.custom.key_together_4')) }}
+
+
+ @include('bo.partials.inputs.int-number', [
+ 'id' => 'convictionpageKeyTogether4',
+ 'label' => __(':field :inter:model', [
+ 'field' => Str::ucfirst(__('validation.custom.key_together_4')),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ 'step' => 0.01,
+ 'name' => 'key_together_4',
+ 'required' => true,
+ 'model' => $convictionpageModel ?? null,
+ 'helper' => __('validation.numeric', [
+ 'attribute' => __(':field :inter:model', [
+ 'field' => __('validation.custom.key_together_4'),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ ]),
+ ])
+
+
+
+
+ {{-- KEY_TERRITORY --}}
+
+
+ {{ Str::ucfirst(__('validation.custom.key_territory')) }}
+
+
+ @include('bo.partials.inputs.int-number', [
+ 'id' => 'convictionpageKeyTerritory',
+ 'label' => __(':field :inter:model', [
+ 'field' => Str::ucfirst(__('validation.custom.key_territory')),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ 'step' => 0.01,
+ 'name' => 'key_territory',
+ 'required' => true,
+ 'model' => $convictionpageModel ?? null,
+ 'helper' => __('validation.numeric', [
+ 'attribute' => __(':field :inter:model', [
+ 'field' => __('validation.custom.key_territory'),
+ 'inter' => __('validation.custom.of_the.female'),
+ 'model' => __('models.classes.convictionpage'),
+ ]),
+ ]),
+ ])
+
+
+
+
+
+
+
+
* {{ __('crud.helpers.required_fields') }}
+
+
+
+
+@push('scripts')
+
+@endpush
diff --git a/resources/views/bo/pages/convictionpages/index-list.blade.php b/resources/views/bo/pages/convictionpages/index-list.blade.php
new file mode 100644
index 0000000..144fca7
--- /dev/null
+++ b/resources/views/bo/pages/convictionpages/index-list.blade.php
@@ -0,0 +1,63 @@
+
+ @if (count($convictionpageModels) > 0)
+
+ @include('bo.modules.table-col-sorter', [
+ 'cols' => [
+ 'key_feed' => Str::ucfirst(__('validation.custom.key_feed')),
+ 'key_earth_1' => Str::ucfirst(__('validation.custom.key_earth_1')),
+ 'key_earth_2' => Str::ucfirst(__('validation.custom.key_earth_2')),
+ 'key_together_1' => Str::ucfirst(__('validation.custom.key_together_1')),
+ 'key_together_2' => Str::ucfirst(__('validation.custom.key_together_2')),
+ 'key_together_3' => Str::ucfirst(__('validation.custom.key_together_3')),
+ 'key_together_4' => Str::ucfirst(__('validation.custom.key_together_4')),
+ 'key_territory' => Str::ucfirst(__('validation.custom.key_territory')),
+ 'updated_at' => Str::ucfirst(__('validation.attributes.updated_at')),
+ ],
+ ])
+
+
+ @foreach ($convictionpageModels as $convictionpageModel)
+
+ {{ $convictionpageModel->key_feed }}
+ {{ $convictionpageModel->key_earth_1 }}
+ {{ $convictionpageModel->key_earth_2 }}
+ {{ $convictionpageModel->key_together_1 }}
+ {{ $convictionpageModel->key_together_2 }}
+ {{ $convictionpageModel->key_together_3 }}
+ {{ $convictionpageModel->key_together_4 }}
+ {{ $convictionpageModel->key_territory }}
+
+ {{ $convictionpageModel->updated_at->isoFormat('LLLL') }}
+
+ @php
+ $routeName = request()
+ ->route()
+ ->getName();
+ @endphp
+
+ @canAny(['update'], $convictionpageModel)
+
+ @else
+
+
+
+ @endcan
+
+
+ @endforeach
+
+ @else
+
+ {{ __('crud.other.no_model_found', ['model' => __('models.classes.convictionpage')]) }}
+
+ @endif
+
diff --git a/resources/views/bo/pages/convictionpages/index.blade.php b/resources/views/bo/pages/convictionpages/index.blade.php
new file mode 100644
index 0000000..abad237
--- /dev/null
+++ b/resources/views/bo/pages/convictionpages/index.blade.php
@@ -0,0 +1,16 @@
+@extends('bo.layout')
+
+@section('title',
+ Str::of(__('models.classes.convictionpage'))->plural()->ucfirst())
+@section('description', trans_choice('crud.meta.description.index', 0, ['model' => Str::plural(__('models.classes.convictionpage'))]))
+
+@section('content')
+
+ @include('modules.breadcrumbs.breadcrumb-body')
+
+
+
+ @include('bo.pages.convictionpages.index-list')
+
+ {{ $convictionpageModels->links() }}
+@endsection
diff --git a/resources/views/bo/partials/inputs/int-number.blade.php b/resources/views/bo/partials/inputs/int-number.blade.php
index 2a7ee83..dda8371 100644
--- a/resources/views/bo/partials/inputs/int-number.blade.php
+++ b/resources/views/bo/partials/inputs/int-number.blade.php
@@ -9,49 +9,39 @@
of the input. || string || OPTIONNAL || null
$required || Is the field required ? || boolean || OPTIONNAL || false
$value || The default value of the input. || integer || OPTIONNAL || 0
- $step || The step of the input. || integer || OPTIONNAL || 1
+ $step || The step of the input. || integer|float || OPTIONNAL || 1
$unsigned || Is the value unsigned ? || boolean || OPTIONNAL || false
$min || The min value of the input. || integer || OPTIONNAL || !empty($unsigned) ? 0 : -2147483648
$max || The max value of the input. || integer || OPTIONNAL || !empty($unsigned) ? 4294967295 : 2147483647
$model || The model we're creating/editing || Model class || OPTIONNAL || null
--}}
-@if(!empty($label))
-
- {{ $label }} {{ $required ?? false ? '*' : '' }}
-
+@if (!empty($label))
+
+ {{ $label }} {{ $required ?? false ? '*' : '' }}
+
@endif
-@if(isset($appendText))
-
- @endif
-
+@endif
+
- @if(isset($appendText))
+ min="{{ !empty($unsigned) ? '0' : '-2147483648' }}" @endif
+ @if (!empty($required)) required @endif>
+@if (isset($appendText))
{{ $appendText }}
-
+
@endif
@include('modules.input-error', [
'inputName' => $name,
'helperId' => '{{ $id }}Help',
- 'helper' => $helper
+ 'helper' => $helper,
])
diff --git a/routes/breadcrumbs-bo.php b/routes/breadcrumbs-bo.php
index 0bd3262..638d466 100644
--- a/routes/breadcrumbs-bo.php
+++ b/routes/breadcrumbs-bo.php
@@ -2,6 +2,7 @@
use App\Models\ActivityLog;
use App\Models\Commitment;
+use App\Models\Convictionpage;
use App\Models\Explorerpage;
use App\Models\Homepage;
use App\Models\Range;
@@ -202,3 +203,15 @@ Breadcrumbs::for('bo.products.duplicate', function (Generator $trail) {
$trail->parent('bo.products.index');
$trail->push(Str::ucfirst(trans('crud.actions.duplicate')));
});
+
+// * CONVICTIONPAGES
+Breadcrumbs::for('bo.convictionpages.index', function (Generator $trail) {
+ $trail->push(
+ Str::of(trans('models.classes.convictionpage'))->plural()->ucfirst(),
+ route('bo.convictionpages.index', ['sort_col' => 'updated_at', 'sort_way' => 'desc'])
+ );
+});
+Breadcrumbs::for('bo.convictionpages.edit', function (Generator $trail, Convictionpage $convictionpage) {
+ $trail->parent('bo.convictionpages.index');
+ $trail->push(Str::ucfirst(trans('crud.actions.edit')), route('bo.convictionpages.edit', $convictionpage));
+});
diff --git a/routes/web-bo.php b/routes/web-bo.php
index 6726a27..92e0d1c 100644
--- a/routes/web-bo.php
+++ b/routes/web-bo.php
@@ -2,6 +2,7 @@
use App\Http\Controllers\Bo\ActivityLogsController;
use App\Http\Controllers\Bo\CommitmentController;
+use App\Http\Controllers\Bo\ConvictionpageController;
use App\Http\Controllers\Bo\DashboardController;
use App\Http\Controllers\Bo\ExplorerpageController;
use App\Http\Controllers\Bo\HomepageController;
@@ -46,9 +47,7 @@ Route::prefix('bo')
])->name('users.duplicate');
// * COMMITMENTS
- Route::resource('commitments', CommitmentController::class)->except(['show'])
- ->withoutMiddleware('htmlsanitize')
- ->middleware('htmlsanitize:content');
+ Route::resource('commitments', CommitmentController::class)->except(['show']);
Route::get('/commitments/{commitment}/duplicate', [
CommitmentController::class, 'duplicate'
])->name('commitments.duplicate');
@@ -129,8 +128,7 @@ Route::prefix('bo')
])->name('stamps.duplicate');
// * EXPLORERPAGE
- Route::resource('explorerpages', ExplorerpageController::class)->only(['index', 'edit', 'update'])
- ->withoutMiddleware('htmlsanitize');
+ Route::resource('explorerpages', ExplorerpageController::class)->only(['index', 'edit', 'update']);
// * PRODUCTS
Route::resource('products', ProductController::class)->except('show')
@@ -146,6 +144,9 @@ Route::prefix('bo')
ProductController::class, 'duplicate'
])->name('products.duplicate');
+ // * CONVICTIONPAGES
+ Route::resource('convictionpages', ConvictionpageController::class)->only(['index', 'edit', 'update']);
+
Route::middleware('can:isConceptor')->group(function () {
// * ACTIVITY LOGS.
Route::resource('activity_logs', ActivityLogsController::class)->only(['index', 'show']);