Nouvelle recherche

@if($isHotelSearch) Hôtel : {{ $validated['destination_name'] ?? $validated['destination'] ?? 'votre recherche' }} @else Hôtels à {{ $validated['destination_name'] ?? $validated['destination'] ?? 'votre recherche' }} @endif

📅 Du {{ date('d/m/Y', strtotime($validated['check_in'])) }} au {{ date('d/m/Y', strtotime($validated['check_out'])) }} 👥 {{ $validated['adults'] ?? 2 }} adulte(s) @if(!empty($validated['stars'])) ⭐ {{ implode(', ', $validated['stars']) }} étoile(s) @endif @if(!empty($validated['price_min']) || !empty($validated['price_max'])) 💰 {{ $validated['price_min'] ?? 0 }}€ - {{ $validated['price_max'] ?? '∞' }}€ @endif
@if($paginator->isEmpty())
Aucun hôtel trouvé pour ces critères. Veuillez modifier votre recherche.
@else
{{ $paginator->total() }} hôtel(s) trouvé(s) @if(!$isHotelSearch) Page {{ $paginator->currentPage() }} sur {{ $paginator->lastPage() }} @endif
@foreach($paginator as $hotel) @php $imageUrl = $hotel['main_image'] ?? null; $minPrice = $hotel['min_price'] ?? null; $currency = 'EUR'; $stars = $hotel['stars'] ?? null; $address = $hotel['address'] ?? null; $nights = \Carbon\Carbon::parse($validated['check_in'])->diffInDays(\Carbon\Carbon::parse($validated['check_out'])); $pricePerNight = ($nights > 0 && $minPrice) ? $minPrice / $nights : 0; @endphp
@if($imageUrl) {{ $hotel['name'] }} @else
Pas d'image
@endif @if($stars)
@for($i = 1; $i <= 5; $i++) ★ @endfor
@endif

{{ $hotel['name'] }}

@if($address)

📍 {{ Str::limit($address, 50) }}

@endif
@if($minPrice)
À partir de
{{ number_format($minPrice, 0) }} {{ $currency }} /total
{{ number_format($pricePerNight, 0) }} {{ $currency }}/nuit
Voir offres
@else
Prix sur demande Voir offres
@endif
@endforeach
@if(!$isHotelSearch && $paginator->hasPages())
{{ $paginator->appends(request()->query())->links() }}
Page {{ $paginator->currentPage() }} sur {{ $paginator->lastPage() }} - {{ $paginator->total() }} hôtel(s) trouvé(s)
@endif @endif