{{-- ── Hero ── --}} @php /* * Storage Resolution Strategy — même logique que _hostel_card.blade.php : * "images/..." → asset public (seeds DemoHostelImagesSeeder) * autre → storage symlink (uploads dynamiques owner) */ $heroCoverUrl = null; if ($hostel->cover_image) { $heroCoverUrl = str_starts_with($hostel->cover_image, 'images/') ? asset($hostel->cover_image) : asset('storage/' . $hostel->cover_image); } @endphp
@if($heroCoverUrl) {{ $hostel->name }} @endif
{{ $hostel->type === 'camping' ? '🏕 Camping' : '🏨 Hostel' }}
{{ $hostel->name }}
📍 {{ $hostel->region?->name ?? '' }} @if($hostel->city) — {{ $hostel->city }} @endif
@if($hostel->rating > 0)
{{ number_format($hostel->rating, 1) }}
★★★★★
{{ $hostel->total_reviews }} avis
@endif
{{-- ── Colonne gauche ── --}}
À propos
@if($hostel->description)

{{ $hostel->description }}

@else

Hébergement authentique situé {{ $hostel->region ? 'à ' . $hostel->region->name : 'en Tunisie' }}. Contactez-nous pour plus d'informations.

@endif
Informations
@if($hostel->city)
Ville
{{ $hostel->city }}
@endif @if($hostel->country)
Pays
{{ $hostel->country }}
@endif @if($hostel->phone)
Téléphone
{{ $hostel->phone }}
@endif @if($hostel->email)
Email
{{ $hostel->email }}
@endif @if($hostel->address)
Adresse
{{ $hostel->address }}
@endif
@if($hostel->rooms->count() > 0)
Chambres disponibles ({{ $hostel->rooms->count() }})
@foreach($hostel->rooms as $room)
{{ $room->name }}
{{ $room->type === 'dormitory' ? '🛏 Dortoir' : '🚪 Chambre privée' }} @if($room->capacity) · {{ $room->capacity }} pers.@endif
@if($room->beds->count() > 0)
@foreach($room->beds->take(4) as $bed) {{ $bed->name }} @endforeach @if($room->beds->count() > 4) +{{ $room->beds->count() - 4 }} @endif
@endif
@endforeach
@endif
{{-- ── Sidebar ── --}}