@extends('layouts.public.base') @section('page.title', "Calculateur") @php $calculatorItems = \App\Models\CalculatorItem::orderBy('title', 'asc')->paginate(12)->withQueryString(); $search = request()['search'] ?? null; if (null != $search) { $calculatorItems = \App\Models\CalculatorItem::where('title', 'like', "%$search%")->orderBy('title', 'asc')->paginate(12)->withQueryString(); } if (null != $categoryFilter = request()['category']) { $calculatorItems = \App\Models\CalculatorItem::where('category', $categoryFilter)->orderBy('title', 'asc')->paginate(12)->withQueryString(); } @endphp @section('page.content')
@include('components.public.calculator.category-link', [ 'label' => 'Tous' ]) | @include('components.public.calculator.category-link', [ 'category' => 'Cuisine' ]) | @include('components.public.calculator.category-link', [ 'category' => 'Salon - Salle à manger' ]) | @include('components.public.calculator.category-link', [ 'category' => 'Chambre' ]) | @include('components.public.calculator.category-link', [ 'category' => 'Autres' ])
@forelse ($calculatorItems as $item) @include('components.public.calculator.item') @empty

Aucun résultat

@endforelse
{{ $calculatorItems->links() }}

Votre liste

{{ $calculator_session->items->count() ?? 0 }} Selectionnés

@if ($calculator_session->items->count() <= 0)

Votre selection est vide.

@else
    @foreach ($calculator_session->items as $item)
  • {{ $item->item->title }}
  • @endforeach
@endif

Volume : {{ $calculator_session->total_tonnage }}

@if ($calculator_session->items->count() > 0) Obtenir un devis @endif Louer mon box en ligne
@endsection @push('page.scripts') @endpush