57 lines
2.7 KiB
PHP
57 lines
2.7 KiB
PHP
@extends('fo.layout')
|
|
|
|
@section('title', $rangeModel->seo_title ?? __('Gamme'))
|
|
@section('description', $rangeModel->seo_description ?? __('La gamme à savourer !'))
|
|
@section('breadcrumb', request()->route()->getName())
|
|
|
|
@section('content')
|
|
<section class="ranges range position-relative">
|
|
<div class="container">
|
|
<div class="row w-100 mx-auto">
|
|
<div class="col-12">
|
|
<h1 class="f-sheldon text-uppercase lh-sm my-3 w-fit text-center">
|
|
<span class="divide d-block w-100 mt-xl-3 my-2"></span>
|
|
{{ $rangeModel->title }}
|
|
<span class="divide d-block w-100 mt-xl-3 my-2"></span>
|
|
</h1>
|
|
</div>
|
|
<div class="col-12 col-xl-6">
|
|
<p class="fw-bold m-0 mb-4 text-center">
|
|
{{ Str::of($rangeModel->subtitle)->ucFirst() }}
|
|
</p>
|
|
<p class="highlight black f-readex-pro m-0 mb-2 px-3 text-white">
|
|
{{ Str::of($rangeModel->tagline)->ucFirst() }}
|
|
</p>
|
|
<div class="ck-content">
|
|
{!! clean($rangeModel->description) !!}
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-xl-6 m-xl-0 my-4">
|
|
<div class="d-flex justify-content-center">
|
|
<img src="{{ asset($rangeModel->picture) }}" title="{{ Str::of($rangeModel->picture_alt)->ucFirst() }}"
|
|
alt="{{ Str::of($rangeModel->picture_title)->ucFirst() }}">
|
|
</div>
|
|
</div>
|
|
@if (count($productModels))
|
|
<div class="col-12 mt-xl-5">
|
|
<p class="highlight black f-readex-pro mx-xl-auto m-0 px-3 text-white">
|
|
{{ Str::of(__('Quelques-unes de nos recettes...'))->ucFirst() }}
|
|
</p>
|
|
</div>
|
|
<div class="col-12">
|
|
@php
|
|
$data = [
|
|
'modelName' => 'produit',
|
|
'itemModels' => json_decode(json_encode($productModels)),
|
|
'range_id' => $rangeModel->id,
|
|
'routeFiltered' => 'fo.products.filtered',
|
|
'routeShow' => 'fo.products.show',
|
|
];
|
|
@endphp
|
|
<div class="items-list" data-json='@json($data)'></div>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</section>
|
|
@endsection
|