@extends('layouts.web')
@section('title', 'Dashboard Member – ' . ($company->short_name ?? 'ALFITO'))
@section('content')
@if(!empty($company->logo_url))
@else
🧭
@endif
Member Area • Role: {{ auth()->user()->role }}
Akun Aktif
Selamat Datang Kembali, {{ auth()->user()->name }}! 👋
Kelola seluruh reservasi trip, cetak invoice resmi, dan pantau status pemesanan liburan Anda bersama {{ $company->company_name }}.
@if(auth()->user()->isAdmin())
🛡️
Pusat Kendali Administrator
Super Admin
Anda memiliki akses penuh ke manajemen pesanan, katalog trip, review, hero slide, dan pengaturan profil perusahaan.
@endif
Total Pesanan
📑
{{ auth()->user()->bookings()->count() }}
Pesanan Lunas
✓
{{ auth()->user()->bookings()->where('status', 'paid')->count() }}
{{ auth()->user()->bookings()->where('status', 'pending')->count() }} menunggu konfirmasi
Total Transaksi
💳
@php
$totalSpent = auth()->user()->bookings()->where('status', 'paid')->sum('total_price');
@endphp
Rp {{ number_format($totalSpent, 0, ',', '.') }}
Nilai transaksi liburan lunas
Bantuan Customer Care
💬
{{ $company->phone ?? $company->whatsapp_number ?? '0812-3456-7890' }}
Pesanan Wisata Terakhir
Daftar trip terbaru yang telah Anda daftarkan di platform ini.
Lihat Semua Pesanan
→
@forelse($recentBookings as $item)
@if(!empty($item->tour->thumbnail))

@else
🏞️
@endif
{{ $item->booking_code }}
{{ $item->status }}
{{ $item->tour->title ?? 'Paket Wisata' }}
📅 Keberangkatan: {{ $item->travel_date ? $item->travel_date->format('d M Y') : '-' }} •
👥 {{ $item->pax_count }} Peserta
@if(!empty($item->tour->destination))
• 📍 {{ $item->tour->destination->name }}
@endif
Total Tagihan
Rp {{ number_format($item->total_price, 0, ',', '.') }}
Detail Invoice
@empty
🧭
Belum Ada Riwayat Pesanan
Anda belum memiliki pesanan paket trip. Mulai rencanakan liburan impian Anda ke Bromo, Labuan Bajo, atau destinasi Nusantara lainnya.
@endforelse
@if(!empty($company->logo_url))

@endif
{{ $company->license_info ?? 'Tour Operator Berlisensi Resmi ASITA & HPI' }} • {{ $company->operational_hours ?? 'Layanan 08:00 - 22:00 WIB' }}
@endsection