ldc-theme-default/views/pages/products.blade.php
2025-08-05 15:58:48 +02:00

39 lines
1.9 KiB
PHP

@extends('theme::layout')
@section('title', __('Produits porteurs'))
@section('description', __('Les produits porteurs de l\'offre du jeu'))
@section('main-class', 'product-page')
@section('content')
<div class="container pb-5 pt-5">
<div class="row mb-3">
<div class="col">
<h1 class="text-quad text-uppercase fw-bold">{{ __('Les produits porteurs') }}</h1>
</div>
</div>
<div class="row">
<div class="col">
@foreach ($rangeModelList as $rangeModel)
<h2 class="text-secondary">{{ $rangeModel->name }}</h2>
<div class="d-flex product-list justify-content-center flex-wrap">
@foreach ($rangeModel->products as $productModel)
<div class="card product m-2">
@if (!empty($productModel->picture))
<a class="card-body glightbox" href="{{ asset($productModel->picture) }}" role="button"
aria-label="{{ __('Afficher l\'image en plein écran') }}" tabindex="0">
<img class="card-img-top" src="{{ asset($productModel->picture) }}"
title="{{ $productModel->picture_title }}" alt="{{ $productModel->picture_alt }}">
<span class="h4 card-title">{{ Str::title($productModel->name) }}</span>
</a>
@else
<span class="h4 card-title p-2">{{ Str::title($productModel->name) }}</span>
@endif
</div>
@endforeach
</div>
@endforeach
</div>
</div>
</div>
@endsection