@extends('layouts.app') @section('content')

Ticket Details

Edit Ticket Back to List
Ticket Information
Name
{{ $ticket->name }}
Type
{{ ucfirst($ticket->type) }}
Price
Rp {{ number_format($ticket->price, 0, ',', '.') }}
Quota
{{ $ticket->quota }}
Attraction
{{ $ticket->touristAttraction->name }}
Valid From
{{ $ticket->valid_from->format('d M Y H:i') }}
Valid Until
{{ $ticket->valid_until->format('d M Y H:i') }}
Status
{{ $ticket->is_active ? 'Active' : 'Inactive' }}
@if($ticket->description)
Description

{{ $ticket->description }}

@endif
Booking History
@forelse($ticket->bookings as $booking) @empty @endforelse
Booking ID Customer Quantity Total Amount Status Date
{{ $booking->id }} {{ $booking->user->name }} {{ $booking->quantity }} Rp {{ number_format($booking->total_amount, 0, ',', '.') }} {{ ucfirst($booking->status) }} {{ $booking->created_at->format('d M Y H:i') }}
No bookings found
QR Code
@if($ticket->qr_code) Ticket QR Code

{{ $ticket->qr_code }}

Download QR Code @else

No QR code generated yet

@csrf
@endif
Quick Actions
@csrf @method('PATCH')
@csrf @method('DELETE')
@endsection