Merge branch 'trunk'
45
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
image: $CI_REGISTRY/service-web-lab/ldc-web-images-docker/ldcweb-qa:php7.3-1.0
|
||||
|
||||
stages:
|
||||
- Security
|
||||
- CodingStandards
|
||||
|
||||
composer-security:
|
||||
stage: Security
|
||||
script:
|
||||
- local-php-security-checker --format=json --path=./composer.lock > composer-security-checker-report.json
|
||||
artifacts:
|
||||
when: on_failure
|
||||
expose_as: 'composer-security-checker'
|
||||
paths:
|
||||
- composer-security-checker-report.json
|
||||
allow_failure: true
|
||||
|
||||
npm-security:
|
||||
stage: Security
|
||||
script:
|
||||
- audit-ci -p npm -o json > npm-security-checker-report.json
|
||||
artifacts:
|
||||
when: on_failure
|
||||
expose_as: 'npm-security-checker'
|
||||
paths:
|
||||
- npm-security-checker-report.json
|
||||
allow_failure: true
|
||||
|
||||
phpcs:
|
||||
stage: CodingStandards
|
||||
before_script:
|
||||
- composer install
|
||||
cache:
|
||||
paths:
|
||||
- vendor/
|
||||
script:
|
||||
- vendor/bin/phpcs --report=junit --report-file=phpcs-report.xml
|
||||
artifacts:
|
||||
when: on_failure
|
||||
expose_as: 'phpcs'
|
||||
paths:
|
||||
- phpcs-report.xml
|
||||
reports:
|
||||
junit: phpcs-report.xml
|
||||
allow_failure: false
|
||||
|
|
@ -44,8 +44,9 @@ class BreedingPageController extends Controller
|
|||
{
|
||||
$pages = BreedingPage::where('type', $pageType)->whereStatus(true)->get();
|
||||
$bannerUrl = $this->getBannerUrlFromGeneralConfig($pageType);
|
||||
$headerText = $this->getTextHeaderFromGeneralConfig($pageType);
|
||||
|
||||
return view('front.breeding-page.list', compact('pages', 'pageType', 'bannerUrl'));
|
||||
return view('front.breeding-page.list', compact('pages', 'pageType', 'bannerUrl', 'headerText'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -58,8 +59,10 @@ class BreedingPageController extends Controller
|
|||
*/
|
||||
public function show(BreedingPageType $pageType, BreedingPage $page)
|
||||
{
|
||||
$bannerUrl = $this->getBannerUrlFromGeneralConfig($pageType);
|
||||
return view('front.breeding-page.show', compact('page', 'pageType', 'bannerUrl'));
|
||||
$bannerUrl = $this->getBannerUrlFromGeneralConfig($pageType);
|
||||
$headerText = $this->getTextHeaderFromGeneralConfig($pageType);
|
||||
|
||||
return view('front.breeding-page.show', compact('page', 'pageType', 'bannerUrl', 'headerText'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -81,4 +84,24 @@ class BreedingPageController extends Controller
|
|||
/** @var string banner url or empty */
|
||||
return collect($generalConfig->data)->get(str_replace('_text', '_img2', $key))['value'] ?? '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get text header from general config
|
||||
*
|
||||
* @param BreedingPageType $pageType
|
||||
* @return string
|
||||
*/
|
||||
private function getTextHeaderFromGeneralConfig(BreedingPageType $pageType): string
|
||||
{
|
||||
$generalConfig = GeneralConfig::getCachedConfig(GeneralConfigType::breedingPage());
|
||||
/** @var string */
|
||||
$key = \strval(collect($generalConfig->data)->filter(function (array $input) use ($pageType) {
|
||||
return $input['inputType']['value'] === InputType::string()->value and
|
||||
isset($input['type']) and
|
||||
$input['type']['value'] === $pageType->value;
|
||||
})->keys()->first());
|
||||
|
||||
/** @var string banner url or empty */
|
||||
return collect($generalConfig->data)->get(str_replace('_text', '_img2', $key))['text'] ?? '';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class ProductsController extends Controller
|
|||
$ranges = Range::where('status', 1)->with('products', function ($q) {
|
||||
$q->select(['id', 'range_id', 'picture'])
|
||||
->whereStatus(true)->whereStar(true);
|
||||
})->get();
|
||||
})->orderBy('order')->get();
|
||||
|
||||
return view('front.products.index', compact('productsSlides', 'ranges', 'meatTypes', 'ct', 'labels'));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,13 +8,21 @@ use Illuminate\Support\Str;
|
|||
|
||||
class StoreBreedingPageRequest extends StoreMiniAcfRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $model = BreedingPage::class;
|
||||
|
||||
public function authorize()
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
if (
|
||||
is_null(request()->breeding_page_type) or
|
||||
BreedingPage::where('type', request()->breeding_page_type)->count() >= 10
|
||||
is_null(request()->breedingPageType) or
|
||||
BreedingPage::where('type', request()->breedingPageType)->count() >= 10
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -64,7 +72,12 @@ class StoreBreedingPageRequest extends StoreMiniAcfRequest
|
|||
);
|
||||
}
|
||||
|
||||
public function attributes()
|
||||
/**
|
||||
* Get custom attributes for validator errors.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function attributes(): array
|
||||
{
|
||||
return \array_merge(
|
||||
[
|
||||
|
|
@ -81,7 +94,12 @@ class StoreBreedingPageRequest extends StoreMiniAcfRequest
|
|||
);
|
||||
}
|
||||
|
||||
public function messages()
|
||||
/**
|
||||
* Get custom messages for validator errors.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function messages(): array
|
||||
{
|
||||
return \array_merge(
|
||||
[
|
||||
|
|
|
|||
|
|
@ -8,9 +8,22 @@ use Illuminate\Support\Str;
|
|||
|
||||
class UpdateBreedingPageRequest extends UpdateMiniAcfRequest
|
||||
{
|
||||
/**
|
||||
* The model var name
|
||||
* used as route parameter name
|
||||
*
|
||||
* This is used to populate generatedRules
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $modelVarName = 'breeding_page';
|
||||
|
||||
public function authorize()
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
$this->merge([
|
||||
'status' => $this->status ? true : false
|
||||
|
|
@ -59,7 +72,12 @@ class UpdateBreedingPageRequest extends UpdateMiniAcfRequest
|
|||
);
|
||||
}
|
||||
|
||||
public function attributes()
|
||||
/**
|
||||
* Get custom attributes for validator errors.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function attributes(): array
|
||||
{
|
||||
return \array_merge(
|
||||
[
|
||||
|
|
@ -76,7 +94,12 @@ class UpdateBreedingPageRequest extends UpdateMiniAcfRequest
|
|||
);
|
||||
}
|
||||
|
||||
public function messages()
|
||||
/**
|
||||
* Get custom messages for validator errors.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function messages(): array
|
||||
{
|
||||
return \array_merge(
|
||||
[
|
||||
|
|
|
|||
|
|
@ -81,7 +81,8 @@ abstract class UpdateMiniCrudRequest extends FormRequest
|
|||
]),
|
||||
$input
|
||||
),
|
||||
"data.$iptName.alt" => $this->compileValidate('sometimes|string|min:5', $input)
|
||||
"data.$iptName.alt" => $this->compileValidate('sometimes|string|min:5', $input),
|
||||
"data.$iptName.text" => $this->compileValidate('sometimes|string|min:10', $input)
|
||||
]);
|
||||
break;
|
||||
case InputType::url()->value:
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
"facade/ignition": "^2.3.6",
|
||||
"fideloper/proxy": "^4.2",
|
||||
"fruitcake/laravel-cors": "^2.0",
|
||||
"guzzlehttp/guzzle": "^7.0.1",
|
||||
"guzzlehttp/guzzle": "^7.4",
|
||||
"htmlmin/htmlmin": "^8.0",
|
||||
"kwaadpepper/enum": "^2.1",
|
||||
"kwaadpepper/exception-handler": "^0.0.6",
|
||||
|
|
|
|||
16
composer.lock
generated
|
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "61c7645cd9a253982a15cda313afa3b7",
|
||||
"content-hash": "8054f930e5efb49206feeb82c32f5e39",
|
||||
"packages": [
|
||||
{
|
||||
"name": "asm89/stack-cors",
|
||||
|
|
@ -1603,16 +1603,16 @@
|
|||
},
|
||||
{
|
||||
"name": "guzzlehttp/guzzle",
|
||||
"version": "7.4.1",
|
||||
"version": "7.4.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/guzzle/guzzle.git",
|
||||
"reference": "ee0a041b1760e6a53d2a39c8c34115adc2af2c79"
|
||||
"reference": "e3ff079b22820c2029d4c2a87796b6a0b8716ad8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/ee0a041b1760e6a53d2a39c8c34115adc2af2c79",
|
||||
"reference": "ee0a041b1760e6a53d2a39c8c34115adc2af2c79",
|
||||
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/e3ff079b22820c2029d4c2a87796b6a0b8716ad8",
|
||||
"reference": "e3ff079b22820c2029d4c2a87796b6a0b8716ad8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -1707,7 +1707,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/guzzle/guzzle/issues",
|
||||
"source": "https://github.com/guzzle/guzzle/tree/7.4.1"
|
||||
"source": "https://github.com/guzzle/guzzle/tree/7.4.4"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -1723,7 +1723,7 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-12-06T18:43:05+00:00"
|
||||
"time": "2022-06-09T21:39:15+00:00"
|
||||
},
|
||||
{
|
||||
"name": "guzzlehttp/promises",
|
||||
|
|
@ -10872,5 +10872,5 @@
|
|||
"ext-xml": "*"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.2.0"
|
||||
"plugin-api-version": "2.3.0"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
|
||||
use App\Enums\GeneralConfigType;
|
||||
use App\Enums\InputType;
|
||||
use App\Models\GeneralConfig;
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class InsertBreedingTextGeneralConfigsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
DB::table('general_configs')->cursor()->each(function () {
|
||||
$test = GeneralConfig::whereType(GeneralConfigType::breedingPage())->get();
|
||||
$test->map(function (GeneralConfig $pageBreeding) {
|
||||
$data = $pageBreeding->data;
|
||||
// ajout d'un clé 'alt' aux images déjà existantes
|
||||
foreach ($data as $index => $key) {
|
||||
if (strpos($key['label'], "Image bannière") === 0 && !isset($key['header_text'])) {
|
||||
$key = array_merge(
|
||||
$key,
|
||||
[
|
||||
'label_text' => 'Texte entête Menu ',
|
||||
'text' => 'Contenu du texte d\'entête',
|
||||
]
|
||||
);
|
||||
$data[$index] = $key;
|
||||
}
|
||||
}
|
||||
$pageBreeding->data = $data;
|
||||
$pageBreeding->saveOrFail();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class SetDefaultValueOnOrders extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('orders', function (Blueprint $table) {
|
||||
$table->string('phone')->default('')->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('orders', function (Blueprint $table) {
|
||||
$table->string('phone')->change();
|
||||
});
|
||||
}
|
||||
}
|
||||
2
package-lock.json
generated
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "legaulois2020",
|
||||
"name": "srcs",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 334 KiB |
1006
resources/assets/images/marque/poultry_strat2.svg
Normal file
|
After Width: | Height: | Size: 481 KiB |
|
After Width: | Height: | Size: 266 KiB |
|
After Width: | Height: | Size: 317 KiB |
1
resources/assets/images_originals/poultry_strat2.svg
Normal file
|
After Width: | Height: | Size: 480 KiB |
17
resources/sass/front/pages/breeding-page/_common.scss
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
.content {
|
||||
&.breedingPageIndex,
|
||||
&.breedingPageList,
|
||||
&.breedingPageShow
|
||||
{
|
||||
.text-intro {
|
||||
margin-top: 2rem;
|
||||
text-align: center;
|
||||
|
||||
p{
|
||||
font-family: 'Catamaran-Regular';
|
||||
width: 100%;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
& .articles {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 3rem;
|
||||
margin: 3rem 0;
|
||||
|
||||
& > article {
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
.nav-breeding {
|
||||
position: relative;
|
||||
top: -8rem;
|
||||
margin-top: inherit;
|
||||
margin-top: 2rem;
|
||||
width: 100%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@
|
|||
font-size: 0.933rem;
|
||||
text-align: center;
|
||||
transition: transform 0.35s;
|
||||
transform: rotate(-180deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
}
|
||||
& > div {
|
||||
|
|
@ -162,7 +162,7 @@
|
|||
}
|
||||
}
|
||||
& input:checked + label:after {
|
||||
transform: rotate(0deg);
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,13 +119,6 @@
|
|||
font-size: 18px;
|
||||
padding: 0 40px;
|
||||
text-transform: uppercase;
|
||||
&:last-child {
|
||||
color: $color6;
|
||||
font-family: "CreamyScriptRegular";
|
||||
font-size: 26px;
|
||||
text-transform: none;
|
||||
text-shadow: 1px 0 0 $color5, -1px 0 0 $color5, 0 1px 0 $color5, 0 -1px 0 $color5, 1px 1px $color5, -1px -1px 0 $color5, 1px -1px 0 $color5, -1px 1px 0 $color5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
27
resources/sass/front/pages/recipes/_show.scss
vendored
|
|
@ -167,8 +167,7 @@
|
|||
}
|
||||
|
||||
ul,ol {
|
||||
padding-top: 3em;
|
||||
border-top: 0.1em solid #e4e8ec;
|
||||
padding-top: 1em;
|
||||
@media print {
|
||||
padding-top: 1em !important;
|
||||
}
|
||||
|
|
@ -194,14 +193,14 @@
|
|||
}
|
||||
|
||||
.advice {
|
||||
color: #4e3238;
|
||||
font-family: "Catamaran-Regular";
|
||||
font-size: 1.5em;
|
||||
h3 {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
p, div {
|
||||
font-size: 1.5em;
|
||||
padding-top: 2em;
|
||||
border-top: 0.1em solid #e4e8ec;
|
||||
div {
|
||||
padding-top: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -211,10 +210,10 @@
|
|||
}
|
||||
h3 {
|
||||
margin-top: 50px;
|
||||
border-bottom: 1px solid #e4e8ec;
|
||||
font-size: 4.8em;
|
||||
}
|
||||
.tip {
|
||||
margin-top: 40px;
|
||||
margin-top: 1em;
|
||||
|
||||
a {
|
||||
display: flex;
|
||||
|
|
@ -561,16 +560,6 @@
|
|||
font-size: 1.8em;
|
||||
padding: 0 1.2em;
|
||||
text-transform: uppercase;
|
||||
&:last-child {
|
||||
color: $color6;
|
||||
font-family: "CreamyScriptRegular";
|
||||
font-size: 2.8em;
|
||||
text-transform: none;
|
||||
text-shadow: 0.05em 0 0 $color5, -0.05em 0 0 $color5,
|
||||
0 0.05em 0 $color5, 0 -0.05em 0 $color5, 0.05em 0.05em $color5,
|
||||
-0.05em -0.05em 0 $color5, 0.05em -0.05em 0 $color5,
|
||||
-0.05em 0.05em 0 $color5;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1
resources/sass/main.scss
vendored
|
|
@ -62,6 +62,7 @@
|
|||
@import "front/pages/health-nutrition/bloc4";
|
||||
@import "front/pages/health-nutrition/bloc5";
|
||||
|
||||
@import "front/pages/breeding-page/common";
|
||||
@import "front/pages/breeding-page/index";
|
||||
@import "front/pages/breeding-page/list";
|
||||
@import "front/pages/breeding-page/show";
|
||||
|
|
|
|||
|
|
@ -1,57 +1,63 @@
|
|||
{{-- MINI CRUD EDIT --}}
|
||||
<div id="minicrud">
|
||||
@foreach($model->data as $k => $input)
|
||||
@if(!$loop->first)
|
||||
<hr class="w-25">
|
||||
@endif
|
||||
@switch($input['inputType']['value'])
|
||||
@case(InputType::url()->value)
|
||||
@case(InputType::string()->value)
|
||||
<div class="form-group">
|
||||
<label for="{{ $k }}"><small>{{ $input['label'] }}*</small></label>
|
||||
<input id="{{ $k }}" type="text" class="form-control" name="data[{{$k}}][value]" placeholder="{{ $input['label'] }}" value="{{ old("data.$k.value") ?? $input['value'] ?? '' }}" required>
|
||||
</div>
|
||||
@break
|
||||
@case(InputType::text()->value)
|
||||
<div class="form-group vueComponent">
|
||||
<label class="col-form-label">{{ $input['label'] }}*</label>
|
||||
<custom-ckeditor name="data[{{$k}}][text]" dbtext="{{ old("data.$k.text") ?? $input['text'] ?? '' }}"></custom-ckeditor>
|
||||
</div>
|
||||
@break
|
||||
@case(InputType::boolean()->value)
|
||||
<div class="form-group">
|
||||
<label>
|
||||
<input type="checkbox" name="data[{{$k}}][value]" value="1" @if (( old("data.$k.value") ?? $input['value'] ?? 0 ))checked @endif>
|
||||
{{ $input['label'] }}*
|
||||
</label>
|
||||
</div>
|
||||
@break
|
||||
@case(InputType::image()->value)
|
||||
<div class="form-group">
|
||||
@if(isset($input['label']))
|
||||
<h3>{{ $input['label'] }}</h3>
|
||||
@endif
|
||||
<span id="{{ $k }}imgLABEL">{{ __('Visuel * de type JPEG/PNG/SVG - 2Mo max.')}} - {{ isset($input['dimensions']) ? __('Dimensions :dimensions', ['dimensions' => $input['dimensions']]) : __('Dimensions Maximales :max', ['max' => $input['dimensionsMax']]) }} px</span>
|
||||
<div class="input-group mb-3">
|
||||
<div class="custom-file">
|
||||
<input id="{{ $k }}img" type="file" class="custom-file-input" name="data[{{$k}}][value]" accept="image/png,image/jpeg,.svg" aria-describedby="{{ $k }}imgLABEL">
|
||||
<label class="custom-file-label" for="{{ $k }}img">{{ __('Choisir un fichier') }}</label>
|
||||
</div>
|
||||
@if(!$loop->first)
|
||||
<hr class="w-25">
|
||||
@endif
|
||||
@switch($input['inputType']['value'])
|
||||
@case(InputType::url()->value)
|
||||
@case(InputType::string()->value)
|
||||
<div class="form-group">
|
||||
<label for="{{ $k }}"><small>{{ $input['label'] }}*</small></label>
|
||||
<input id="{{ $k }}" type="text" class="form-control" name="data[{{$k}}][value]" placeholder="{{ $input['label'] }}" value="{{ old("data.$k.value") ?? $input['value'] ?? '' }}" required>
|
||||
</div>
|
||||
<br>
|
||||
<label for="{{ $k }}alt"><small>{{ $input['label'] }} - {{ __('Texte alternatif') }}</small></label>
|
||||
<input id="{{ $k }}alt" type="text" class="form-control" name="data[{{$k}}][alt]" placeholder="{{ __('Texte alternatif à l\'image') }}" value="{{ old("data.$k.alt") ?? $input['alt'] ?? '' }}">
|
||||
<br>
|
||||
@if(isset($input['value']) and strlen($input['value']))
|
||||
<img src="{{ $input['value'] }}" alt="image" style="max-height:200px;max-width:100%;object-fit:contain;margin:0 auto;display:block;">
|
||||
@endif
|
||||
</div>
|
||||
@break
|
||||
@case(InputType::imageArray()->value)
|
||||
@case(InputType::labelArray()->value)
|
||||
@default
|
||||
@php throw new Exception('Input type not handled'); @endphp
|
||||
@endswitch
|
||||
@break
|
||||
@case(InputType::text()->value)
|
||||
<div class="form-group vueComponent">
|
||||
<label class="col-form-label">{{ $input['label'] }}*</label>
|
||||
<custom-ckeditor name="data[{{$k}}][text]" dbtext="{{ old("data.$k.text") ?? $input['text'] ?? '' }}"></custom-ckeditor>
|
||||
</div>
|
||||
@break
|
||||
@case(InputType::boolean()->value)
|
||||
<div class="form-group">
|
||||
<label>
|
||||
<input type="checkbox" name="data[{{$k}}][value]" value="1" @if (( old("data.$k.value") ?? $input['value'] ?? 0 ))checked @endif>
|
||||
{{ $input['label'] }}*
|
||||
</label>
|
||||
</div>
|
||||
@break
|
||||
@case(InputType::image()->value)
|
||||
<div class="form-group">
|
||||
@if(isset($input['label']))
|
||||
<h3>{{ $input['label'] }}</h3>
|
||||
@endif
|
||||
@if(isset($input['text']))
|
||||
<div class="form-group vueComponent">
|
||||
<label class="col-form-label">{{ $input['label_text'] }}*</label>
|
||||
<custom-ckeditor name="data[{{$k}}][text]" dbtext="{{ old("data.$k.text") ?? $input['text'] ?? '' }}"></custom-ckeditor>
|
||||
</div>
|
||||
@endif
|
||||
<span id="{{ $k }}imgLABEL">{{ __('Visuel * de type JPEG/PNG/SVG - 2Mo max.')}} - {{ isset($input['dimensions']) ? __('Dimensions :dimensions', ['dimensions' => $input['dimensions']]) : __('Dimensions Maximales :max', ['max' => $input['dimensionsMax']]) }} px</span>
|
||||
<div class="input-group mb-3">
|
||||
<div class="custom-file">
|
||||
<input id="{{ $k }}img" type="file" class="custom-file-input" name="data[{{$k}}][value]" accept="image/png,image/jpeg,.svg" aria-describedby="{{ $k }}imgLABEL">
|
||||
<label class="custom-file-label" for="{{ $k }}img">{{ __('Choisir un fichier') }}</label>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<label for="{{ $k }}alt"><small>{{ $input['label'] }} - {{ __('Texte alternatif') }}</small></label>
|
||||
<input id="{{ $k }}alt" type="text" class="form-control" name="data[{{$k}}][alt]" placeholder="{{ __('Texte alternatif à l\'image') }}" value="{{ old("data.$k.alt") ?? $input['alt'] ?? '' }}">
|
||||
<br>
|
||||
@if(isset($input['value']) and strlen($input['value']))
|
||||
<img src="{{ $input['value'] }}" alt="image" style="max-height:200px;max-width:100%;object-fit:contain;margin:0 auto;display:block;">
|
||||
@endif
|
||||
</div>
|
||||
@break
|
||||
@case(InputType::imageArray()->value)
|
||||
@case(InputType::labelArray()->value)
|
||||
@default
|
||||
@php throw new Exception('Input type not handled'); @endphp
|
||||
@endswitch
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -3939,138 +3939,64 @@
|
|||
<path id="XMLID_14786_" fill="#8C7A80" d="M1098.8,644.2c-1.1,2.8-3.5,4.4-5.3,4.4c-1.2,0-2.6-1.6-2.6-2.7c0-1.7,2.5-10,2.6-11.9
|
||||
c1,0.1,2.1,0.7,2.3,1.4c0.1,0.3-0.1,1.3-0.4,2.5c1-0.1,2.3-0.1,2.7-0.2c-0.3,1.4-0.5,1.4-0.8,1.5c-0.2,0.1-1.4,0.1-2.3,0
|
||||
c-0.6,2.5-1.3,5.7-1.2,6.8c0,0.6,0.4,0.5,0.8,0.4c1.1-0.3,2.7-1.9,3.4-3.6c0,0,0.2-0.4,0.5,0L1098.8,644.2z" />
|
||||
<path id="XMLID_14788_" fill="#8C7A80" d="M713.1,673.7c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4.2,3.2-7.4,6.1-7.4
|
||||
<!--- début --->
|
||||
<path transform="translate(100.000000, 0.000000)" id="XMLID_14788_" fill="#8C7A80" d="M713.1,673.7c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4.2,3.2-7.4,6.1-7.4
|
||||
c1.6,0,2.4,0.7,2.4,1.5c0,0.7-0.4,1.4-0.9,2.4c-0.7,0-0.8-0.1-0.7-0.3c0.3-1.6,0-2.3-0.9-2.3c-1.7,0-2.9,3.5-2.9,6
|
||||
c0,1.1,0.4,1.8,1.3,1.8c1,0,2.1-0.7,3-1.5c0,0,0.3-0.3,0.4,0.3L713.1,673.7z" />
|
||||
<path id="XMLID_14790_" fill="#8C7A80" d="M727.6,671.3c-0.7,1.9-2.3,4.4-4.6,4.4c-1,0-2.5-1.4-2.6-2.4c-0.8,1.1-2,2.4-3.6,2.4
|
||||
<path transform="translate(100.000000, 0.000000)" id="XMLID_14790_" fill="#8C7A80" d="M727.6,671.3c-0.7,1.9-2.3,4.4-4.6,4.4c-1,0-2.5-1.4-2.6-2.4c-0.8,1.1-2,2.4-3.6,2.4
|
||||
c-1.1,0-2.6-1.6-2.6-2.7c0-0.8,0.2-1.7,0.4-2.4c0.4-1.7,1.3-4.2,1.4-5.9c0.8,0.1,2.3,0.7,2.3,1.7c0,0.5-0.2,1.1-0.3,1.6
|
||||
c-0.3,1.5-1,3.7-1,5.2c0,0.3,0,0.6,0.3,0.6c2.7,0,4.5-7,4.7-9.1c0.8,0.1,2.3,0.7,2.3,1.7c0,0.5-0.1,1.1-0.3,1.6
|
||||
c-0.3,1.5-1,3.7-1,5.2c0,0.2,0,0.6,0.3,0.6c1.5,0,2.9-2.6,3.4-3.7c0-0.1,0.1-0.2,0.2-0.2c0.1,0,0.3,0.1,0.3,0.2L727.6,671.3z" />
|
||||
<path id="XMLID_14792_" fill="#8C7A80" d="M735,671.3c-1.1,2.8-4.1,4.5-5.8,4.5s-2.9-1.3-2.9-3.9c0-4.8,3.6-13.1,6.8-13.1
|
||||
<path transform="translate(100.000000, 0.000000)" id="XMLID_14792_" fill="#8C7A80" d="M735,671.3c-1.1,2.8-4.1,4.5-5.8,4.5s-2.9-1.3-2.9-3.9c0-4.8,3.6-13.1,6.8-13.1
|
||||
c1.1,0,1.9,0.8,1.9,2.1c0,3.3-2,7.6-5.7,8.7c-0.5,2.8-0.1,4.2,0.7,4.2c1.2,0,3.6-1.8,4.3-3.5c0,0,0.2-0.4,0.5,0.1L735,671.3z
|
||||
M733.3,660.7c0-0.4-0.1-0.7-0.4-0.7c-1.2,0-2.2,3.5-3.4,8.4C731.8,667.3,733.3,662.8,733.3,660.7z" />
|
||||
<path id="XMLID_14795_" fill="#8C7A80" d="M741.6,671.3c-1.1,2.8-3.5,4.4-5.3,4.4c-1.2,0-2.6-1.6-2.6-2.7c0-1.7,2.5-10,2.6-11.9
|
||||
<path transform="translate(100.000000, 0.000000)" id="XMLID_14795_" fill="#8C7A80" d="M741.6,671.3c-1.1,2.8-3.5,4.4-5.3,4.4c-1.2,0-2.6-1.6-2.6-2.7c0-1.7,2.5-10,2.6-11.9
|
||||
c1,0.1,2.1,0.7,2.3,1.4c0.1,0.3-0.1,1.3-0.4,2.5c1-0.1,2.3-0.1,2.7-0.2c-0.3,1.4-0.5,1.4-0.8,1.5c-0.2,0.1-1.4,0.1-2.3,0
|
||||
c-0.6,2.5-1.3,5.7-1.2,6.8c0,0.6,0.4,0.5,0.8,0.4c1.1-0.3,2.7-1.9,3.4-3.6c0,0,0.2-0.4,0.5,0L741.6,671.3z" />
|
||||
<path id="XMLID_14797_" fill="#8C7A80" d="M747.4,671.4c-1.1,2.7-2.8,4.4-4.6,4.4c-1.2,0-2.6-1.6-2.6-2.7c0-1.7,1.8-6.5,1.9-8.3
|
||||
<path transform="translate(100.000000, 0.000000)" id="XMLID_14797_" fill="#8C7A80" d="M747.4,671.4c-1.1,2.7-2.8,4.4-4.6,4.4c-1.2,0-2.6-1.6-2.6-2.7c0-1.7,1.8-6.5,1.9-8.3
|
||||
c1,0.1,2.2,0.7,2.3,1.4c0.3,1-2,7.6-1.1,7.6c1.1,0.1,2.6-1.7,3.4-3.7c0,0,0.2-0.3,0.5,0L747.4,671.4z M742.7,661.6
|
||||
c0.1-1.2,1-2.1,1.9-2c0.6,0.1,1.2,0.4,1.2,1.3c0,1-0.7,2.3-1.9,2.2C743.1,662.9,742.6,662.3,742.7,661.6z" />
|
||||
<path id="XMLID_14800_" fill="#8C7A80" d="M754.7,666.3c0,4.1-3.8,9.5-6.7,9.5c-1.2,0-2.1-1.7-2.1-2.8c0-1.7,0.6-6.3,0.5-8.2
|
||||
<path transform="translate(100.000000, 0.000000)" id="XMLID_14800_" fill="#8C7A80" d="M754.7,666.3c0,4.1-3.8,9.5-6.7,9.5c-1.2,0-2.1-1.7-2.1-2.8c0-1.7,0.6-6.3,0.5-8.2
|
||||
c1,0,2.3,0.5,2.5,1.1c0.4,1-0.3,7.8-0.1,7.9c1.3,0.4,4.3-5.6,3.8-9.4C753.8,664.5,754.7,665.5,754.7,666.3z" />
|
||||
<path id="XMLID_14802_" fill="#8C7A80" d="M761.9,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
<path transform="translate(100.000000, 0.000000)" id="XMLID_14802_" fill="#8C7A80" d="M761.9,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
c1.6,0,2.4,0.9,2.5,2c0.1,2.8-2.4,4.8-5.2,4.7c0,0.2,0,0.3,0,0.4c0,1.1,0.4,1.9,1.3,1.9c1,0,2.1-0.7,3-1.5c0,0,0.3-0.3,0.4,0.3
|
||||
L761.9,673.8z M760.4,666c-1.1,0-2.2,2.4-2.5,4.4C760.8,669.7,761.8,666,760.4,666z M763,660.1c0,1.4-2.7,3.5-3.2,3.5
|
||||
c0,0-0.2,0-0.5-0.3c1.4-1.7,1.7-4.3,1.7-4.8C762,658.6,763,659.4,763,660.1z" />
|
||||
<path id="XMLID_14806_" fill="#8C7A80" d="M770.6,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
<path transform="translate(100.000000, 0.000000)" id="XMLID_14806_" fill="#8C7A80" d="M770.6,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
c1.6,0,2.4,0.9,2.5,2c0.1,2.8-2.4,4.8-5.2,4.7c0,0.2,0,0.3,0,0.4c0,1.1,0.4,1.9,1.3,1.9c1,0,2.1-0.7,3-1.5c0,0,0.3-0.3,0.4,0.3
|
||||
L770.6,673.8z M769,666c-1.1,0-2.2,2.4-2.5,4.4C769.5,669.7,770.5,666,769,666z" />
|
||||
<path id="XMLID_14809_" fill="#8C7A80" d="M778.3,668.2c0.3-1.7-0.3-2.2-1.1-2.2c-0.7,0-1.1,0.5-1.1,1.1c0,1.6,2.7,3.3,2.7,5.2
|
||||
<path transform="translate(100.000000, 0.000000)" id="XMLID_14809_" fill="#8C7A80" d="M778.3,668.2c0.3-1.7-0.3-2.2-1.1-2.2c-0.7,0-1.1,0.5-1.1,1.1c0,1.6,2.7,3.3,2.7,5.2
|
||||
c0,2-1.7,3.5-4.5,3.5c-2.2,0-2.9-0.7-2.9-1.7c0-0.6,0.3-1.2,0.8-2.2c0.7,0,0.8,0.1,0.7,0.3c-0.3,1.8,0.5,2.3,1.4,2.3
|
||||
s1.6-0.6,1.6-1.5c0-1.6-2.5-3.2-2.5-5.2c0-1.7,1.5-3,3.7-3c2,0,2.6,0.7,2.6,1.6c0,0.5-0.3,1.1-0.8,2
|
||||
C778.3,668.5,778.3,668.4,778.3,668.2z" />
|
||||
<path id="XMLID_14811_" fill="#8C7A80" d="M783.1,674.1c0,1.8-3.1,4.5-3.6,4.5c0,0-0.3,0-0.6-0.4c1.6-2.2,2.1-5.6,2-6.2
|
||||
C782,672.2,783.1,673.2,783.1,674.1z" />
|
||||
<path id="XMLID_14813_" fill="#8C7A80" d="M803.9,671.1c-0.6,1.6-2.2,4.9-4.9,4.7c-0.9-0.1-1.6-0.8-2.2-2.3c-0.7,1-1.7,2.3-3.3,2.3
|
||||
c-1.5,0-2.8-0.8-2.8-3.2c0-3.3,3-7.8,6.9-7.8c1.6,0,2.6,0.9,2.6,1.9s-1.8,7.1-0.7,7.2c1.1,0.1,2.6-1.6,3.4-3.6c0,0,0.1-0.3,0.6-0.1
|
||||
L803.9,671.1z M797.6,666.7c0-0.3-0.3-0.6-0.6-0.6c-2,0-3.4,4.6-3.3,6.8c0,0.7,0.3,1.1,0.7,1.1C796,674,797.6,668.3,797.6,666.7z
|
||||
M800.6,663.1c-1.4,0.4-4.1-0.9-4.1-3c0-0.5,1-1.2,1.9-1.4c0,0.5,0.6,3.6,2.6,3.9C800.8,663.1,800.6,663.1,800.6,663.1z" />
|
||||
<path id="XMLID_14817_" fill="#8C7A80" d="M809.7,679.6c-0.2,0.9-0.4,1.8-0.4,2.7c0,0.1,0,0.2,0,0.3c-0.8-0.1-2.4-0.8-2.4-1.8
|
||||
c0-1.2,0.5-3.3,0.8-4.6c0.6-2.7,1.2-5.3,1.8-8c0.2-0.9,0.7-2.6,0.7-3.5v-0.1c0.8,0.1,2.2,0.7,2.3,1.7c0.6-0.9,1.6-1.6,2.8-1.6
|
||||
c2,0,2.7,1.4,2.7,3.3c0,3.2-2.3,6.9-5.5,7.6c-0.2,0-0.5,0.1-0.7,0.1c-0.4,0-0.8-0.1-1.1-0.3C810.4,676.8,810,678.2,809.7,679.6z
|
||||
M815.3,667.6c0-0.4-0.1-1.2-0.7-1.2c-1.8,0-3.3,5.7-3.3,7.2c0,0.4,0.3,0.6,0.6,0.6C814.1,674.2,815.3,669.2,815.3,667.6z" />
|
||||
<path id="XMLID_14820_" fill="#8C7A80" d="M822,668c1-1.5,2.3-3.2,3.5-3.2c0.8,0,1.2,0.5,1.2,1.3c0,0.5-0.3,1.1-0.8,2
|
||||
c-0.7,0-0.6-0.1-0.6-0.3c0-0.1,0-0.3,0-0.3c-0.1-0.4-0.6-0.6-1.4,0.1c-1.1,0.9-2.3,3-2.7,5.3c-0.2,1.3-0.3,2.3-0.1,2.9
|
||||
c-1.1-0.1-2.5-0.9-2.7-1.6c-0.3-1.2,1.9-8.8,1.6-9.2c1.1,0.1,2.2,1,2.1,1.8c0,0.3-0.2,0.9-0.3,1.5h0.2V668z" />
|
||||
<path id="XMLID_14822_" fill="#8C7A80" d="M825.4,672.3c0-3,2.3-7.5,5.8-7.5c2.2,0,3,1.5,3,3.5c0,3.1-1.8,7.5-5.4,7.5
|
||||
C826.8,675.8,825.4,674.3,825.4,672.3z M832.3,667.6c0-0.6-0.1-1.6-1-1.6c-2,0-2.9,4.9-2.9,6.4c0,0.5,0.1,1.6,0.8,1.6
|
||||
C831.1,674,832.3,669,832.3,667.6z" />
|
||||
<path id="XMLID_14825_" fill="#8C7A80" d="M840.6,670.5c0.9,2.2,2.2,4.4,2.8,4.9c-2.7,0.7-3.9-0.3-5.3-3.8c-0.7,1-2.3,3.5-2.8,4
|
||||
c-0.3,0.3-1.6,0.4-2.5-0.1c0.4-0.1,1.3-1,2.2-2.2c1.1-1.4,1.8-2.6,2.4-3.5c-1-2.3-2-4.5-2.4-5.1c1-0.2,3.1-0.2,3.4,0.4
|
||||
c0.3,0.5,0.8,1.9,1.3,3c0.6-0.9,1.9-2.8,2.4-3.3c0.3-0.3,1.6-0.4,2.5,0.1c-0.9,0.3-3.1,3.4-4.2,5L840.6,670.5z" />
|
||||
<path id="XMLID_14827_" fill="#8C7A80" d="M850.7,671.4c-1.1,2.7-2.8,4.4-4.6,4.4c-1.2,0-2.6-1.6-2.6-2.7c0-1.7,1.8-6.5,1.9-8.3
|
||||
c1,0.1,2.2,0.7,2.3,1.4c0.3,1-2,7.6-1.1,7.6c1.1,0.1,2.6-1.7,3.4-3.7c0,0,0.2-0.3,0.5,0L850.7,671.4z M846,661.6
|
||||
c0.1-1.2,1-2.1,1.9-2c0.6,0.1,1.2,0.4,1.2,1.3c0,1-0.7,2.3-1.9,2.2C846.5,662.9,845.9,662.3,846,661.6z" />
|
||||
<path id="XMLID_14830_" fill="#8C7A80" d="M868.6,671.3c-1,2.8-2.8,4.4-4.6,4.4c-1.2,0-2.6-1.6-2.6-2.7c0-0.9,1.1-5,1.1-6
|
||||
c0-0.7-0.4-0.9-1.4-0.3c-1.4,0.9-2.3,3.3-2.8,5.6c-0.3,1.5-0.5,2.5-0.3,3.1c-1.1-0.1-2.6-0.9-2.8-1.6c-0.2-0.9,1.2-5.3,1.2-6.8
|
||||
c0-0.7-0.4-0.9-1.3-0.3c-1.5,1-2.6,3.8-2.9,6c-0.2,1.2-0.2,2.1-0.1,2.7c-1.1-0.1-2.5-0.9-2.7-1.6c-0.3-1.2,1.8-8.8,1.6-9.3
|
||||
c1.1,0.1,2.3,1,2.2,1.8c0,0.3,0,0.5,0,0.7c1-1.4,2.3-2.5,4-2.4c1.2,0.1,2.1,1,2.2,2.1c0,0,0,0,0,0.1c1-1.2,2.3-2.3,3.9-2.2
|
||||
c1.2,0.1,2.1,1,2.2,2.1c0.1,1.2-0.9,5.2-1,6.1c-0.1,0.7,0,1,0.3,1c1.1,0.1,2.5-1.6,3.4-3.6c0,0,0.2-0.4,0.6,0L868.6,671.3z" />
|
||||
<path id="XMLID_14832_" fill="#8C7A80" d="M874.4,671.4c-1.1,2.7-2.8,4.4-4.6,4.4c-1.2,0-2.6-1.6-2.6-2.7c0-1.7,1.8-6.5,1.9-8.3
|
||||
c1,0.1,2.2,0.7,2.3,1.4c0.3,1-2,7.6-1.1,7.6c1.1,0.1,2.6-1.7,3.4-3.7c0,0,0.2-0.3,0.5,0L874.4,671.4z M869.7,661.6
|
||||
c0.1-1.2,1-2.1,1.9-2c0.6,0.1,1.2,0.4,1.2,1.3c0,1-0.7,2.3-1.9,2.2C870.1,662.9,869.6,662.3,869.7,661.6z" />
|
||||
<path id="XMLID_14835_" fill="#8C7A80" d="M880.8,671.3c-1.1,2.8-3.5,4.4-5.3,4.4c-1.2,0-2.6-1.6-2.6-2.7c0-1.7,2.5-10,2.6-11.9
|
||||
c1,0.1,2.1,0.7,2.3,1.4c0.1,0.3-0.1,1.3-0.4,2.5c1-0.1,2.3-0.1,2.7-0.2c-0.3,1.4-0.5,1.4-0.8,1.5c-0.2,0.1-1.4,0.1-2.3,0
|
||||
c-0.6,2.5-1.3,5.7-1.2,6.8c0,0.6,0.4,0.5,0.8,0.4c1.1-0.3,2.7-1.9,3.4-3.6c0,0,0.2-0.4,0.5,0L880.8,671.3z" />
|
||||
<path id="XMLID_14837_" fill="#8C7A80" d="M886.7,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
c1.6,0,2.4,0.9,2.5,2c0.1,2.8-2.4,4.8-5.2,4.7c0,0.2,0,0.3,0,0.4c0,1.1,0.4,1.9,1.3,1.9c1,0,2.1-0.7,3-1.5c0,0,0.3-0.3,0.4,0.3
|
||||
L886.7,673.8z M885.2,666c-1.1,0-2.2,2.4-2.5,4.4C885.6,669.7,886.6,666,885.2,666z M887.8,660.1c0,1.4-2.7,3.5-3.2,3.5
|
||||
c0,0-0.2,0-0.5-0.3c1.4-1.7,1.7-4.3,1.7-4.8C886.8,658.6,887.8,659.4,887.8,660.1z" />
|
||||
<path id="XMLID_14841_" fill="#8C7A80" d="M907.1,671.1c-0.6,1.6-2.1,4.8-4.7,4.6c-0.8-0.1-1.8-0.8-2.4-2.2c-0.7,1-1.7,2.2-3.3,2.2
|
||||
c-1.5,0-2.8-0.7-2.8-3.3c0-3.4,3-7.7,6.9-7.7c0.2,0,0.3,0,0.5,0c0.7-2.9,1.3-5.8,1.2-6c1.1,0.1,2.3,1,2.2,1.8
|
||||
c-0.3,2.8-1.4,7.6-2.1,11.5c-0.3,1.6,0,1.8,0.3,1.8c1.2,0.1,2.6-1.6,3.4-3.7c0,0,0.1-0.3,0.6,0L907.1,671.1z M900.7,666.7
|
||||
c0-0.4-0.3-0.7-0.6-0.7c-1.9,0-3.3,4.3-3.3,6.7c0,0.8,0.3,1.1,0.6,1.1C899.1,673.9,900.7,668.3,900.7,666.7z" />
|
||||
<path id="XMLID_14844_" fill="#8C7A80" d="M913.1,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
c1.6,0,2.4,0.9,2.5,2c0.1,2.8-2.4,4.8-5.2,4.7c0,0.2,0,0.3,0,0.4c0,1.1,0.4,1.9,1.3,1.9c1,0,2.1-0.7,3-1.5c0,0,0.3-0.3,0.4,0.3
|
||||
L913.1,673.8z M911.5,666c-1.1,0-2.2,2.4-2.5,4.4C911.9,669.7,912.9,666,911.5,666z" />
|
||||
<path id="XMLID_14847_" fill="#8C7A80" d="M920.8,668.2c0.3-1.7-0.3-2.2-1.1-2.2c-0.7,0-1.1,0.5-1.1,1.1c0,1.6,2.7,3.3,2.7,5.2
|
||||
c0,2-1.7,3.5-4.5,3.5c-2.2,0-2.9-0.7-2.9-1.7c0-0.6,0.3-1.2,0.8-2.2c0.7,0,0.8,0.1,0.7,0.3c-0.3,1.8,0.5,2.3,1.4,2.3
|
||||
s1.6-0.6,1.6-1.5c0-1.6-2.5-3.2-2.5-5.2c0-1.7,1.5-3,3.7-3c2,0,2.6,0.7,2.6,1.6c0,0.5-0.3,1.1-0.8,2
|
||||
C920.8,668.5,920.7,668.4,920.8,668.2z" />
|
||||
<path id="XMLID_14849_" fill="#8C7A80" d="M935.8,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
c1.6,0,2.4,0.9,2.5,2c0.1,2.8-2.4,4.8-5.2,4.7c0,0.2,0,0.3,0,0.4c0,1.1,0.4,1.9,1.3,1.9c1,0,2.1-0.7,3-1.5c0,0,0.3-0.3,0.4,0.3
|
||||
L935.8,673.8z M934.2,666c-1.1,0-2.2,2.4-2.5,4.4C934.6,669.7,935.6,666,934.2,666z M936.8,660.1c0,1.4-2.7,3.5-3.2,3.5
|
||||
c0,0-0.2,0-0.5-0.3c1.4-1.7,1.7-4.3,1.7-4.8C935.8,658.6,936.8,659.4,936.8,660.1z" />
|
||||
<path id="XMLID_14853_" fill="#8C7A80" d="M945.9,671.3c-1.1,2.8-4.1,4.5-5.8,4.5s-2.9-1.3-2.9-3.9c0-4.8,3.6-13.1,6.8-13.1
|
||||
c1.1,0,1.9,0.8,1.9,2.1c0,3.3-2,7.6-5.7,8.7c-0.5,2.8-0.1,4.2,0.7,4.2c1.2,0,3.6-1.8,4.3-3.5c0,0,0.2-0.4,0.5,0.1L945.9,671.3z
|
||||
M944.2,660.7c0-0.4-0.1-0.7-0.4-0.7c-1.2,0-2.2,3.5-3.4,8.4C942.7,667.3,944.2,662.8,944.2,660.7z" />
|
||||
<path id="XMLID_14856_" fill="#8C7A80" d="M951.5,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
c1.6,0,2.4,0.9,2.5,2c0.1,2.8-2.4,4.8-5.2,4.7c0,0.2,0,0.3,0,0.4c0,1.1,0.4,1.9,1.3,1.9c1,0,2.1-0.7,3-1.5c0,0,0.3-0.3,0.4,0.3
|
||||
L951.5,673.8z M949.9,666c-1.1,0-2.2,2.4-2.5,4.4C950.4,669.7,951.4,666,949.9,666z" />
|
||||
<path id="XMLID_14859_" fill="#8C7A80" d="M961.6,666.3c0,4.1-3.8,9.5-6.7,9.5c-1.2,0-2.1-1.7-2.1-2.8c0-1.7,0.6-6.3,0.5-8.2
|
||||
c1,0,2.3,0.5,2.5,1.1c0.4,1-0.3,7.8-0.1,7.9c1.3,0.4,4.3-5.6,3.8-9.4C960.6,664.5,961.6,665.5,961.6,666.3z" />
|
||||
<path id="XMLID_14861_" fill="#8C7A80" d="M974.6,671.1c-0.6,1.6-2.2,4.9-4.9,4.7c-0.9-0.1-1.6-0.8-2.2-2.3c-0.7,1-1.7,2.3-3.3,2.3
|
||||
c-1.5,0-2.8-0.8-2.8-3.2c0-3.3,3-7.8,6.9-7.8c1.6,0,2.6,0.9,2.6,1.9s-1.8,7.1-0.7,7.2c1.1,0.1,2.6-1.6,3.4-3.6c0,0,0.1-0.3,0.6-0.1
|
||||
L974.6,671.1z M968.3,666.7c0-0.3-0.3-0.6-0.6-0.6c-2,0-3.4,4.6-3.3,6.8c0,0.7,0.3,1.1,0.7,1.1C966.7,674,968.3,668.3,968.3,666.7z" />
|
||||
<path id="XMLID_14864_" fill="#8C7A80" d="M978.7,674c-0.6,0.9-1.6,1.7-2.8,1.7c-2,0-2.8-1.4-2.8-3.2c0-3.5,3.2-7.8,6.9-7.8
|
||||
c1.2,0,2.6,0.7,2.6,2.1c0,4.4-3,17.6-8.8,17.6c-1.4,0-2.3-0.9-2.3-2.3c0-3.3,3.5-5.3,6.4-5.6C978.2,675.7,978.4,674.9,978.7,674
|
||||
L978.7,674z M973.5,682.2c0,0.3,0.1,0.8,0.6,0.8c1.8,0,3.3-3.9,3.7-5.4C975.9,677.9,973.5,680.2,973.5,682.2z M980,666.9
|
||||
c0-0.3-0.2-0.8-0.6-0.8c-2.1,0-3.3,5-3.3,6.6c0,0.5,0.1,1.2,0.7,1.2C978.6,673.9,980,668.4,980,666.9z" />
|
||||
<path id="XMLID_14868_" fill="#8C7A80" d="M990.9,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
c1.6,0,2.4,0.9,2.5,2c0.1,2.8-2.4,4.8-5.2,4.7c0,0.2,0,0.3,0,0.4c0,1.1,0.4,1.9,1.3,1.9c1,0,2.1-0.7,3-1.5c0,0,0.3-0.3,0.4,0.3
|
||||
L990.9,673.8z M989.3,666c-1.1,0-2.2,2.4-2.5,4.4C989.7,669.7,990.8,666,989.3,666z" />
|
||||
<path id="XMLID_14871_" fill="#8C7A80" d="M998.6,668.2c0.3-1.7-0.3-2.2-1.1-2.2c-0.7,0-1.1,0.5-1.1,1.1c0,1.6,2.7,3.3,2.7,5.2
|
||||
c0,2-1.7,3.5-4.5,3.5c-2.2,0-2.9-0.7-2.9-1.7c0-0.6,0.3-1.2,0.8-2.2c0.7,0,0.8,0.1,0.7,0.3c-0.3,1.8,0.5,2.3,1.4,2.3
|
||||
s1.6-0.6,1.6-1.5c0-1.6-2.5-3.2-2.5-5.2c0-1.7,1.5-3,3.7-3c2,0,2.6,0.7,2.6,1.6c0,0.5-0.3,1.1-0.8,2
|
||||
C998.6,668.5,998.6,668.4,998.6,668.2z" />
|
||||
<path id="XMLID_14873_" fill="#8C7A80" d="M1003.4,674.1c0,1.8-3.1,4.5-3.6,4.5c0,0-0.3,0-0.6-0.4c1.6-2.2,2.1-5.6,2-6.2
|
||||
C1002.3,672.2,1003.4,673.2,1003.4,674.1z" />
|
||||
<g id="france_2_">
|
||||
<path id="XMLID_14875_" fill="#4F3339" d="M1018.5,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
<g id="france_2_" transform="translate(100.000000, 0.000000)">
|
||||
<path id="XMLID_14987_" fill="#4F3339" d="M795.8,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
c1.6,0,2.4,0.9,2.5,2c0.1,2.8-2.4,4.8-5.2,4.7c0,0.2,0,0.3,0,0.4c0,1.1,0.4,1.9,1.3,1.9c1,0,2.1-0.7,3-1.5c0,0,0.3-0.3,0.4,0.3
|
||||
L1018.5,673.8z M1016.9,666c-1.1,0-2.2,2.4-2.5,4.4C1017.3,669.7,1018.3,666,1016.9,666z" />
|
||||
<path id="XMLID_14878_" fill="#4F3339" d="M1032.9,671.4c-1.1,2.8-2.8,4.4-4.6,4.4c-1.2,0-2.6-1.6-2.6-2.6c0-0.9,1.1-4.9,1.1-6
|
||||
L795.8,673.8z M794.2,666.1c-1.1,0-2.2,2.4-2.5,4.4C794.7,669.7,795.7,666.1,794.2,666.1z" />
|
||||
<path id="XMLID_14990_" fill="#4F3339" d="M810.3,671.4c-1.1,2.8-2.8,4.4-4.6,4.4c-1.2,0-2.6-1.6-2.6-2.6c0-0.9,1.1-4.9,1.1-6
|
||||
c0-0.7-0.4-1-1.4-0.3c-1.4,1-2.5,3.5-2.8,5.8c-0.2,1.3-0.3,2.3-0.1,2.9c-1.1-0.1-2.5-0.9-2.7-1.6c-0.3-1.2,1.9-8.7,1.6-9.2
|
||||
c1.1,0.1,2.3,1,2.2,1.8c0,0.3,0,0.4,0,0.5c1-1.2,2.4-2.3,3.9-2.2c1.2,0.1,2.2,1,2.2,2.1c0.1,1.2-0.9,5.2-1,6.1c-0.1,0.7,0,1,0.2,1
|
||||
c1.1,0.1,2.5-1.6,3.4-3.7c0,0,0.2-0.4,0.5,0L1032.9,671.4z" />
|
||||
<path id="XMLID_14880_" fill="#4F3339" d="M1046.8,666.1c-0.5,1.5-0.8,1.5-1,1.6s-2.8-0.1-4.5-0.1c-0.7,3.7-1.4,7.6-1,8.1
|
||||
c1.1,0.1,2.5-1.6,3.4-3.7c0,0,0.2-0.4,0.5,0L810.3,671.4z" />
|
||||
<path id="XMLID_14992_" fill="#4F3339" d="M824.2,666.2c-0.5,1.5-0.8,1.5-1,1.6s-2.8-0.1-4.5-0.1c-0.7,3.7-1.4,7.6-1,8.1
|
||||
c-1.1-0.1-2.7-1-2.9-1.6c-0.3-1.2,3.2-14.9,2.9-15.3c0,0,0,0,8.8,0c-0.5,1.6-0.8,1.7-1.1,1.8c-0.2,0.1-3.5-0.1-5.2-0.1
|
||||
c-0.1,0.6-0.6,3-1.1,5.6H1046.8z" />
|
||||
<path id="XMLID_14882_" fill="#4F3339" d="M1049.7,668c1-1.5,2.3-3.2,3.5-3.2c0.8,0,1.2,0.5,1.2,1.3c0,0.5-0.3,1.1-0.8,2
|
||||
c-0.1,0.6-0.6,3-1.1,5.6H824.2z" />
|
||||
<path id="XMLID_14994_" fill="#4F3339" d="M827,668c1-1.5,2.3-3.2,3.5-3.2c0.8,0,1.2,0.5,1.2,1.3c0,0.5-0.3,1.1-0.8,2
|
||||
c-0.7,0-0.6-0.1-0.6-0.3c0-0.1,0-0.3,0-0.3c-0.1-0.4-0.6-0.6-1.4,0.1c-1.1,0.9-2.3,3-2.7,5.3c-0.2,1.3-0.3,2.3-0.1,2.9
|
||||
c-1.1-0.1-2.5-0.9-2.7-1.6c-0.3-1.2,1.9-8.8,1.6-9.2c1.1,0.1,2.2,1,2.1,1.8c0,0.3-0.2,0.9-0.3,1.5h0.2V668z" />
|
||||
<path id="XMLID_14884_" fill="#4F3339" d="M1066.3,671.1c-0.6,1.6-2.2,4.9-4.9,4.7c-0.9-0.1-1.6-0.8-2.2-2.3c-0.7,1-1.7,2.3-3.3,2.3
|
||||
c-1.5,0-2.8-0.8-2.8-3.2c0-3.3,3-7.8,6.9-7.8c1.6,0,2.6,0.9,2.6,1.9s-1.8,7.1-0.7,7.2c1.1,0.1,2.6-1.6,3.4-3.6c0,0,0.1-0.3,0.6-0.1
|
||||
L1066.3,671.1z M1060,666.7c0-0.3-0.3-0.6-0.6-0.6c-2,0-3.4,4.6-3.3,6.8c0,0.7,0.3,1.1,0.7,1.1C1058.3,674,1060,668.3,1060,666.7z" />
|
||||
<path id="XMLID_14887_" fill="#4F3339" d="M1078,671.4c-1.1,2.8-2.8,4.4-4.6,4.4c-1.2,0-2.6-1.6-2.6-2.6c0-0.9,1.1-4.9,1.1-6
|
||||
<path id="XMLID_14996_" fill="#4F3339" d="M843.6,671.1c-0.6,1.6-2.2,4.9-4.9,4.7c-0.9-0.1-1.6-0.8-2.2-2.3c-0.7,1-1.7,2.3-3.3,2.3
|
||||
c-1.5,0-2.8-0.8-2.8-3.2c0-3.3,3-7.8,6.9-7.8c1.6,0,2.6,0.9,2.6,1.9s-1.8,7.1-0.7,7.2c1.1,0.1,2.6-1.6,3.4-3.6
|
||||
c0,0,0.1-0.3,0.6-0.1L843.6,671.1z M837.3,666.7c0-0.3-0.3-0.6-0.6-0.6c-2,0-3.4,4.6-3.3,6.8c0,0.7,0.3,1.1,0.7,1.1
|
||||
C835.7,674,837.3,668.3,837.3,666.7z" />
|
||||
<path id="XMLID_14999_" fill="#4F3339" d="M855.4,671.4c-1.1,2.8-2.8,4.4-4.6,4.4c-1.2,0-2.6-1.6-2.6-2.6c0-0.9,1.1-4.9,1.1-6
|
||||
c0-0.7-0.4-1-1.4-0.3c-1.4,1-2.5,3.5-2.8,5.8c-0.2,1.3-0.3,2.3-0.1,2.9c-1.1-0.1-2.5-0.9-2.7-1.6c-0.3-1.2,1.9-8.7,1.6-9.2
|
||||
c1.1,0.1,2.3,1,2.2,1.8c0,0.3,0,0.4,0,0.5c1-1.2,2.4-2.3,3.9-2.2c1.2,0.1,2.2,1,2.2,2.1c0.1,1.2-0.9,5.2-1,6.1c-0.1,0.7,0,1,0.2,1
|
||||
c1.1,0.1,2.5-1.6,3.4-3.7c0,0,0.2-0.4,0.5,0L1078,671.4z" />
|
||||
<path id="XMLID_14889_" fill="#4F3339" d="M1083.9,673.7c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4.2,3.2-7.4,6.1-7.4
|
||||
c1.1,0.1,2.5-1.6,3.4-3.7c0,0,0.2-0.4,0.5,0L855.4,671.4z" />
|
||||
<path id="XMLID_15001_" fill="#4F3339" d="M861.3,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4.2,3.2-7.4,6.1-7.4
|
||||
c1.6,0,2.4,0.7,2.4,1.5c0,0.7-0.4,1.4-0.9,2.4c-0.7,0-0.8-0.1-0.7-0.3c0.3-1.6,0-2.3-0.9-2.3c-1.7,0-2.9,3.5-2.9,6
|
||||
c0,1.1,0.4,1.8,1.3,1.8c1,0,2.1-0.7,3-1.5c0,0,0.3-0.3,0.4,0.3L1083.9,673.7z" />
|
||||
<path id="XMLID_14891_" fill="#4F3339" d="M1092.4,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
c0,1.1,0.4,1.8,1.3,1.8c1,0,2.1-0.7,3-1.5c0,0,0.3-0.3,0.4,0.3L861.3,673.8z" />
|
||||
<path id="XMLID_15003_" fill="#4F3339" d="M869.8,673.8c-0.9,1.1-2.6,2-4.4,2c-1.9,0-3.1-1.5-2.9-3.6c0.3-4,3.1-7.5,5.8-7.5
|
||||
c1.6,0,2.4,0.9,2.5,2c0.1,2.8-2.4,4.8-5.2,4.7c0,0.2,0,0.3,0,0.4c0,1.1,0.4,1.9,1.3,1.9c1,0,2.1-0.7,3-1.5c0,0,0.3-0.3,0.4,0.3
|
||||
L1092.4,673.8z M1090.8,666c-1.1,0-2.2,2.4-2.5,4.4C1091.3,669.7,1092.3,666,1090.8,666z" />
|
||||
L869.8,673.8z M868.2,666.1c-1.1,0-2.2,2.4-2.5,4.4C868.6,669.7,869.6,666.1,868.2,666.1z" />
|
||||
</g>
|
||||
<g>
|
||||
<path id="XMLID_15187_" fill="#8C7A80" d="M103,376.8c0.3-1.7-0.3-2.2-1.1-2.2c-0.7,0-1.1,0.5-1.1,1.1c0,1.6,2.7,3.3,2.7,5.2
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 595 KiB After Width: | Height: | Size: 587 KiB |
|
|
@ -16,22 +16,24 @@
|
|||
{!! clean($generalConfig->data['breeding_sub_header_text']['text']) !!}
|
||||
</div>
|
||||
<div class="cards">
|
||||
@php $breederPageTypes = collect($generalConfig->data)->filter(function($v, $key) {
|
||||
@php
|
||||
$breederPageTypes = collect($generalConfig->data)->filter(function($v, $key) {
|
||||
return strpos($key, 'breeding_page_') === 0 and isset($v['type']) and $v['inputType']['value'] === InputType::string()->value;
|
||||
}); @endphp
|
||||
});
|
||||
@endphp
|
||||
@foreach($breederPageTypes as $key => $pageType)
|
||||
@php $img = $generalConfig->data[str_replace('_text', '_img', $key)]; @endphp
|
||||
<div class="card">
|
||||
<a href="{{ route('breeding-page.list', BreedingPageType::make($pageType['type']['value'])) }}">
|
||||
<div class="hoverFigure"><span>{{ __('En savoir +') }}</span></div>
|
||||
<picture>
|
||||
<source srcset="{{ url(resizePublic($img['value'], 'breedingWebp')) }}" type="image/webp">
|
||||
<img src="{{ url($img['value']) }}" width="559" alt="Le Gaulois - {{ $img['alt'] }}">
|
||||
</picture>
|
||||
</a>
|
||||
<h2>{{ $pageType['value'] }}</h2>
|
||||
<a href="{{ route('breeding-page.list', BreedingPageType::make($pageType['type']['value'])) }}">{{ _('En savoir +') }}</a>
|
||||
</div>
|
||||
@php $img = $generalConfig->data[str_replace('_text', '_img', $key)]; @endphp
|
||||
<div class="card">
|
||||
<a href="{{ route('breeding-page.list', BreedingPageType::make($pageType['type']['value'])) }}">
|
||||
<div class="hoverFigure"><span>{{ __('En savoir +') }}</span></div>
|
||||
<picture>
|
||||
<source srcset="{{ url(resizePublic($img['value'], 'breedingWebp')) }}" type="image/webp">
|
||||
<img src="{{ url($img['value']) }}" width="559" alt="Le Gaulois - {{ $img['alt'] }}">
|
||||
</picture>
|
||||
</a>
|
||||
<h2>{{ $pageType['value'] }}</h2>
|
||||
<a href="{{ route('breeding-page.list', BreedingPageType::make($pageType['type']['value'])) }}">{{ _('En savoir +') }}</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@
|
|||
|
||||
@section('content')
|
||||
<div class="content breedingPageList">
|
||||
<div class="text-intro">
|
||||
{!! clean($headerText) !!}
|
||||
</div>
|
||||
@include('front.breeding-page.nav')
|
||||
<div class="articles">
|
||||
@foreach($pages as $page)
|
||||
|
|
|
|||
|
|
@ -1,51 +1,51 @@
|
|||
@php
|
||||
$vegetal = $value === "le-vegetal" ? true : false;
|
||||
$vegetal = $value === 'le-vegetal' ? true : false;
|
||||
|
||||
$metatitle = __('Toutes les recettes');
|
||||
$metadescription = __('Envie de préparer des plats gourmands avec de la volaille 100% française ? Le Gaulois a la solution avec ses recettes faciles et originales');
|
||||
|
||||
if($type) {
|
||||
if ($type) {
|
||||
switch ($type) {
|
||||
case RecipeFilter::range()->value:
|
||||
$_ranges = $ranges->keyBy('slug')->all();
|
||||
if(array_key_exists(request()->value, $_ranges)) {
|
||||
if (array_key_exists(request()->value, $_ranges)) {
|
||||
$metatitle = __('Toutes les recettes pour la gamme : :gamme', [
|
||||
'gamme' => $_ranges[request()->value]->name
|
||||
'gamme' => $_ranges[request()->value]->name,
|
||||
]);
|
||||
$metadescription .= ' : '.$_ranges[request()->value]->name;
|
||||
$metadescription .= ' : ' . $_ranges[request()->value]->name;
|
||||
}
|
||||
break;
|
||||
case RecipeFilter::consumption()->value:
|
||||
$_times = $consumptionTimes->keyBy('slug')->all();
|
||||
if(array_key_exists(request()->value, $_times)) {
|
||||
if (array_key_exists(request()->value, $_times)) {
|
||||
$metatitle = __('Toutes les recettes par moment de consommation : :moment', [
|
||||
'moment' => $_times[request()->value]->name
|
||||
'moment' => $_times[request()->value]->name,
|
||||
]);
|
||||
$metadescription .= ' : '.$_times[request()->value]->name;
|
||||
$metadescription .= ' : ' . $_times[request()->value]->name;
|
||||
}
|
||||
break;
|
||||
case RecipeFilter::cooking()->value:
|
||||
if($value) {
|
||||
if ($value) {
|
||||
$metatitle = __('Toutes les recettes par temps de cuisson : :cooktime', [
|
||||
'cooktime' => $value->label
|
||||
'cooktime' => $value->label,
|
||||
]);
|
||||
$metadescription .= '. Temps de cuisson : '.$value->label;
|
||||
$metadescription .= '. Temps de cuisson : ' . $value->label;
|
||||
}
|
||||
break;
|
||||
case RecipeFilter::preparation()->value:
|
||||
if($value) {
|
||||
if ($value) {
|
||||
$metatitle = __('Toutes les recettes par temps de préparation : :preptime', [
|
||||
'preptime' => $value->label
|
||||
'preptime' => $value->label,
|
||||
]);
|
||||
$metadescription .= '. Temps de préparation : '.$value->label;
|
||||
$metadescription .= '. Temps de préparation : ' . $value->label;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(request()->page) {
|
||||
$metatitle .= ' - '.__('page :number', ['number' => request()->page]);
|
||||
$metadescription .= ' - '.__('page :number', ['number' => request()->page]);
|
||||
if (request()->page) {
|
||||
$metatitle .= ' - ' . __('page :number', ['number' => request()->page]);
|
||||
$metadescription .= ' - ' . __('page :number', ['number' => request()->page]);
|
||||
}
|
||||
|
||||
@endphp
|
||||
|
|
@ -57,36 +57,34 @@ if(request()->page) {
|
|||
@section('bg-color', 'white-bg')
|
||||
|
||||
@section('sub_header')
|
||||
<div class="sub_header sub_header_recipes">
|
||||
@include('front.recipes.index-header', ['title' => __('Les Recettes')])
|
||||
</div>
|
||||
<div class="sub_header sub_header_recipes">
|
||||
@include('front.recipes.index-header', ['title' => __('Les Recettes')])
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="content recipes">
|
||||
@include('front.recipes.recipes-filter')
|
||||
{{ $recipes->withQueryString()->links() }}
|
||||
<div class="recipeList">
|
||||
@if(count($recipes))
|
||||
@foreach($recipes as $recipe)
|
||||
<div class="recipeWrapper">
|
||||
<a href="{{ route('recipes.show', $recipe->slug) }}">
|
||||
<figure>
|
||||
<div class="hoverFigure">
|
||||
<h5>{{ __('Voir la recette !') }}</h5>
|
||||
<div class="content recipes">
|
||||
@include('front.recipes.recipes-filter')
|
||||
{{ $recipes->withQueryString()->links() }}
|
||||
<div class="recipeList">
|
||||
@if (count($recipes))
|
||||
@foreach ($recipes as $recipe)
|
||||
<div class="recipeWrapper">
|
||||
<a href="{{ route('recipes.show', $recipe->slug) }}">
|
||||
<figure>
|
||||
<div class="hoverFigure">
|
||||
<h5>{{ __('Voir la recette !') }}</h5>
|
||||
</div>
|
||||
<img src="{{ asset($recipe->picture) }}" alt="{{ $recipe->title }}">
|
||||
</figure>
|
||||
<p class="name_recette">{{ $recipe->title }}</p>
|
||||
</a>
|
||||
</div>
|
||||
<img src="{{ asset($recipe->picture) }}" alt="{{ $recipe->title }}">
|
||||
</figure>
|
||||
<p class="name_recette">{{ $recipe->title }}</p>
|
||||
<p>{{ $recipe->catch_phrase }}</p>
|
||||
</a>
|
||||
@endforeach
|
||||
@else
|
||||
<h3>{{ __('Aucun résultat') }}</h3>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<h3>{{ __('Aucun résultat') }}</h3>
|
||||
@endif
|
||||
{{ $recipes->withQueryString()->links() }}
|
||||
</div>
|
||||
{{ $recipes->withQueryString()->links() }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
|
|
|||
|
|
@ -3,226 +3,241 @@ $vegetal = ($recipe->products->first()->range->slug ?? '') == 'le-vegetal';
|
|||
@endphp
|
||||
@extends('layouts.app', ['brParam' => $recipe, 'vegetal' => $vegetal])
|
||||
@section('title', strlen($recipe->seo_title) ? $recipe->seo_title : $recipe->title)
|
||||
@section('description', strlen($recipe->seo_description) ? $recipe->seo_description : ($recipe->catch_phrase ?? $recipe->title))
|
||||
@section('description', strlen($recipe->seo_description) ? $recipe->seo_description : $recipe->catch_phrase ??
|
||||
$recipe->title)
|
||||
|
||||
@section('breadcrumb', request()->route()->getName())
|
||||
@section('breadcrumb',
|
||||
request()->route()->getName(),)
|
||||
|
||||
@section('bg-color', 'white-bg recipeShow')
|
||||
|
||||
@section('microdata')
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org/",
|
||||
"@type": "Recipe",
|
||||
"description": "{{ strlen($recipe->catch_phrase) ? $recipe->catch_phrase : ($recipe->seo_description ?? $recipe->title) }}",
|
||||
"image": "{{ url($recipe->picture) }}",
|
||||
"name": "{{ strlen($recipe->title) ? $recipe->title : $recipe->seo_title }}",
|
||||
@if(strlen($recipe->ingredients))
|
||||
"recipeIngredient": "{!! trim(preg_replace('/\s\s+/', ' ', str_replace('"', '\"', $recipe->ingredients))) !!}",
|
||||
@endif
|
||||
@if($recipe->preparation_time)
|
||||
"prepTime": "PT{{ $recipe->preparation_time }}M",
|
||||
@endif
|
||||
@if($recipe->cooking_time)
|
||||
"cookTime" : "PT{{ $recipe->cooking_time }}M",
|
||||
@endif
|
||||
@if(strlen($recipe->preparation))
|
||||
"recipeInstructions": "{!! str_replace('"', '\"', trim(preg_replace('/\s\s+/', ' ', $recipe->preparation))) !!}",
|
||||
@endif
|
||||
"totalTime": "PT{{ ($recipe->cooking_time ?? 0) + ($recipe->preparation_time ?? 0) }}M",
|
||||
"recipeCategory": "Main Dish",
|
||||
"author": "Le Gaulois",
|
||||
"nutrition": "",
|
||||
"keywords": "{{ trim(preg_replace('/\s\s+/', ' ', str_replace(';', ',', str_replace('"', '\"', $recipe->tags)))) }}"
|
||||
}
|
||||
</script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org/",
|
||||
"@type": "Recipe",
|
||||
"description": "{{ strlen($recipe->catch_phrase) ? $recipe->catch_phrase : $recipe->seo_description ?? $recipe->title }}",
|
||||
"image": "{{ url($recipe->picture) }}",
|
||||
"name": "{{ strlen($recipe->title) ? $recipe->title : $recipe->seo_title }}",
|
||||
@if (strlen($recipe->ingredients))
|
||||
"recipeIngredient": "{!! trim(preg_replace('/\s\s+/', ' ', str_replace('"', '\"', $recipe->ingredients))) !!}",
|
||||
@endif
|
||||
@if ($recipe->preparation_time)
|
||||
"prepTime": "PT{{ $recipe->preparation_time }}M",
|
||||
@endif
|
||||
@if ($recipe->cooking_time)
|
||||
"cookTime": "PT{{ $recipe->cooking_time }}M",
|
||||
@endif
|
||||
@if (strlen($recipe->preparation))
|
||||
"recipeInstructions": "{!! str_replace('"', '\"', trim(preg_replace('/\s\s+/', ' ', $recipe->preparation))) !!}",
|
||||
@endif
|
||||
"totalTime": "PT{{ ($recipe->cooking_time ?? 0) + ($recipe->preparation_time ?? 0) }}M",
|
||||
"recipeCategory": "Main Dish",
|
||||
"author": "Le Gaulois",
|
||||
"nutrition": "",
|
||||
"keywords": "{{ trim(preg_replace('/\s\s+/', ' ', str_replace(';', ',', str_replace('"', '\"', $recipe->tags)))) }}"
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@section('sub_header')
|
||||
<div class="sub_header sub_header_recipe @if(($recipe->products->first()->range->slug ?? '') =='le-vegetal' )vegetal @endif">
|
||||
<div class="recipeVisualHeader">
|
||||
@if($recipe->type->equals(RecipeType::video()))
|
||||
<iframe src="{{ $recipe->video_link }}?autoplay=1&color=ff9933&title=0&byline=0" width="100%" height="100%" frameborder="0" allow="fullscreen"></iframe>
|
||||
@else
|
||||
<img src="{{ $recipe->picture }}" alt="{{ $recipe->title }}" />
|
||||
@endif
|
||||
</div>
|
||||
<div class="recipeDetailHeader">
|
||||
<h1>{{ $recipe->title }}</h1>
|
||||
@if(strlen($recipe->tags))
|
||||
<div class="recipeTags">
|
||||
@foreach(explode(';', $recipe->tags) as $tag)
|
||||
@if(strlen($tag))
|
||||
<div class="recipeTag">{{ $tag }}</div>
|
||||
<div class="sub_header sub_header_recipe @if (($recipe->products->first()->range->slug ?? '') == 'le-vegetal') vegetal @endif">
|
||||
<div class="recipeVisualHeader">
|
||||
@if ($recipe->type->equals(RecipeType::video()))
|
||||
<iframe src="{{ $recipe->video_link }}?autoplay=1&color=ff9933&title=0&byline=0" width="100%"
|
||||
height="100%" frameborder="0" allow="fullscreen"></iframe>
|
||||
@else
|
||||
<img src="{{ $recipe->picture }}" alt="{{ $recipe->title }}" />
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<div class="recipeIcons">
|
||||
@if($recipe->number_people)
|
||||
<div class="persons">
|
||||
<i class="icon-notes"></i>
|
||||
<h5>{{ __(':count personne(s)', ['count' => $recipe->number_people]) }}</h5>
|
||||
</div>
|
||||
@endif
|
||||
@if($recipe->preparation_time)
|
||||
<div class="preptime">
|
||||
<i class="icon-preparation"></i>
|
||||
<h5>{!! sprintf(__(':time min %s de préparation', ['time' => $recipe->preparation_time]), '<br>') !!}</h5>
|
||||
</div>
|
||||
@endif
|
||||
@if($recipe->cooking_time)
|
||||
<div class="cooktime">
|
||||
<i class="icon-cuisson"></i>
|
||||
<h5>{!! sprintf(__(':time min %s de cuisson', ['time' => $recipe->cooking_time]), '<br>') !!}</h5>
|
||||
</div>
|
||||
@endif
|
||||
<div class="difficulty">
|
||||
<div class="{{ $recipe->difficulty->getDefinition() }}">
|
||||
@for($i = 0; $i < $recipe->difficulty->value; $i++)
|
||||
<i class="icon-difficulte"></i>
|
||||
@endfor
|
||||
<div class="recipeDetailHeader">
|
||||
<h1>{{ $recipe->title }}</h1>
|
||||
@if (strlen($recipe->tags))
|
||||
<div class="recipeTags">
|
||||
@foreach (explode(';', $recipe->tags) as $tag)
|
||||
@if (strlen($tag))
|
||||
<div class="recipeTag">{{ $tag }}</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<div class="recipeIcons">
|
||||
@if ($recipe->number_people)
|
||||
<div class="persons">
|
||||
<i class="icon-notes"></i>
|
||||
<h5>{{ __(':count personne(s)', ['count' => $recipe->number_people]) }}</h5>
|
||||
</div>
|
||||
@endif
|
||||
@if ($recipe->preparation_time)
|
||||
<div class="preptime">
|
||||
<i class="icon-preparation"></i>
|
||||
<h5>{!! sprintf(__(':time min %s de préparation', ['time' => $recipe->preparation_time]), '<br>') !!}</h5>
|
||||
</div>
|
||||
@endif
|
||||
@if ($recipe->cooking_time)
|
||||
<div class="cooktime">
|
||||
<i class="icon-cuisson"></i>
|
||||
<h5>{!! sprintf(__(':time min %s de cuisson', ['time' => $recipe->cooking_time]), '<br>') !!}</h5>
|
||||
</div>
|
||||
@endif
|
||||
<div class="difficulty">
|
||||
<div class="{{ $recipe->difficulty->getDefinition() }}">
|
||||
@for ($i = 0; $i < $recipe->difficulty->value; $i++)
|
||||
<i class="icon-difficulte"></i>
|
||||
@endfor
|
||||
</div>
|
||||
<h5>{{ $recipe->difficulty }}</h5>
|
||||
</div>
|
||||
<h5>{{ $recipe->difficulty }}</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="content recipe @if($vegetal)vegetal @endif">
|
||||
<div class="share">
|
||||
<a class="mediaShare" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u={{ request()->fullurl() }}&title={{ $recipe->title }}" title="{{ __('Partager sur Facebook') }}">
|
||||
<i class="fab fa-facebook-f"></i>
|
||||
</a>
|
||||
<a class="mediaShare" target="_blank" href="https://pinterest.com/pin/create/button/?url={{ request()->fullurl() }}&media={{ $recipe->picture }}&description={{ $recipe->title }}" title="{{ __('Partager sur Pinterest') }}">
|
||||
<i class="fab fa-pinterest"></i>
|
||||
</a>
|
||||
<a href="https://www.instagram.com/legaulois_officiel/" target="_blank">
|
||||
<i class="fab fa-instagram"></i>
|
||||
</a>
|
||||
@if(auth('customer')->check())
|
||||
<span id="setFavorite"><i class="icon-favorite @if(auth('customer')->user()->hasRecipe($recipe))active @endif"></i></span>
|
||||
@else
|
||||
<a href="{{ route('form-connexion') }}"><i class="icon-favorite"></i></a>
|
||||
@endif
|
||||
<span class="printRecipe"><i class="icon-print"></i></span>
|
||||
</div>
|
||||
|
||||
@if($recipe->ingredients)
|
||||
<aside class="ingredients">
|
||||
@if(count($recipe->products))
|
||||
<figure>
|
||||
@foreach($recipe->products as $product)
|
||||
<img src="{{ asset(resizePublic($product->picture, 'recipeFilterPNG')) }}" alt="{{ $product->name }}" />
|
||||
@endforeach
|
||||
</figure>
|
||||
@endif
|
||||
<h3>{{ __('Ingrédients') }}</h3>
|
||||
<div>{!! clean($recipe->ingredients) !!}</div>
|
||||
</aside>
|
||||
@endif
|
||||
|
||||
<section>
|
||||
@if(strlen($recipe->catch_phrase))
|
||||
<header>
|
||||
<h2>"{{ $recipe->catch_phrase }}"</h2>
|
||||
</header>
|
||||
@endif
|
||||
|
||||
@if(strlen($recipe->preparation))
|
||||
<article class="preparation">
|
||||
<h3>{{ __('Préparation') }}</h3>
|
||||
<div>{!! clean($recipe->preparation) !!}</div>
|
||||
</article>
|
||||
@endif
|
||||
|
||||
@if(strlen($recipe->advice))
|
||||
<article class="advice">
|
||||
<h3>{{ __('Le Conseil Le Gaulois') }}</h3>
|
||||
<div>{!! clean($recipe->advice) !!}</div>
|
||||
</article>
|
||||
@endif
|
||||
|
||||
@if(count($recipe->articles))
|
||||
<article class="tips">
|
||||
<h3>{{ __('Astuces Associées') }}</h3>
|
||||
@foreach($recipe->articles as $article)
|
||||
<div class="tip">
|
||||
<a href="{{ route('club.infos.child', [
|
||||
'articleTag' => $article->type,
|
||||
'publishedArticle' => $article->slug
|
||||
]) }}" title="{{ $article->title }}">
|
||||
<figure><img src="{{ $article->picture }}" alt="{{ $article->title }}" /></figure>
|
||||
<p>{{ $article->title }}</p>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</article>
|
||||
@endif
|
||||
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<div class="rating">
|
||||
<h5>{{ __('Évaluez cette recette ') }}</h5>
|
||||
<div id="rater" data-rating="{{ $recipe->getUserRating() }}" @if($recipe->hasBeenRatedByUser()) data-disable="true" @endif></div>
|
||||
<h5 class="ratingShare">{{ __('Partager') }}</h5>
|
||||
<a target="_blank" class="mediaShare facebook-item" href="https://www.facebook.com/sharer/sharer.php?u={{ request()->fullurl() }}&title={{ $recipe->title }}" title="{{ __('Partager sur Facebook') }}">
|
||||
<div class="content recipe @if ($vegetal) vegetal @endif">
|
||||
<div class="share">
|
||||
<a class="mediaShare" target="_blank"
|
||||
href="https://www.facebook.com/sharer/sharer.php?u={{ request()->fullurl() }}&title={{ $recipe->title }}"
|
||||
title="{{ __('Partager sur Facebook') }}">
|
||||
<i class="fab fa-facebook-f"></i>
|
||||
</a>
|
||||
<a class="mediaShare" target="_blank"
|
||||
href="https://pinterest.com/pin/create/button/?url={{ request()->fullurl() }}&media={{ $recipe->picture }}&description={{ $recipe->title }}"
|
||||
title="{{ __('Partager sur Pinterest') }}">
|
||||
<i class="fab fa-pinterest"></i>
|
||||
</a>
|
||||
<a href="https://www.instagram.com/legaulois_officiel/" target="_blank">
|
||||
<i class="fab fa-instagram"></i>
|
||||
</a>
|
||||
<a target="_blank" class="mediaShare twitter-item" href="https://twitter.com/share?url={{ request()->fullurl() }}" title="{{ __('Partager sur Twitter') }}">
|
||||
<i class="fab fa-twitter"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<span class="btn_cplm printRecipe" title="{{ __('Imprimer la recette') }}">
|
||||
{!! sprintf(__('Imprimer %sla recette%s'), '<span>','</span>') !!}</span>
|
||||
@if(auth('customer')->check() and auth('customer')->user()->hasRecipe($recipe))
|
||||
<a href="{{ auth('customer')->check() ? route('account.favs-recipes') : route('form-connexion') }}" class="btn_cplm favoriteRecipe favRecipeBtn" title="{{ __('Recettes favorites') }}">
|
||||
{!! sprintf(__('Recettes %sfavorites%s'), '<span>','</span>') !!}</a>
|
||||
@if (auth('customer')->check())
|
||||
<span id="setFavorite"><i class="icon-favorite @if (auth('customer')->user()->hasRecipe($recipe)) active @endif"></i></span>
|
||||
@else
|
||||
<a href="{{ route('form-connexion') }}"><i class="icon-favorite"></i></a>
|
||||
@endif
|
||||
<a href="{{ route('recipes.propose') }}" class="btn_cplm proposeRecipe" title="{{ __('Proposer une recette') }}">{!! sprintf(__('Proposer %sune recette%s'), '<span>','</span>') !!}</a>
|
||||
<span class="printRecipe"><i class="icon-print"></i></span>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<div class="associatedRecipe">
|
||||
<div class="list-wrapper">
|
||||
<h3>{{ __('Recettes qui pourraient vous intéresser') }}</h3>
|
||||
<div class="list-recipe">
|
||||
@foreach($recipe->associatedRecipes() as $rcp)
|
||||
<div class="wrap_recipe">
|
||||
<a href="{{ route('recipes.show', $rcp) }}">
|
||||
|
||||
@if ($recipe->ingredients)
|
||||
<aside class="ingredients">
|
||||
@if (count($recipe->products))
|
||||
<figure>
|
||||
<div class='hoverFigure'>
|
||||
<h5>{{ __('Voir la recette !') }}</h5>
|
||||
</div>
|
||||
<img src="{{ $rcp->picture }}" alt="{{ $rcp->title }}" />
|
||||
@foreach ($recipe->products as $product)
|
||||
<img src="{{ asset(resizePublic($product->picture, 'recipeFilterPNG')) }}"
|
||||
alt="{{ $product->name }}" />
|
||||
@endforeach
|
||||
</figure>
|
||||
<p>{{ $rcp->title }}</p>
|
||||
<p>{{ $rcp->catch_phrase }}</p>
|
||||
@endif
|
||||
<h3>{{ __('Ingrédients') }}</h3>
|
||||
<div>{!! clean($recipe->ingredients) !!}</div>
|
||||
</aside>
|
||||
@endif
|
||||
|
||||
<section>
|
||||
@if (strlen($recipe->catch_phrase))
|
||||
<header>
|
||||
<h2>"{{ $recipe->catch_phrase }}"</h2>
|
||||
</header>
|
||||
@endif
|
||||
|
||||
@if (strlen($recipe->preparation))
|
||||
<article class="preparation">
|
||||
<h3>{{ __('Préparation') }}</h3>
|
||||
<div>{!! clean($recipe->preparation) !!}</div>
|
||||
</article>
|
||||
@endif
|
||||
|
||||
@if (strlen($recipe->advice))
|
||||
<article class="advice">
|
||||
<h3>{{ __('Le Conseil Le Gaulois') }}</h3>
|
||||
<div>{!! clean($recipe->advice) !!}</div>
|
||||
</article>
|
||||
@endif
|
||||
|
||||
@if (count($recipe->articles))
|
||||
<article class="tips">
|
||||
<h3>{{ __('Astuces Associées') }}</h3>
|
||||
@foreach ($recipe->articles as $article)
|
||||
<div class="tip">
|
||||
<a href="{{ route('club.infos.child', [
|
||||
'articleTag' => $article->type,
|
||||
'publishedArticle' => $article->slug,
|
||||
]) }}"
|
||||
title="{{ $article->title }}">
|
||||
<figure><img src="{{ $article->picture }}" alt="{{ $article->title }}" /></figure>
|
||||
<p>{{ $article->title }}</p>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</article>
|
||||
@endif
|
||||
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<div class="rating">
|
||||
<h5>{{ __('Évaluez cette recette ') }}</h5>
|
||||
<div id="rater" data-rating="{{ $recipe->getUserRating() }}"
|
||||
@if ($recipe->hasBeenRatedByUser()) data-disable="true" @endif></div>
|
||||
<h5 class="ratingShare">{{ __('Partager') }}</h5>
|
||||
<a target="_blank" class="mediaShare facebook-item"
|
||||
href="https://www.facebook.com/sharer/sharer.php?u={{ request()->fullurl() }}&title={{ $recipe->title }}"
|
||||
title="{{ __('Partager sur Facebook') }}">
|
||||
<i class="fab fa-facebook-f"></i>
|
||||
</a>
|
||||
<a href="https://www.instagram.com/legaulois_officiel/" target="_blank">
|
||||
<i class="fab fa-instagram"></i>
|
||||
</a>
|
||||
<a target="_blank" class="mediaShare twitter-item"
|
||||
href="https://twitter.com/share?url={{ request()->fullurl() }}"
|
||||
title="{{ __('Partager sur Twitter') }}">
|
||||
<i class="fab fa-twitter"></i>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
<div class="buttons">
|
||||
<span class="btn_cplm printRecipe" title="{{ __('Imprimer la recette') }}">
|
||||
{!! sprintf(__('Imprimer %sla recette%s'), '<span>', '</span>') !!}</span>
|
||||
@if (auth('customer')->check() and
|
||||
auth('customer')->user()->hasRecipe($recipe))
|
||||
<a href="{{ auth('customer')->check() ? route('account.favs-recipes') : route('form-connexion') }}"
|
||||
class="btn_cplm favoriteRecipe favRecipeBtn" title="{{ __('Recettes favorites') }}">
|
||||
{!! sprintf(__('Recettes %sfavorites%s'), '<span>', '</span>') !!}</a>
|
||||
@endif
|
||||
<a href="{{ route('recipes.propose') }}" class="btn_cplm proposeRecipe"
|
||||
title="{{ __('Proposer une recette') }}">{!! sprintf(__('Proposer %sune recette%s'), '<span>', '</span>') !!}</a>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<div class="associatedRecipe">
|
||||
<div class="list-wrapper">
|
||||
<h3>{{ __('Recettes qui pourraient vous intéresser') }}</h3>
|
||||
<div class="list-recipe">
|
||||
@foreach ($recipe->associatedRecipes() as $rcp)
|
||||
<div class="wrap_recipe">
|
||||
<a href="{{ route('recipes.show', $rcp) }}">
|
||||
<figure>
|
||||
<div class='hoverFigure'>
|
||||
<h5>{{ __('Voir la recette !') }}</h5>
|
||||
</div>
|
||||
<img src="{{ $rcp->picture }}" alt="{{ $rcp->title }}" />
|
||||
</figure>
|
||||
<p>{{ $rcp->title }}</p>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scriptsConstants')
|
||||
<script>
|
||||
window._locale = '{{ app()->getLocale() }}';
|
||||
window._translations = @json(cache(sprintf('translations.%s', app()->getLocale())));
|
||||
window._routes = {
|
||||
"recipes.rate": "{{ route('recipes.rate', $recipe) }}",
|
||||
"account.favs-recipes": "{{ route('account.favs-recipes') }}",
|
||||
"account.add-favs-recipes": "{{ route('account.set-favs-recipes', ['recipe' => $recipe, 'status' => 1]) }}",
|
||||
"account.remove-favs-recipes": "{{ route('account.set-favs-recipes', ['recipe' => $recipe, 'status' => 0]) }}"
|
||||
};
|
||||
</script>
|
||||
<script>
|
||||
window._locale = '{{ app()->getLocale() }}';
|
||||
window._translations = @json(cache(sprintf('translations.%s', app()->getLocale())));
|
||||
window._routes = {
|
||||
"recipes.rate": "{{ route('recipes.rate', $recipe) }}",
|
||||
"account.favs-recipes": "{{ route('account.favs-recipes') }}",
|
||||
"account.add-favs-recipes": "{{ route('account.set-favs-recipes', ['recipe' => $recipe, 'status' => 1]) }}",
|
||||
"account.remove-favs-recipes": "{{ route('account.set-favs-recipes', ['recipe' => $recipe, 'status' => 0]) }}"
|
||||
};
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
|
|
|
|||