Advice setting 1
This commit is contained in:
parent
4000a3310e
commit
98ab8ef2d3
19 changed files with 382 additions and 33 deletions
42
app/Http/Controllers/Bo/AdvicesController.php
Normal file
42
app/Http/Controllers/Bo/AdvicesController.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Bo;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Http\Requests\UpdateAdviceRequest;
|
||||
use App\Models\Advice;
|
||||
|
||||
class AdvicesController extends Controller
|
||||
{
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param Advice $advice
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass
|
||||
public function edit(Advice $advice)
|
||||
{
|
||||
return view('back.advices.edit', compact('advice'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Advice $advice
|
||||
* @param \Illuminate\Http\UpdateAdviceRequest $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Advice $advice, UpdateAdviceRequest $request)
|
||||
{
|
||||
$advice->fill($request->validated());
|
||||
|
||||
if (!$advice->saveOrFail()) {
|
||||
return redirect()->route('bo.advices.edit', $advice->id)
|
||||
->with('error', trans('La modification a échoué'));
|
||||
}
|
||||
|
||||
return redirect()->route('bo.advices.edit', $advice->id)
|
||||
->with('success', trans('Modifications enregistrées !'));
|
||||
}
|
||||
}
|
||||
|
|
@ -27,6 +27,7 @@ class PictoBrandsController extends Controller
|
|||
* @param PictoBrand $pictobrand
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass
|
||||
public function create(PictoBrand $pictobrand)
|
||||
{
|
||||
return view('back.pictobrands.create', compact('pictobrand'));
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ class PictosController extends Controller
|
|||
* @param Picto $picto
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass
|
||||
public function create(Picto $picto)
|
||||
{
|
||||
return view('back.pictos.create', compact('picto'));
|
||||
|
|
|
|||
36
app/Http/Requests/UpdateAdviceRequest.php
Normal file
36
app/Http/Requests/UpdateAdviceRequest.php
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class UpdateAdviceRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return auth()->check();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'title1' => 'required|max:50',
|
||||
'title2' => 'required|max:50',
|
||||
'picture1' => 'required|image|mimes:jpeg,png,jpg|max:1024|dimensions:width=284,height=284',
|
||||
'picture2' => 'required|image|mimes:jpeg,png,jpg|max:1024|dimensions:width=284,height=284',
|
||||
'picture3' => 'required|image|mimes:jpeg,png,jpg|max:1024|dimensions:width=284,height=284',
|
||||
'text1' => 'required|max:2047',
|
||||
'text2' => 'required|max:2047',
|
||||
];
|
||||
}
|
||||
}
|
||||
50
app/Models/Advice.php
Normal file
50
app/Models/Advice.php
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Lib\Utils;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Advice extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'title1',
|
||||
'title2',
|
||||
'picture1',
|
||||
'picture2',
|
||||
'picture3',
|
||||
'text1',
|
||||
'text2',
|
||||
];
|
||||
|
||||
protected static function boot()
|
||||
{
|
||||
static::creating(function (Advice $advice) {
|
||||
if ($advice->picture1) {
|
||||
$advice->picture1 = Utils::storeImage($advice->picture1, $advice->getTable());
|
||||
}
|
||||
if ($advice->picture2) {
|
||||
$advice->picture2 = Utils::storeImage($advice->picture2, $advice->getTable());
|
||||
}
|
||||
if ($advice->picture3) {
|
||||
$advice->picture3 = Utils::storeImage($advice->picture3, $advice->getTable());
|
||||
}
|
||||
});
|
||||
|
||||
static::updating(function (Advice $advice) {
|
||||
if ($advice->picture1) {
|
||||
$advice->picture1 = Utils::storeImage($advice->picture1, $advice->getTable());
|
||||
}
|
||||
if ($advice->picture2) {
|
||||
$advice->picture2 = Utils::storeImage($advice->picture2, $advice->getTable());
|
||||
}
|
||||
if ($advice->picture3) {
|
||||
$advice->picture3 = Utils::storeImage($advice->picture3, $advice->getTable());
|
||||
}
|
||||
});
|
||||
parent::boot();
|
||||
}
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
namespace App\Providers;
|
||||
|
||||
use App\Enums\Page;
|
||||
use App\Models\Advice;
|
||||
use App\Models\Encart;
|
||||
use App\Models\Picto;
|
||||
use App\Models\PictoBrand;
|
||||
|
|
@ -29,40 +30,46 @@ class AppServiceProvider extends ServiceProvider
|
|||
*/
|
||||
public function boot()
|
||||
{
|
||||
$encart_home = Encart::where('page', Page::home()->value)->first();
|
||||
$encart_marqueHeader = Encart::where('page', Page::marqueHeader()->value)->first();
|
||||
$encart_marqueBloc2 = Encart::where('page', Page::marqueBloc2()->value)->first();
|
||||
$encart_marqueBloc3 = Encart::where('page', Page::marqueBloc3()->value)->first();
|
||||
$encart_marqueBloc4l = Encart::where('page', Page::marqueBloc4l()->value)->first();
|
||||
$encart_marqueBloc4r = Encart::where('page', Page::marqueBloc4r()->value)->first();
|
||||
$encart_marqueFooter = Encart::where('page', Page::marqueFooter()->value)->first();
|
||||
$encart_food = Encart::where('page', Page::foodHeader()->value)->first();
|
||||
// $encart_home = Encart::where('page', Page::home()->value)->first();
|
||||
// $encart_marqueHeader = Encart::where('page', Page::marqueHeader()->value)->first();
|
||||
// $encart_marqueBloc2 = Encart::where('page', Page::marqueBloc2()->value)->first();
|
||||
// $encart_marqueBloc3 = Encart::where('page', Page::marqueBloc3()->value)->first();
|
||||
// $encart_marqueBloc4l = Encart::where('page', Page::marqueBloc4l()->value)->first();
|
||||
// $encart_marqueBloc4r = Encart::where('page', Page::marqueBloc4r()->value)->first();
|
||||
// $encart_marqueFooter = Encart::where('page', Page::marqueFooter()->value)->first();
|
||||
// $encart_food = Encart::where('page', Page::foodHeader()->value)->first();
|
||||
|
||||
$pictobrands_marque = PictoBrand::all();
|
||||
// $pictobrands_marque = PictoBrand::all();
|
||||
|
||||
$pictos_marqueBloc2 = Picto::where('page', Page::marqueBloc2()->value)->get();
|
||||
$pictos_food = Picto::where('page', Page::foodBloc2()->value)->get();
|
||||
// $advices_news = Advice::all()->first();
|
||||
|
||||
$title_marqueBloc2 = Title::where('page', Page::marqueBloc2()->value)->first();
|
||||
$title_marqueBloc4 = Title::where('page', Page::marqueBloc4()->value)->first();
|
||||
$title_foodBloc2 = Title::where('page', Page::foodBloc2()->value)->first();
|
||||
// $pictos_marqueBloc2 = Picto::where('page', Page::marqueBloc2()->value)->get();
|
||||
// $pictos_food = Picto::where('page', Page::foodBloc2()->value)->get();
|
||||
|
||||
View::share('encart_home', $encart_home);
|
||||
View::share('encart_marqueHeader', $encart_marqueHeader);
|
||||
View::share('encart_marqueBloc2', $encart_marqueBloc2);
|
||||
View::share('encart_marqueBloc3', $encart_marqueBloc3);
|
||||
View::share('encart_marqueBloc4l', $encart_marqueBloc4l);
|
||||
View::share('encart_marqueBloc4r', $encart_marqueBloc4r);
|
||||
View::share('encart_marqueFooter', $encart_marqueFooter);
|
||||
View::share('encart_food', $encart_food);
|
||||
// $title_marqueBloc2 = Title::where('page', Page::marqueBloc2()->value)->first();
|
||||
// $title_marqueBloc4 = Title::where('page', Page::marqueBloc4()->value)->first();
|
||||
// $title_foodBloc2 = Title::where('page', Page::foodBloc2()->value)->first();
|
||||
// $title_newsPosts = Title::where('page', Page::newsPosts()->value)->first();
|
||||
|
||||
View::share('pictobrands_marque', $pictobrands_marque);
|
||||
// View::share('encart_home', $encart_home);
|
||||
// View::share('encart_marqueHeader', $encart_marqueHeader);
|
||||
// View::share('encart_marqueBloc2', $encart_marqueBloc2);
|
||||
// View::share('encart_marqueBloc3', $encart_marqueBloc3);
|
||||
// View::share('encart_marqueBloc4l', $encart_marqueBloc4l);
|
||||
// View::share('encart_marqueBloc4r', $encart_marqueBloc4r);
|
||||
// View::share('encart_marqueFooter', $encart_marqueFooter);
|
||||
// View::share('encart_food', $encart_food);
|
||||
|
||||
View::share('pictos_marqueBloc2', $pictos_marqueBloc2);
|
||||
View::share('pictos_food', $pictos_food);
|
||||
// View::share('pictobrands_marque', $pictobrands_marque);
|
||||
|
||||
View::share('title_marqueBloc2', $title_marqueBloc2);
|
||||
View::share('title_marqueBloc4', $title_marqueBloc4);
|
||||
View::share('title_foodBloc2', $title_foodBloc2);
|
||||
// View::share('advices_news', $advices_news);
|
||||
|
||||
// View::share('pictos_marqueBloc2', $pictos_marqueBloc2);
|
||||
// View::share('pictos_food', $pictos_food);
|
||||
|
||||
// View::share('title_marqueBloc2', $title_marqueBloc2);
|
||||
// View::share('title_marqueBloc4', $title_marqueBloc4);
|
||||
// View::share('title_foodBloc2', $title_foodBloc2);
|
||||
// View::share('title_newsPosts', $title_newsPosts);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,4 +19,7 @@ return [
|
|||
'picto_image_maxwidth' => '150',
|
||||
'picto_image_maxheight' => '150',
|
||||
|
||||
'advice_image_maxwidth' => '284',
|
||||
'advice_image_maxheight' => '284',
|
||||
|
||||
];
|
||||
|
|
|
|||
36
database/factories/AdviceFactory.php
Normal file
36
database/factories/AdviceFactory.php
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Advice;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use SplFileInfo;
|
||||
|
||||
class AdviceFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $model = Advice::class;
|
||||
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'title1' => $this->faker->text(20),
|
||||
'title2' => $this->faker->text(20),
|
||||
'picture1' => new SplFileInfo(resource_path('assets/images/repas.jpg')),
|
||||
'picture2' => new SplFileInfo(resource_path('assets/images/repas.jpg')),
|
||||
'picture3' => new SplFileInfo(resource_path('assets/images/repas.jpg')),
|
||||
'text1' => $this->faker->paragraph(10),
|
||||
'text2' => $this->faker->paragraph(10),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Enums\Page;
|
||||
use App\Models\Encart;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use SplFileInfo;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateAdvicesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('advices', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('title1');
|
||||
$table->string('title2');
|
||||
$table->string('picture1')->nullable();
|
||||
$table->string('picture2')->nullable();
|
||||
$table->string('picture3')->nullable();
|
||||
$table->text('text1');
|
||||
$table->text('text2');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('advices');
|
||||
}
|
||||
}
|
||||
19
database/seeders/AdvicesSeeder.php
Normal file
19
database/seeders/AdvicesSeeder.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Advice;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class AdvicesSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
Advice::factory(1)->create();
|
||||
}
|
||||
}
|
||||
|
|
@ -22,6 +22,7 @@ class DatabaseSeeder extends Seeder
|
|||
PictoBrandsSeeder::class,
|
||||
TitlesSeeder::class,
|
||||
TextsSeeder::class,
|
||||
AdvicesSeeder::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,13 @@ class TitlesSeeder extends Seeder
|
|||
|
||||
$title->save();
|
||||
|
||||
$title = new Title();
|
||||
$title->page = Page::newsPosts();
|
||||
$title->title = 'Actualités';
|
||||
$title->text = 'lorem ipsum';
|
||||
|
||||
$title->save();
|
||||
|
||||
$title = new Title();
|
||||
$title->page = Page::foodBloc2();
|
||||
$title->title = 'Les avantges de Food Service';
|
||||
|
|
|
|||
5
public/css/preload-back.css
vendored
5
public/css/preload-back.css
vendored
|
|
@ -11,6 +11,11 @@
|
|||
margin-right:100px;
|
||||
}
|
||||
|
||||
.white-png{
|
||||
background-color:#eeeeee !important;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#sidebarTop{
|
||||
height:3rem;
|
||||
}
|
||||
|
|
|
|||
7
resources/sass/_classes.scss
vendored
7
resources/sass/_classes.scss
vendored
|
|
@ -9,4 +9,9 @@
|
|||
#siteid {
|
||||
color: white;
|
||||
margin-right: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
.white-png {
|
||||
background-color: #eeeeee !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
@foreach ($pictos as $picto)
|
||||
<tr>
|
||||
@if ($picto->picture !== null)
|
||||
<th>
|
||||
<th class="white-png">
|
||||
<img src="{{$picto->picture}}" alt="{{$picto->text}}" style="max-height: 50px;">
|
||||
</th>
|
||||
@endif
|
||||
|
|
|
|||
69
resources/views/back/posts/edit.blade.php
Normal file
69
resources/views/back/posts/edit.blade.php
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
@extends('layouts.backend')
|
||||
|
||||
@section('content')
|
||||
<form action="{{route('bo.advices.update', $advice->id)}}" method="POST" enctype="multipart/form-data">
|
||||
@method('PUT')
|
||||
@csrf
|
||||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
||||
<h1 class="h2"><a href="{{route('bo.home')}}" class="h2 text-decoration-none">
|
||||
< </a> {{ __('Présentation') }} <small class="text-muted">{{ __('Edition') }}</small></h1>
|
||||
<div class="btn-toolbar mb-2 mb-md-0">
|
||||
<button type="submit" class="btn btn-sm btn-primary">{{ __('Enregistrer') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
// dd($advice->page->equals(\App\Enums\Page::marqueHeader()), \App\Enums\Page::toArray()); exit;
|
||||
// dd($advice->page->equals(\App\Enums\Page::marqueHeader()), \App\Enums\Page::toValues()); exit;
|
||||
?>
|
||||
<div class="form-group">
|
||||
<label for="title1">{{ __('Titre 1er bloc') }} *</label>
|
||||
<input type="text" id="title1" name="title1" class="form-control" placeholder="{{ __('Titre 1er bloc') }} *" value="{{ old('title1', $advice->title1 ?? '') }}" required>
|
||||
@include('back.modules.input-error', ['inputName'=>'title1'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="text1">{{ __('Texte 1er bloc') }}</label>
|
||||
<textarea class="form-control" id="text1" name="text1" placeholder="{{ __('Texte 1er bloc') }}" style="height: 300px; width: 50%;">{{ old('text1', $advice->text1) }}</textarea>
|
||||
@include('back.modules.input-error', ['inputName'=>'text1'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="picture1">{{ __('Image') }} <small class="text-muted">- JPEG/PNG, 2Mo max. Dimensions {{ Config::get('bo.advice_image_maxwidth') }} px par {{ Config::get('bo.advice_image_maxheight') }} px</small></label><br/>
|
||||
<input type="file" id="picture1" name="picture1" accept="image/png, image/jpeg">
|
||||
@if ($advice->picture1 !== null)
|
||||
<br />
|
||||
<br />
|
||||
<img src="{{$advice->picture1}}" alt="{{$advice->title1}}" style="max-height: 100px;">
|
||||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture1'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title1">{{ __('Titre 1er bloc') }} *</label>
|
||||
<input type="text" id="title1" name="title1" class="form-control" placeholder="{{ __('Titre 1er bloc') }} *" value="{{ old('title1', $advice->title1 ?? '') }}" required>
|
||||
@include('back.modules.input-error', ['inputName'=>'title1'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="text1">{{ __('Texte 1er bloc') }}</label>
|
||||
<textarea class="form-control" id="text1" name="text1" placeholder="{{ __('Texte 1er bloc') }}" style="height: 300px; width: 50%;">{{ old('text1', $advice->text1) }}</textarea>
|
||||
@include('back.modules.input-error', ['inputName'=>'text1'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="picture2">{{ __('Image') }} <small class="text-muted">- JPEG/PNG, 1Mo max. Dimensions {{ Config::get('bo.advice_image_maxwidth') }} px par {{ Config::get('bo.advice_image_maxheight') }} px</small></label><br/>
|
||||
<input type="file" id="picture2" name="picture2" accept="image/png, image/jpeg">
|
||||
@if ($advice->picture2 !== null)
|
||||
<br />
|
||||
<br />
|
||||
<img src="{{$advice->picture2}}" alt="{{$advice->title2}}" style="max-height: 100px;">
|
||||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture2'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="picture3">{{ __('Image') }} <small class="text-muted">- JPEG/PNG, 1Mo max. Dimensions {{ Config::get('bo.advice_image_maxwidth') }} px par {{ Config::get('bo.advice_image_maxheight') }} px</small></label><br/>
|
||||
<input type="file" id="picture3" name="picture3" accept="image/png, image/jpeg">
|
||||
@if ($advice->picture3 !== null)
|
||||
<br />
|
||||
<br />
|
||||
<img src="{{$advice->picture3}}" alt="{{$advice->title3}}" style="max-height: 100px;">
|
||||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture3'])
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
|
|
@ -63,6 +63,33 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- PAGE ACTUALITES --}}
|
||||
<div class="accordion-item mb-1">
|
||||
<h2 class="accordion-header" id="headingNews">
|
||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseNews" aria-expanded="false" aria-controls="collapseNews">
|
||||
{{ __('Actualités') }}
|
||||
</button>
|
||||
</h2>
|
||||
<div id="collapseNews" class="accordion-collapse collapse" aria-labelledby="headingNews">
|
||||
<div class="accordion-body">
|
||||
<div class="mb-3">
|
||||
<h6 class="pb-1 mb-1 text-dark border-bottom">{{ __('BLOC DES CONSEILS') }}</h6>
|
||||
<a class="nav-link py-0 ms-4" href="{{route('bo.advices.edit', $advices_news->id)}}">{{ __('Contenu') }}</a>
|
||||
<a class="nav-link py-0 ms-4" href="#">{{ __('Questions/Réponses') }}</a>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<h6 class="pb-1 mb-1 text-dark border-bottom">{{ __('BLOC ACTUALITES') }}</h6>
|
||||
<a class="nav-link py-0 ms-4" href="{{route('bo.titles.edit', $title_newsPosts->id)}}">{{ __('Entête') }}</a>
|
||||
<a class="nav-link py-0 ms-4" href="#">{{ __('Toutes les actualités') }}</a>
|
||||
<a class="nav-link py-0 ms-4" href="#">{{ __('Ajouter une actualité') }}</a>
|
||||
</div>
|
||||
{{-- <div class="mb-1">
|
||||
<h6 class="pb-1 mb-1 text-dark border-bottom">{{ __('LES AVANTAGES') }}</h6>
|
||||
<a class="nav-link py-0 ms-4" href="{{route('bo.encartargs.edit', $encartarg_food->id)}}">{{ __('Contenu') }}</a>
|
||||
</div> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- PAGE FOOD SERVICE --}}
|
||||
<div class="accordion-item mb-1">
|
||||
<h2 class="accordion-header" id="headingTwo">
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
* phpcs:ignore PEAR.Commenting.FileComment.MissingVersion
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\Bo\AdvicesController;
|
||||
use App\Http\Controllers\Bo\EncartsController;
|
||||
use App\Http\Controllers\Bo\HomeController;
|
||||
use App\Http\Controllers\Bo\PictoBrandsController;
|
||||
|
|
@ -71,11 +72,13 @@ Route::prefix('bo')
|
|||
]
|
||||
);
|
||||
Route::resource('encarts', EncartsController::class)
|
||||
->except(['index', 'create', 'store', 'destroy']);
|
||||
->except(['index', 'create', 'store', 'destroy', 'show']);
|
||||
Route::resource('pictos', PictosController::class)->except(['show']);
|
||||
Route::resource('pictobrands', PictoBrandsController::class)->except(['show']);
|
||||
Route::resource('posts', AdvicesController::class)
|
||||
->except(['index', 'create', 'store', 'destroy', 'show']);
|
||||
Route::resource('titles', TitlesController::class)
|
||||
->except(['index', 'create', 'store', 'destroy']);
|
||||
->except(['index', 'create', 'store', 'destroy', 'show']);
|
||||
Route::get(
|
||||
'/slide/change-order/{slide}/{action}',
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue