Compare commits
No commits in common. "addBanner" and "mailer" have entirely different histories.
|
|
@ -90,8 +90,3 @@ UWIL_ADMIN_SECURE_CIDR_PROJECT_ALLOWED_LIST=""
|
|||
|
||||
# MATOMO
|
||||
MATOMO_SITE_ID=
|
||||
|
||||
# RECAPTCHA
|
||||
GOOGLE_RECAPTCHA_PUBLIC=
|
||||
GOOGLE_RECAPTCHA_PRIVATE=
|
||||
GOOGLE_RECAPTCHA_VERSION=
|
||||
|
|
@ -97,7 +97,7 @@ class TranslationHelper
|
|||
->whereKeyNot($model->getKey())
|
||||
->whereRaw("JSON_SEARCH(`{$dbAttribute}`, 'one', ?) IS NOT NULL", [$value]);
|
||||
|
||||
if ($anotherDbAttribute !== null) {
|
||||
if ($anotherDbAttribute !== null && $anotherValue !== null) {
|
||||
$query->where($anotherDbAttribute, $anotherValue);
|
||||
}
|
||||
if ($query->exists()) {
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Back;
|
||||
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Uwil\LaravelBackend\Controllers\AuthenticatedSessionController as PackageAuthenticatedSessionController;
|
||||
|
||||
class AuthenticatedSessionController extends PackageAuthenticatedSessionController
|
||||
{
|
||||
/**
|
||||
* Destroy an authenticated session.
|
||||
*/
|
||||
public function destroy(Request $request): RedirectResponse
|
||||
{
|
||||
Auth::guard('backend')->logout();
|
||||
|
||||
$request->session()->invalidate();
|
||||
$request->session()->regenerateToken();
|
||||
|
||||
return to_route('front.dynamic-pages.accueil.fr');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -21,7 +21,7 @@ class ContactRequest extends FormRequest
|
|||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
ToolboxHelper::validateRecaptcha($this, \config('services.google.recaptcha.version'));
|
||||
// ToolboxHelper::validateRecaptcha($this, \config('services.google.recaptcha.version'));
|
||||
|
||||
$typeContactForm = $this->input('enumType');
|
||||
|
||||
|
|
|
|||
|
|
@ -2,13 +2,10 @@
|
|||
|
||||
namespace App\Http\Requests\Front;
|
||||
|
||||
use App\Traits\Requests\Api\HasLaravelFailedValidation;
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
class PostsRequest extends FormRequest
|
||||
{
|
||||
use HasLaravelFailedValidation;
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
|
|
@ -19,7 +16,7 @@ class PostsRequest extends FormRequest
|
|||
return [
|
||||
'page' => 'required|integer',
|
||||
'category' => 'required|string',
|
||||
'locale' => ['required', 'string', Rule::in(config('app.locales'))],
|
||||
'locale' => 'required|string',
|
||||
'filters' => 'nullable|array',
|
||||
'filters.order' => 'nullable|string|in:asc,desc',
|
||||
'filters.tags' => 'nullable|array',
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ return [
|
|||
|
|
||||
*/
|
||||
|
||||
'driver' => env('SCOUT_DRIVER', null),
|
||||
'driver' => env('SCOUT_DRIVER', 'meilisearch'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -37,11 +37,6 @@ return [
|
|||
|
||||
'google' => [
|
||||
'maps' => env('GOOGLE_MAPS_KEY'),
|
||||
'recaptcha' => [
|
||||
'public' => env('GOOGLE_RECAPTCHA_PUBLIC'),
|
||||
'private' => env('GOOGLE_RECAPTCHA_PRIVATE'),
|
||||
'version' => env('GOOGLE_RECAPTCHA_VERSION', "3") === "3" ? true : false
|
||||
]
|
||||
],
|
||||
|
||||
'matomo' => [
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ data:
|
|||
MAIL_LIST_INFO: "${APP_MAIL_LIST_INFO}"
|
||||
MAIL_LIST_PRESS: "${APP_MAIL_LIST_PRESS}"
|
||||
MAIL_LIST_RESTAURATION: "${APP_MAIL_LIST_RESTAURATION}"
|
||||
MAIL_MAILER: "${APP_MAIL_MAILER}"
|
||||
SENTRY_LARAVEL_DSN: "${APP_SENTRY_LARAVEL_DSN}"
|
||||
TELESCOPE_ENABLED: "${APP_TELESCOPE_ENABLED}"
|
||||
CRM_ENDPOINT: "${APP_CRM_ENDPOINT}"
|
||||
|
|
|
|||
45
package-lock.json
generated
|
|
@ -89,6 +89,7 @@
|
|||
"@typescript-eslint/parser": "^8.39.0",
|
||||
"@vitejs/plugin-react": "^4.7.0",
|
||||
"autoprefixer": "^10.4.21",
|
||||
"baseline-browser-mapping": "^2.9.19",
|
||||
"concurrently": "^9.2.0",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
|
|
@ -6145,16 +6146,13 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"node_modules/baseline-browser-mapping": {
|
||||
"version": "2.10.42",
|
||||
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.42.tgz",
|
||||
"integrity": "sha512-c/jurFrDLyui7o1J86yLkRu4LMsTYcBohveus7/I2Hzdn9KIP2bdJPTue/lR1KH46enoPbD77GKeSYNdyPoD3Q==",
|
||||
"version": "2.9.19",
|
||||
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz",
|
||||
"integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"baseline-browser-mapping": "dist/cli.cjs"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
"baseline-browser-mapping": "dist/cli.js"
|
||||
}
|
||||
},
|
||||
"node_modules/binary-extensions": {
|
||||
|
|
@ -6326,9 +6324,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/caniuse-lite": {
|
||||
"version": "1.0.30001803",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001803.tgz",
|
||||
"integrity": "sha512-g/uHREV2ZpK9qMalCsWaxmA6ol+DX8GYhuf3T40RKoP+oL7vhRJh8LNt73PCjpnR6l14FzfPrB5Yux4PKm2meg==",
|
||||
"version": "1.0.30001755",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001755.tgz",
|
||||
"integrity": "sha512-44V+Jm6ctPj7R52Na4TLi3Zri4dWUljJd+RDm+j8LtNCc/ihLCT+X1TzoOAkRETEWqjuLnh9581Tl80FvK7jVA==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -8789,6 +8787,14 @@
|
|||
"node": ">= 4"
|
||||
}
|
||||
},
|
||||
"node_modules/immutable": {
|
||||
"version": "4.3.7",
|
||||
"resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.7.tgz",
|
||||
"integrity": "sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw==",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/import-fresh": {
|
||||
"version": "3.3.1",
|
||||
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
|
||||
|
|
@ -11744,6 +11750,25 @@
|
|||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/sass": {
|
||||
"version": "1.51.0",
|
||||
"resolved": "https://registry.npmjs.org/sass/-/sass-1.51.0.tgz",
|
||||
"integrity": "sha512-haGdpTgywJTvHC2b91GSq+clTKGbtkkZmVAb82jZQN/wTy6qs8DdFm2lhEQbEwrY0QDRgSQ3xDurqM977C3noA==",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"chokidar": ">=3.0.0 <4.0.0",
|
||||
"immutable": "^4.0.0",
|
||||
"source-map-js": ">=0.6.2 <2.0.0"
|
||||
},
|
||||
"bin": {
|
||||
"sass": "sass.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/sass-embedded": {
|
||||
"version": "1.93.3",
|
||||
"resolved": "https://registry.npmjs.org/sass-embedded/-/sass-embedded-1.93.3.tgz",
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
"@typescript-eslint/parser": "^8.39.0",
|
||||
"@vitejs/plugin-react": "^4.7.0",
|
||||
"autoprefixer": "^10.4.21",
|
||||
"baseline-browser-mapping": "^2.9.19",
|
||||
"concurrently": "^9.2.0",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
|
|
|
|||
|
|
@ -448,6 +448,7 @@
|
|||
padding-left: 10px;
|
||||
}
|
||||
[data-menu="submenu-2951"] .mobile-menu__level {
|
||||
padding-top: 0;
|
||||
min-height: calc(100vh - 80px);
|
||||
}
|
||||
.offer-form {
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 3.9 KiB |
BIN
public/news/26_01_07/img/header.jpg
Normal file
|
After Width: | Height: | Size: 368 KiB |
|
Before Width: | Height: | Size: 730 KiB |
|
|
@ -1,8 +0,0 @@
|
|||
<svg width="294" height="337" viewBox="0 0 294 337" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12.4228 111.776C14.6117 110.408 25.7752 110.685 28.852 111.103C37.1063 112.231 64.4775 121.512 69.5848 127.591C70.4727 128.638 72.0427 131.006 71.9117 132.281C71.2439 133.656 70.4943 135.273 69.007 135.8C64.0032 137.596 39.3983 133.232 33.1303 131.412C28.0684 129.948 0.834785 119.02 12.4179 111.762" fill="white"/>
|
||||
<path d="M2.97139 193.412C4.55436 191.287 15.073 187.284 18.0841 186.505C26.1789 184.414 54.8679 182.618 61.7042 186.336C62.8749 186.981 65.1454 188.588 65.4632 189.813C65.3042 191.356 65.1572 193.152 63.9439 194.213C59.8699 197.795 35.4282 203.133 28.956 203.822C23.7339 204.385 -5.39998 204.59 2.96651 193.398" fill="white"/>
|
||||
<path d="M75.2995 40.5103C77.803 40.9766 86.0923 48.8901 88.1699 51.3401C93.7375 57.8946 108.805 83.7796 108.956 91.9089C108.984 93.2947 108.718 96.178 107.854 97.0673C106.509 97.6501 104.936 98.3556 103.492 97.741C98.5929 95.6417 82.6162 75.3846 78.9803 69.6842C76.0412 65.0878 62.0826 38.0233 75.3044 40.5244" fill="white"/>
|
||||
<path d="M151.519 3.32306C153.617 4.87176 158.163 15.7889 159.131 18.9375C161.715 27.4087 165.61 57.8236 162.682 65.3407C162.179 66.6428 160.86 69.1607 159.724 69.5796C158.289 69.5181 156.593 69.479 155.501 68.2594C151.841 64.1709 144.975 38.5187 143.82 31.6839C142.897 26.167 140.429 -4.81499 151.519 3.32306Z" fill="white"/>
|
||||
<path d="M252.66 22.1829C253.318 24.7802 250.104 36.0545 248.91 39.068C245.694 47.1654 230.038 72.5666 223.176 76.188C221.998 76.8158 219.438 77.7851 218.31 77.3393C217.248 76.3078 215.978 75.104 215.89 73.4619C215.601 67.8917 226.072 44.0237 229.37 38.114C232.047 33.3611 249.15 8.50266 252.647 22.1881" fill="white"/>
|
||||
<path d="M87.8419 179.142C94.5684 132.863 133.992 97.2846 176.139 87.677C204.358 81.0745 234.752 88.5554 256.665 106.934C312.841 154.252 315.672 242.841 251.639 287.943L251.319 288.16C299.285 254.332 309.052 191.702 275.906 144.766C245.4 100.22 190.312 89.7794 145.72 121.366C124.838 135.187 108.355 156.232 103.18 181.721C91.9838 233.582 124.292 292.602 174.098 304.765C197.844 311.099 222.819 304.456 244.572 292.265C222.667 304.706 197.998 312.303 173.514 307.368C119.264 297.745 78.7607 237.682 87.8419 179.142ZM244.614 292.242C246.465 291.19 248.298 290.104 250.109 288.987L251.319 288.16C250.92 288.442 250.518 288.723 250.113 289.001C248.305 290.119 246.471 291.201 244.614 292.242Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.4 KiB |
|
|
@ -1,3 +0,0 @@
|
|||
<svg width="108" height="108" viewBox="0 0 108 108" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M104.492 48.4181C100.67 60.1225 94.7398 70.9442 87.3675 79.8302C85.9257 81.5634 84.4302 83.2612 82.8803 84.8228C80.7646 87.2306 78.414 89.3922 75.9016 91.3468C59.3762 104.228 36.3246 107.963 36.3246 107.963C33.6282 107.52 26.4674 97.2729 20.5617 88.0457C17.9584 84.0773 15.4174 79.9953 13.0357 75.8182C12.2143 74.429 11.7321 73.5823 11.7072 73.5022C11.7072 73.5022 11.7118 73.4779 11.7165 73.4536C8.2699 67.162 5.23377 60.6225 2.93227 53.7217C2.81789 53.373 2.70352 53.0245 2.58914 52.6758C0.811171 46.9311 -0.135125 40.2153 0.0156226 33.5598C0.324677 19.3706 5.5941 5.38113 18.3648 1.12661C26.1608 -1.47079 34.3677 0.609583 40.7529 5.4558C43.6869 7.70355 49.819 17.326 51.2083 20.5835C53.1412 23.845 54.7225 26.8379 56.0006 29.5212C60.5848 23.9191 65.635 18.9342 71.0452 14.697C77.309 9.79469 84.3595 4.36504 91.5366 5.09145C98.0241 5.73554 102.877 10.6893 105.536 17.4075C107.259 21.7596 108.061 26.8141 107.816 31.9688C107.55 37.5467 106.221 43.0962 104.492 48.4181Z" fill="#E00A1E"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
|
@ -8,50 +8,3 @@
|
|||
|
||||
// * BASE
|
||||
@use './base/common';
|
||||
|
||||
|
||||
//////////////////// Poppins ////////////////////
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Poppins';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('&/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Poppins';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url('&/fonts/Poppins/Poppins-Bold.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Poppins';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: url('&/fonts/Poppins/Poppins-Light.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Poppins';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url('&/fonts/Poppins/Poppins-BoldItalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Poppins';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: url('&/fonts/Poppins/Poppins-Italic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
.f-poppins {
|
||||
font-family: 'Poppins', sans-serif;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,43 +13,3 @@
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#r_captcha {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.error-recaptcha {
|
||||
color: red;
|
||||
text-align: center;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.custom-alert-danger {
|
||||
background: #ffe5e5;
|
||||
border: 1px solid #ffb3b3;
|
||||
border-left: 5px solid #dc3545;
|
||||
color: #842029;
|
||||
padding: 15px 20px;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 20px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||
animation: fadeIn 0.3s ease-in-out;
|
||||
|
||||
.alert-title {
|
||||
font-weight: 700;
|
||||
margin-bottom: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
li {
|
||||
margin-bottom: 5px;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
ul {
|
||||
margin: 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -253,7 +253,9 @@ export default function Form({
|
|||
modelName={useTrans(`models.classes.${modelName}`, {
|
||||
choice: 1,
|
||||
})}
|
||||
pathField={data.isRoot ? "" : (dynamicPageUrl ?? "").replace(url, "").replace(/^\/+/, "")}
|
||||
pathField={data.isRoot ? "" : dynamicPageUrl
|
||||
.replace(url, "")
|
||||
.replace(/^\/+/, "")}
|
||||
isAvailable={
|
||||
model?.status ===
|
||||
enumDynamicPageStatus.published.value
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
// ASSETS
|
||||
import.meta.glob("../../assets/images/**/*", { eager: true });
|
||||
|
||||
// * Packages
|
||||
import Chart from "chart.js/auto";
|
||||
import axios from "axios";
|
||||
|
|
|
|||
9
resources/ts/vite-env.d.ts
vendored
|
|
@ -1,9 +0,0 @@
|
|||
/// <reference types="vite/client" />
|
||||
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_SENTRY_TRACES_SAMPLE_RATE: string | undefined;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
@push('scripts')
|
||||
<script nonce="{{ $nonce }}">
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const formId = @json($formId);
|
||||
const initFormCaptcha = () => {
|
||||
const newDiv = document.createElement("div");
|
||||
newDiv.classList.add('g-recaptcha');
|
||||
document.getElementById('r_captcha').appendChild(newDiv);
|
||||
};
|
||||
window.__CN_Recaptcha = function() {
|
||||
initFormCaptcha();
|
||||
(function(d, t) {
|
||||
let g = d.createElement(t),
|
||||
s = d.getElementsByTagName(t)[0];
|
||||
g.src =
|
||||
'https://www.google.com/recaptcha/api.js?render=explicit&onload=__CN_Recaptcha_Loaded';
|
||||
s.parentNode.insertBefore(g, s)
|
||||
}(document, 'script'));
|
||||
};
|
||||
window.__CN_Recaptcha_Reset = function() {
|
||||
document.querySelector('#r_captcha > div')?.remove();
|
||||
};
|
||||
window.__CN_Recaptcha_Loaded = function() {
|
||||
grecaptcha.render(document.querySelector('#r_captcha > div'), {
|
||||
'sitekey': '{{ config('services.google.recaptcha.public') }}'
|
||||
});
|
||||
};
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
|
@ -1,10 +1,5 @@
|
|||
<form id="contact-form" method="POST" action="{{ route('front.contact.send') }}" inert>
|
||||
@csrf
|
||||
<input type="hidden" name="enumType" value="{{ $enumType }}">
|
||||
|
||||
<div>
|
||||
@include('modules.flash-messages')
|
||||
</div>
|
||||
|
||||
{{ $slot }}
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -274,7 +274,8 @@
|
|||
@endphp
|
||||
<li id="menu-item-190"
|
||||
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-190 {{ currentMenuItemClass($pageFinanceName) }}">
|
||||
<a href="{{ \App\Helpers\RouteHelper::routeNameChecker($pageFinanceName) }}">{{ $pageFinance->title }}</a>
|
||||
<a
|
||||
href="{{ \App\Helpers\RouteHelper::routeNameChecker($pageFinanceName) }}">{{ $pageFinance->title }}</a>
|
||||
@if ($PageFinancesections)
|
||||
<ul class="sub-menu">
|
||||
@foreach ($PageFinancesections as $key => $item)
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@
|
|||
</li>
|
||||
@endif
|
||||
<li class="mobile-menu__item">
|
||||
<a class="mobile-menu__link" href="{{ \App\Helpers\RouteHelper::routeNameChecker('front.dynamic-pages.nous-contacter') }}">
|
||||
<a class="mobile-menu__link" href="{{ LaravelLocalization::getLocalizedURL(app()->getLocale(), __('routes.contact_index')) }}">
|
||||
{{ trans('front.contact.index') }}
|
||||
</a>
|
||||
</li>
|
||||
|
|
@ -263,7 +263,6 @@
|
|||
</a>
|
||||
</div>
|
||||
@php
|
||||
$pageNousRejoindreName = sprintf('front.dynamic-pages.%s', $pageNousRejoindre->id_key);
|
||||
$sections = [
|
||||
'list_our_jobs',
|
||||
'list_your_career',
|
||||
|
|
@ -275,21 +274,23 @@
|
|||
];
|
||||
@endphp
|
||||
<ul class="mobile-menu__level">
|
||||
@foreach ($sections as $key => $item)
|
||||
@php $pageNousRejoindreSection = $pageNousRejoindre->content[$item]; @endphp
|
||||
@if ($pageNousRejoindreSection)
|
||||
@php
|
||||
$title = $pageNousRejoindreSection[0]['string_title'];
|
||||
$subtitle = $pageNousRejoindreSection[0]['string_subtitle'];
|
||||
@endphp
|
||||
<li class="mobile-menu__item">
|
||||
<a class="mobile-menu__link"
|
||||
href="{{ \App\Helpers\RouteHelper::routeNameChecker($pageNousRejoindreName) }}#{{ 'rejoin_' . $key }}">
|
||||
{{ Str::ucfirst(Str::lower($title) . ' ' . Str::lower($subtitle)) }}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
@if(array_intersect($sections, array_keys($pageNousRejoindre->content)))
|
||||
@foreach ($sections as $key => $item)
|
||||
@if (array_key_exists($item, array_keys($pageNousRejoindre->content)))
|
||||
@php
|
||||
$section = $pageNousRejoindre->content[$item];
|
||||
$title = $section[0]['string_title'];
|
||||
$subtitle = $section[0]['string_subtitle'];
|
||||
@endphp
|
||||
<li class="mobile-menu__item">
|
||||
<a class="mobile-menu__link"
|
||||
href="{{ \App\Helpers\RouteHelper::routeNameChecker('front.dynamic-pages.nous-rejoindre') }}#{{ 'rejoin_' . $key }}">
|
||||
{{ Str::ucfirst(Str::lower($title) . " " . Str::lower($subtitle)) }}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
|
@ -303,7 +304,6 @@
|
|||
</a>
|
||||
</div>
|
||||
@php
|
||||
$pageFinanceName = sprintf('front.dynamic-pages.%s', $pageFinance->id_key);
|
||||
$sections = [
|
||||
'list_agir_avec_territoires',
|
||||
'list_action_ldc',
|
||||
|
|
@ -315,20 +315,19 @@
|
|||
];
|
||||
@endphp
|
||||
<ul class="mobile-menu__level">
|
||||
@foreach ($sections as $key => $item)
|
||||
@php $pageFinanceSection = $pageFinance->content[$item];@endphp
|
||||
@if ($pageFinanceSection)
|
||||
@php
|
||||
$title = data_get($pageFinanceSection[0], 'string_title');
|
||||
@endphp
|
||||
<li class="mobile-menu__item">
|
||||
<a class="mobile-menu__link"
|
||||
href="{{ \App\Helpers\RouteHelper::routeNameChecker($pageFinanceName) }}#{{ Str::slug($title) }}">
|
||||
{{ $title }}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
@if(array_intersect($sections, array_keys($pageFinance->content)))
|
||||
@foreach ($sections as $key => $item)
|
||||
@if (array_key_exists($item, array_keys($pageNousRejoindre->content)))
|
||||
@php $title = $pageFinance->content[$item][0]['string_title']; @endphp
|
||||
<li class="mobile-menu__item">
|
||||
<a class="mobile-menu__link"
|
||||
href="{{ \App\Helpers\RouteHelper::routeNameChecker('front.dynamic-pages.finance') }}#{{ Str::slug($title) }}">
|
||||
{{ $title }}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
@php $FinanceChildPages = $pageFinance->childPages->where('status', \App\Enums\DynamicPages\PageStatusEnum::published); @endphp
|
||||
@if ($FinanceChildPages->count())
|
||||
<p class="menu-mobile-message">
|
||||
|
|
|
|||
|
|
@ -1,39 +1,29 @@
|
|||
<div class="form__row">
|
||||
@if (\App\Enums\Contact\ContactFormType::press->equals($contactFormType))
|
||||
|
||||
<div class="form__row">
|
||||
@if (\App\Enums\Contact\ContactFormType::press->equals($contactFormType))
|
||||
<div class="form__field">
|
||||
<label class="form__field-pseudolabel">
|
||||
<input type="checkbox" name="newsletter" value="1">
|
||||
<span class="form__field-pseudosquare">{{ __('front.inputs.newsletter.label') }}</span>
|
||||
</label>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="form__field">
|
||||
<label class="form__field-pseudolabel">
|
||||
<input type="checkbox" name="newsletter" value="1">
|
||||
<span class="form__field-pseudosquare">{{ __('front.inputs.newsletter.label') }}</span>
|
||||
</label>
|
||||
<span class="form__field-label-text">{{ __('front.contact.info_personal_data') }}
|
||||
<br> <a href="/politique-de-confidentialite/" target="_blank"
|
||||
rel="noreferer noopener">{{ __('front.contact.confidentiality') }}</a></span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="form__field">
|
||||
<span class="form__field-label-text">{{ __('front.contact.info_personal_data') }}
|
||||
<br> <a href="/politique-de-confidentialite/" target="_blank"
|
||||
rel="noreferer noopener">{{ __('front.contact.confidentiality') }}</a></span>
|
||||
<div class="form__field">
|
||||
<div class="form__tip">* {{ ucfirst(__('front.required_field')) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form__field">
|
||||
<div class="form__tip">* {{ ucfirst(__('front.required_field')) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- RECAPTCHA --}}
|
||||
<div>
|
||||
@if ($errors->has('g-recaptcha-response'))
|
||||
<div class="error-recaptcha">
|
||||
<span>{{ $errors->first('g-recaptcha-response') }}</span>
|
||||
</div>
|
||||
@endif
|
||||
<div id="r_captcha"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form__row">
|
||||
<div class="form-submit">
|
||||
<input data-sitekey="{{ config('services.google.recaptcha.public') }}" type="submit"
|
||||
value="{{ ucfirst(__('front.buttons.send')) }}" class="form-submit__btn btn">
|
||||
<input type="submit" value="{{ ucfirst(__('front.buttons.send')) }}" class="form-submit__btn btn">
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -28,10 +28,7 @@
|
|||
@endif
|
||||
|
||||
@include('front.pages.contact.partials.form-footer')
|
||||
|
||||
</x-front.pages.contact.form-wrapper>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<x-front.pages.contact.contact-form-script formId="contact-form" />
|
||||
|
|
|
|||
|
|
@ -58,5 +58,3 @@
|
|||
|
||||
</div>
|
||||
</x-front.pages.contact.form-wrapper>
|
||||
|
||||
<x-front.pages.contact.contact-form-script formId="contact-form" />
|
||||
|
|
|
|||
|
|
@ -94,13 +94,7 @@
|
|||
@endphp
|
||||
@endforeach
|
||||
@foreach ($sections as $section)
|
||||
|
||||
@if ($section['title'] === 'banner')
|
||||
@include('front.pages.partial.bea-banner')
|
||||
@break
|
||||
@else
|
||||
<x-front.text-block :textBlock="$section" />
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
{{-- Sections numbers --}}
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
<div id="bea-banner" class="flex f-poppins">
|
||||
|
||||
<div class="w-14 flex-none">
|
||||
<img src="{{ Vite::asset('resources/assets/images/front/logo_bea.svg') }}" alt="{{ __('Logo BEA') }}" title="{{ __('Logo BEA') }}"/>
|
||||
|
||||
<p>{!! clean(__('Retrouvez nos engagements sur :linkUrl', [
|
||||
'linkUrl' => '<a href="https://www.bienetreanimal.fr" title="Site Bien Etre Animal" target="_blank" rel="noopener nofollow">www.bienetreanimal.fr</a> '
|
||||
])) !!}</p>
|
||||
</div>
|
||||
<div class="w-64 flex-initial">
|
||||
<h3>
|
||||
<span>{{ __('LDC') }}</span><br>
|
||||
<span class="uppercase">{{ __('Entreprise adhérente au collectif') }}</span>
|
||||
<img src="{{ Vite::asset('resources/assets/images/front/coeur.svg') }}" alt="{{ __('coeur') }}" title="{{ __('coeur') }}"/><br>
|
||||
<span class="uppercase">{{ __('Fillière Agricole Engagée pour élever le Bien-être Animal') }}</span><br>
|
||||
</h3>
|
||||
<p>
|
||||
<span>{{ __('Du poulet 100% origine France') }}</span><br>
|
||||
<span>{{ __('élevé dans le') }}</span>
|
||||
<span class="uppercase">{{ __('respect du bien-être animal') }}</span><br>
|
||||
<span>{{ __('par une') }}</span>
|
||||
<span class="uppercase">{{ __('filière agricole engagée') }}</span><br>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
@if (!request()->routeIs('login'))
|
||||
@if ($message = session()->get('success', session()->get('bo.success')))
|
||||
<div class="alert alert-success alert-dismissible fade show m-0 mb-3" role="alert">
|
||||
<i class="fa-solid fa-circle-check"></i>
|
||||
<strong>{!! nl2br(e($message)) !!}</strong>
|
||||
<button class="btn-close" data-bs-dismiss="alert" type="button" aria-label="{{ __('Fermer') }}"></button>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($message = session()->get('error', session()->get('bo.error')))
|
||||
<div class="alert alert-danger alert-dismissible fade show m-0 mb-3" role="alert">
|
||||
<i class="fa-solid fa-circle-xmark"></i>
|
||||
<strong>{!! nl2br(e($message)) !!}</strong>
|
||||
<button class="btn-close" data-bs-dismiss="alert" type="button" aria-label="{{ __('Fermer') }}"></button>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($message = session()->get('warning', session()->get('bo.warning')))
|
||||
<div class="alert alert-warning alert-dismissible fade show m-0 mb-3" role="alert">
|
||||
<i class="fa-solid fa-circle-exclamation"></i>
|
||||
<strong>{!! nl2br(e($message)) !!}</strong>
|
||||
<button class="btn-close" data-bs-dismiss="alert" type="button" aria-label="{{ __('Fermer') }}"></button>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($message = session()->get('status', session()->get('bo.status')))
|
||||
<div class="alert alert-info alert-dismissible fade show m-0 mb-3" role="alert">
|
||||
<i class="fa-solid fa-circle-info"></i>
|
||||
<strong>{!! nl2br(e($message)) !!}</strong>
|
||||
<button class="btn-close" data-bs-dismiss="alert" type="button" aria-label="{{ __('Fermer') }}"></button>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($message = session()->get('info', session()->get('bo.info')))
|
||||
<div class="alert alert-info alert-dismissible fade show m-0 mb-3" role="alert">
|
||||
<i class="fa-solid fa-circle-info"></i>
|
||||
<strong>{!! nl2br(e($message)) !!}</strong>
|
||||
<button class="btn-close" data-bs-dismiss="alert" type="button" aria-label="{{ __('Fermer') }}"></button>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (isset($errors) && $errors->any())
|
||||
<div class="custom-alert-danger" role="alert">
|
||||
<p class="alert-title">
|
||||
<i class="fa-solid fa-circle-exclamation"></i>
|
||||
Liste des erreurs :
|
||||
</p>
|
||||
|
||||
@if ($errors->any())
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
|
@ -14,10 +14,10 @@ use App\Http\Controllers\Back\NewsCategoryController;
|
|||
use App\Http\Controllers\Back\NewsController;
|
||||
use App\Http\Controllers\Back\NewsTagController;
|
||||
use App\Http\Controllers\Back\PageConfigController;
|
||||
use App\Http\Controllers\Back\AuthenticatedSessionController;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
use Uwil\LaravelBackend\Controllers\AuthenticatedSessionController;
|
||||
use Uwil\LaravelBackend\Controllers\UserController;
|
||||
use Uwil\LaravelCommon\Controllers\Controller;
|
||||
|
||||
|
|
|
|||