@extends('layouts.public') @section('content') @push('styles') @endpush @push('scripts') @endpush

{{ $attraction->name }}

{{ $attraction->city }}, {{ $attraction->province }}
@if($attraction->opening_hours && $attraction->closing_hours) {{ \Carbon\Carbon::parse($attraction->opening_hours)->format('H:i') }} - {{ \Carbon\Carbon::parse($attraction->closing_hours)->format('H:i') }} @else Jam Operasional Tidak Tersedia @endif
@if($attraction->description)

About This Place

{{ $attraction->description }}

@endif

Photo Gallery

@if($attraction->gallery && is_array($attraction->gallery) && count($attraction->gallery) > 0) @else

No additional photos available.

@endif

Facilities

@if($attraction->facilities && is_array($attraction->facilities) && count($attraction->facilities) > 0)
@foreach($attraction->facilities as $facility)
{{ $facility }}
@endforeach
@else

No facilities listed.

@endif

Location

@if($attraction->latitude && $attraction->longitude)
@else
Map data not available.
@endif

Ticket Options

@if($attraction->tickets->isNotEmpty())
@foreach($attraction->tickets->sortBy('price') as $ticket)

{{ $ticket->name }}

{{ $ticket->description }}

Rp {{ number_format($ticket->price, 0, ',', '.') }}
@if($ticket->notes) {{ $ticket->notes }} @endif
@endforeach
@else

No ticket options listed yet.

@endif

Customer Reviews

@if($attraction->reviews->isEmpty())

No reviews yet. Be the first to review this amazing attraction!

@else
@foreach($attraction->reviews as $review)
@if($review->user && $review->user->avatar) {{ $review->user->name }} @else
{{ $review->user ? substr($review->user->name, 0, 1) : '?' }}
@endif

{{ $review->user ? $review->user->name : 'Anonymous' }}

{{ $review->created_at->format('d M Y') }}

@for($i = 1; $i <= 5; $i++) @endfor

{{ $review->comment }}

@endforeach
@endif
@if($attraction->tickets->isNotEmpty()) Rp {{ number_format($attraction->tickets->first()->price, 0, ',', '.') }} /person (Starting From) @else No Tickets Available @endif
@if($attraction->opening_hours && $attraction->closing_hours) {{ \Carbon\Carbon::parse($attraction->opening_hours)->format('H:i') }} - {{ \Carbon\Carbon::parse($attraction->closing_hours)->format('H:i') }} @else Jam Operasional Tidak Tersedia @endif
{{ $attraction->city }}, {{ $attraction->province }}
{{-- Hanya tampilkan tombol ini --}} @auth Book Now - Rp {{ number_format($ticketPriceForButton, 0, ',', '.') }} @else Login to Book @endauth

You Might Also Like

@forelse($relatedAttractions as $relatedAttraction) {{-- Mengubah Bootstrap card menjadi Tailwind card --}}
@if($relatedAttraction->featured_image) {{ $relatedAttraction->name }} @else
@endif
{{ $relatedAttraction->name }}

{{ $relatedAttraction->city }}, {{ $relatedAttraction->province }}

{{ Str::limit($relatedAttraction->description, 50) }}

Starting from
@if($relatedAttraction->tickets->isNotEmpty()) Rp {{ number_format($relatedAttraction->tickets->first()->price, 0, ',', '.') }} @else N/A @endif
View Detail
@empty

No related attractions found.

@endforelse
@endsection