@extends('layouts.app') @section('title', 'Kelola Tiket Wisata') @section('content')

Kelola Tiket Wisata

Total Booking
{{ $stats['total'] ?? 0 }}
Confirmed
{{ $stats['confirmed'] ?? 0 }}
Pending
{{ $stats['pending'] ?? 0 }}
Revenue
Rp {{ number_format($stats['revenue'] ?? 0) }}
Filter Booking
Daftar Booking Tiket
@forelse($tiketWisata as $index => $tiket) @empty @endforelse
No Kode Booking Pemesan Objek Wisata Tanggal Kunjungan Jumlah Tiket Total Bayar Status Aksi
{{ $loop->iteration }} {{ $tiket->kode_booking }}
{{ $tiket->nama_pemesan }}
{{ $tiket->email_pemesan }}
{{ $tiket->nomor_hp_pemesan }}
{{ $tiket->objekWisata->nama }} {{ \Carbon\Carbon::parse($tiket->tanggal_kunjungan)->format('d/m/Y') }}
Dewasa: {{ $tiket->jumlah_dewasa }}
@if($tiket->jumlah_anak > 0)
Anak: {{ $tiket->jumlah_anak }}
@endif
Rp {{ number_format($tiket->total_harga) }} @if($tiket->status === 'confirmed') Confirmed @elseif($tiket->status === 'pending') Pending @elseif($tiket->status === 'cancelled') Cancelled @else {{ ucfirst($tiket->status) }} @endif
@if($tiket->status === 'pending') @endif @if($tiket->status === 'confirmed') @endif
Tidak ada data booking
@if($tiketWisata->hasPages()) {{ $tiketWisata->appends(request()->query())->links() }} @endif
@endsection @push('scripts') @endpush