ldc-volena/resources/views/fo/pages/networks/show.blade.php

133 lines
6.6 KiB
PHP

@extends('fo.layout')
@section('title', __($networkModel->seo_title))
@section('description', __($networkModel->seo_description))
@section('breadcrumb', request()->route()->getName())
@section('banner')
@include('fo.layouts.banner', [
'h1' => __($networkModel->name),
'asset' => asset($networkModel->picture),
'title' => __($networkModel->picture_title),
'alt' => __($networkModel->picture_alt),
'displayArrow' => true,
'buttonLink' => '#network',
])
@endsection
@section('content')
<section class="anchor-padding container my-4" id="network">
<div class="row">
<div class="col-12 text-center">
<h2 class="fw-bold text-primary">{{ $networkModel->title }}</h2>
</div>
</div>
{{-- AISLES --}}
@php
$aisleModels = $networkModel->aisles->where('published', true);
@endphp
@foreach ($aisleModels as $aisleModel)
<section class="anchor-padding my-4">
<div class="row">
<div class="col-12 text-center">
<h3 class="fw-bold text-sixt my-3">{{ $aisleModel->title }}</h3>
<img class="img-fluid my-4 rounded-3"
src="{{ asset($aisleModel->picture) }}"
alt="{{ $aisleModel->picture_alt }}"
title="{{ $aisleModel->picture_title }}">
</div>
<div class="col-12 col-md-10 offset-md-1">
<div class="ck-content my-5">{!! clean($aisleModel->text) !!}</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-8 offset-md-2">
@php
$brandModels = $aisleModel->brands->where('published', true);
@endphp
@foreach($brandModels as $brandModel)
<div class="row my-3 align-items-center">
<div @class([
'col-3',
'order-2' => $loop->even
])>
@if ($brandModel->link)
<a href="{{ $brandModel->link }}"
target="_blank"
title="{{ __('Accéder au lien : :link', ['link' => $brandModel->link])}}"
>
<img class="img-fluid"
src="{{ asset($brandModel->picture) }}"
alt="{{ $brandModel->picture_alt }}"
title="{{ $brandModel->picture_title }}">
</a>
@else
<img class="img-fluid"
src="{{ asset($brandModel->picture) }}"
alt="{{ $brandModel->picture_alt }}"
title="{{ $brandModel->picture_title }}">
@endif
</div>
<div @class([
'col-9',
'order-1' => $loop->even
])>
<p class="fw-bold">{{ $brandModel->name }}&nbsp;:</p>
<p>{!! clean($brandModel->text) !!}</p>
</div>
</div>
@endforeach
</div>
</div>
</section>
@endforeach
</section>
{{-- SLIDER --}}
<div class="anchor-padding overflow-hidden">
<section class=" container my-4 text-center" id="slider">
<div class="row">
<div class="col-12">
<h2 class="fw-bold text-primary my-5">{{ __('Découvrez d\'autres réseaux') }}</h2>
</div>
<div class="row">
<div class="col-12 position-relative mb-5">
<div class="swiper swiper-networks mt-lg-0 mt-5 overflow-visible" id="swiper-networks">
<div class="swiper-wrapper">
@foreach ($networkModels as $network)
<div class="swiper-slide">
@include('fo.partials.networks.slider-card', [
'networkModel' => $network
])
</div>
@endforeach
</div>
<div
class="position-relative swiper-pagination swiper-networks-pagination swiper-pagination-clickable swiper-pagination-bullets swiper-pagination-horizontal d-flex justify-content-center align-items-center mt-5 flex-nowrap px-5">
</div>
</div>
<button class="swiper-button swiper-button-prev-custom swiper-networks-button-prev z-1 mx-3">
<img src="{{ Vite::asset('resources/assets/images/misc/blue-arrow.svg') }}"
title="{{ __('Navigation du slider (gauche)') }}" alt="{{ __('flèche vers la gauche') }}">
</button>
<button class="swiper-button swiper-button-next-custom swiper-networks-button-next z-1 mx-3">
<img src="{{ Vite::asset('resources/assets/images/misc/blue-arrow.svg') }}"
title="{{ __('Navigation du slider (droite)') }}" alt="{{ __('flèche vers la droite') }}">
</button>
</div>
</div>
</div>
</div>
</section>
</div>
<div class="row">
<div class="d-flex align-items-center justify-content-center">
<a href="{{ route('fo.produce.show') }}"
class="btn btn-primary rounded-pill w-fit"
title="{{ $networkModel->button_text }}"
>
{{ $networkModel->button_text }}
</a>
</div>
</div>
@endsection