@extends('layouts.app')

@section('title', 'Booking Details - WedBooker')
@section('page-title', 'Booking Details')
@section('page-description', 'View and manage booking information')

@section('content')
<div class="space-y-6">
    
    <!-- Booking Header -->
    <div class="glass-card rounded-2xl p-6 border border-white/10" data-aos="fade-up">
        <div class="flex flex-wrap justify-between items-start gap-4">
            <div>
                <div class="flex items-center gap-3 mb-2">
                    <span class="badge badge-success text-lg px-4 py-2">Booking #BK-2024-0012</span>
                    <span class="text-gray-400 text-sm">Created: March 25, 2024</span>
                </div>
                <h2 class="text-2xl font-bold text-white">Sarah Johnson</h2>
                <p class="text-gray-400">sarah.johnson@email.com • +44 123 456 789</p>
            </div>
            <div class="flex gap-3">
                <button class="px-4 py-2 bg-green-600 rounded-lg text-white hover:bg-green-700 transition">
                    <i class="fas fa-check mr-2"></i>Confirm
                </button>
                <button class="px-4 py-2 bg-red-600/20 text-red-400 rounded-lg hover:bg-red-600/30 transition">
                    <i class="fas fa-times mr-2"></i>Cancel
                </button>
            </div>
        </div>
    </div>
    
    <div class="grid lg:grid-cols-3 gap-6">
        <!-- Main Booking Details -->
        <div class="lg:col-span-2 space-y-6">
            <!-- Booking Information -->
            <div class="glass-card rounded-2xl p-6 border border-white/10" data-aos="fade-up" data-aos-delay="100">
                <h3 class="text-xl font-bold text-white mb-4 flex items-center gap-2">
                    <i class="fas fa-info-circle text-purple-400"></i>
                    Booking Information
                </h3>
                <div class="grid md:grid-cols-2 gap-4">
                    <div class="p-3 bg-white/5 rounded-lg">
                        <p class="text-gray-400 text-sm">Service Type</p>
                        <p class="text-white font-semibold text-lg mt-1">Accommodation</p>
                    </div>
                    <div class="p-3 bg-white/5 rounded-lg">
                        <p class="text-gray-400 text-sm">Status</p>
                        <p class="text-green-400 font-semibold text-lg mt-1">Confirmed</p>
                    </div>
                    <div class="p-3 bg-white/5 rounded-lg">
                        <p class="text-gray-400 text-sm">Booking Date</p>
                        <p class="text-white font-semibold mt-1">March 25, 2024</p>
                    </div>
                    <div class="p-3 bg-white/5 rounded-lg">
                        <p class="text-gray-400 text-sm">Last Updated</p>
                        <p class="text-white font-semibold mt-1">March 25, 2024</p>
                    </div>
                </div>
            </div>
            
            <!-- Service Details -->
            <div class="glass-card rounded-2xl p-6 border border-white/10" data-aos="fade-up" data-aos-delay="200">
                <h3 class="text-xl font-bold text-white mb-4 flex items-center gap-2">
                    <i class="fas fa-hotel text-purple-400"></i>
                    Accommodation Details
                </h3>
                <div class="space-y-4">
                    <div class="flex justify-between items-center p-4 bg-white/5 rounded-lg">
                        <div>
                            <p class="text-gray-400 text-sm">Hotel</p>
                            <p class="text-white font-semibold text-lg">The Grand Hotel</p>
                            <p class="text-gray-400 text-sm mt-1">★★★★★ • 0.5 miles from venue</p>
                        </div>
                        <i class="fas fa-crown text-yellow-500 text-3xl"></i>
                    </div>
                    <div class="grid grid-cols-2 gap-4">
                        <div class="p-3 bg-white/5 rounded-lg">
                            <p class="text-gray-400 text-sm">Room Type</p>
                            <p class="text-white font-semibold">Deluxe Suite</p>
                        </div>
                        <div class="p-3 bg-white/5 rounded-lg">
                            <p class="text-gray-400 text-sm">Room Number</p>
                            <p class="text-white font-semibold">#412</p>
                        </div>
                        <div class="p-3 bg-white/5 rounded-lg">
                            <p class="text-gray-400 text-sm">Check In</p>
                            <p class="text-white font-semibold">June 14, 2024</p>
                            <p class="text-gray-400 text-xs">3:00 PM</p>
                        </div>
                        <div class="p-3 bg-white/5 rounded-lg">
                            <p class="text-gray-400 text-sm">Check Out</p>
                            <p class="text-white font-semibold">June 16, 2024</p>
                            <p class="text-gray-400 text-xs">11:00 AM</p>
                        </div>
                    </div>
                    <div class="p-3 bg-white/5 rounded-lg">
                        <p class="text-gray-400 text-sm">Nights</p>
                        <p class="text-white font-semibold text-2xl">2 nights</p>
                    </div>
                </div>
            </div>
            
            <!-- Guest Details -->
            <div class="glass-card rounded-2xl p-6 border border-white/10" data-aos="fade-up" data-aos-delay="300">
                <h3 class="text-xl font-bold text-white mb-4 flex items-center gap-2">
                    <i class="fas fa-users text-purple-400"></i>
                    Guest Details
                </h3>
                <div class="space-y-4">
                    <div class="flex items-center gap-4 p-4 bg-white/5 rounded-lg">
                        <img src="https://ui-avatars.com/api/?background=8B5CF6&color=fff&name=Sarah+Johnson" class="w-16 h-16 rounded-full">
                        <div class="flex-1">
                            <h4 class="text-white font-bold text-lg">Sarah Johnson</h4>
                            <p class="text-gray-400">Primary Guest</p>
                        </div>
                        <span class="badge badge-success">Confirmed</span>
                    </div>
                    <div class="flex items-center gap-4 p-4 bg-white/5 rounded-lg">
                        <img src="https://ui-avatars.com/api/?background=EC4899&color=fff&name=Michael+Johnson" class="w-16 h-16 rounded-full">
                        <div class="flex-1">
                            <h4 class="text-white font-bold text-lg">Michael Johnson</h4>
                            <p class="text-gray-400">Plus One</p>
                        </div>
                        <span class="badge badge-success">Confirmed</span>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- Sidebar -->
        <div class="space-y-6">
            <!-- Booking Timeline -->
            <div class="glass-card rounded-2xl p-6 border border-white/10" data-aos="fade-left" data-aos-delay="100">
                <h3 class="text-xl font-bold text-white mb-4 flex items-center gap-2">
                    <i class="fas fa-timeline text-purple-400"></i>
                    Timeline
                </h3>
                <div class="space-y-4">
                    <div class="flex gap-3">
                        <div class="relative">
                            <div class="w-8 h-8 bg-green-600 rounded-full flex items-center justify-center">
                                <i class="fas fa-check text-white text-xs"></i>
                            </div>
                            <div class="absolute top-8 left-4 w-0.5 h-12 bg-green-600/30"></div>
                        </div>
                        <div class="flex-1 pb-4">
                            <p class="text-white font-semibold">Booking Created</p>
                            <p class="text-gray-400 text-sm">March 25, 2024 • 10:30 AM</p>
                        </div>
                    </div>
                    <div class="flex gap-3">
                        <div class="relative">
                            <div class="w-8 h-8 bg-green-600 rounded-full flex items-center justify-center">
                                <i class="fas fa-check text-white text-xs"></i>
                            </div>
                            <div class="absolute top-8 left-4 w-0.5 h-12 bg-green-600/30"></div>
                        </div>
                        <div class="flex-1 pb-4">
                            <p class="text-white font-semibold">Payment Confirmed</p>
                            <p class="text-gray-400 text-sm">March 25, 2024 • 10:35 AM</p>
                        </div>
                    </div>
                    <div class="flex gap-3">
                        <div class="w-8 h-8 bg-purple-600 rounded-full flex items-center justify-center">
                            <i class="fas fa-clock text-white text-xs"></i>
                        </div>
                        <div class="flex-1">
                            <p class="text-white font-semibold">Check In</p>
                            <p class="text-gray-400 text-sm">June 14, 2024 • 3:00 PM</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Payment Summary -->
            <div class="glass-card rounded-2xl p-6 border border-white/10" data-aos="fade-left" data-aos-delay="200">
                <h3 class="text-xl font-bold text-white mb-4 flex items-center gap-2">
                    <i class="fas fa-credit-card text-purple-400"></i>
                    Payment Summary
                </h3>
                <div class="space-y-3">
                    <div class="flex justify-between">
                        <span class="text-gray-400">Room Rate (2 nights)</span>
                        <span class="text-white">£360.00</span>
                    </div>
                    <div class="flex justify-between">
                        <span class="text-gray-400">Taxes & Fees</span>
                        <span class="text-white">£45.00</span>
                    </div>
                    <div class="flex justify-between">
                        <span class="text-gray-400">Breakfast</span>
                        <span class="text-white">Included</span>
                    </div>
                    <div class="border-t border-white/10 pt-3 mt-2">
                        <div class="flex justify-between font-bold">
                            <span class="text-white">Total</span>
                            <span class="text-2xl font-bold text-purple-400">£405.00</span>
                        </div>
                    </div>
                    <div class="mt-4 p-3 bg-green-600/10 rounded-lg border border-green-500/20">
                        <div class="flex items-center gap-2">
                            <i class="fas fa-check-circle text-green-400"></i>
                            <span class="text-green-400 text-sm">Payment confirmed via Stripe</span>
                        </div>
                        <p class="text-gray-400 text-xs mt-1">Transaction ID: ch_3MxKpL2eZvKYo2Ci1xYp2JqR</p>
                    </div>
                </div>
            </div>
            
            <!-- Special Requests -->
            <div class="glass-card rounded-2xl p-6 border border-white/10" data-aos="fade-left" data-aos-delay="300">
                <h3 class="text-xl font-bold text-white mb-4 flex items-center gap-2">
                    <i class="fas fa-comment-dots text-purple-400"></i>
                    Special Requests
                </h3>
                <div class="p-3 bg-white/5 rounded-lg">
                    <p class="text-gray-300">"Late check-in requested. Will arrive around 8:00 PM. Also need extra pillows and vegetarian breakfast options."</p>
                    <p class="text-gray-400 text-sm mt-2">Requested: March 24, 2024</p>
                </div>
            </div>
            
            <!-- Actions -->
            <div class="glass-card rounded-2xl p-6 border border-white/10" data-aos="fade-left" data-aos-delay="400">
                <h3 class="text-xl font-bold text-white mb-4">Actions</h3>
                <div class="space-y-3">
                    <button class="w-full py-2 bg-purple-600 rounded-lg text-white hover:bg-purple-700 transition flex items-center justify-center gap-2">
                        <i class="fas fa-edit"></i> Edit Booking
                    </button>
                    <button class="w-full py-2 bg-white/10 rounded-lg text-gray-300 hover:bg-white/20 transition flex items-center justify-center gap-2">
                        <i class="fas fa-envelope"></i> Send Reminder
                    </button>
                    <button class="w-full py-2 bg-white/10 rounded-lg text-gray-300 hover:bg-white/20 transition flex items-center justify-center gap-2">
                        <i class="fas fa-print"></i> Print Details
                    </button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Related Bookings -->
    <div class="glass-card rounded-2xl p-6 border border-white/10" data-aos="fade-up">
        <h3 class="text-xl font-bold text-white mb-4">Other Bookings from Sarah Johnson</h3>
        <div class="grid md:grid-cols-3 gap-4">
            <div class="p-4 bg-white/5 rounded-lg hover:bg-white/10 transition">
                <div class="flex justify-between items-start mb-2">
                    <span class="badge badge-success">Confirmed</span>
                    <span class="text-gray-400 text-sm">Mar 20, 2024</span>
                </div>
                <p class="text-white font-semibold">Transport: Airport Pickup</p>
                <p class="text-gray-400 text-sm mt-1">Heathrow Airport • June 14, 2:00 PM</p>
                <p class="text-gray-400 text-sm">2 passengers</p>
            </div>
            <div class="p-4 bg-white/5 rounded-lg hover:bg-white/10 transition">
                <div class="flex justify-between items-start mb-2">
                    <span class="badge badge-success">Confirmed</span>
                    <span class="text-gray-400 text-sm">Mar 21, 2024</span>
                </div>
                <p class="text-white font-semibold">Activity: Welcome Dinner</p>
                <p class="text-gray-400 text-sm mt-1">June 14, 7:00 PM</p>
                <p class="text-gray-400 text-sm">2 guests • Vegetarian meal requested</p>
            </div>
            <div class="p-4 bg-white/5 rounded-lg hover:bg-white/10 transition">
                <div class="flex justify-between items-start mb-2">
                    <span class="badge badge-warning">Pending</span>
                    <span class="text-gray-400 text-sm">Mar 22, 2024</span>
                </div>
                <p class="text-white font-semibold">Activity: Day Excursion</p>
                <p class="text-gray-400 text-sm mt-1">June 16, 10:00 AM</p>
                <p class="text-gray-400 text-sm">Awaiting confirmation</p>
            </div>
        </div>
    </div>
</div>
@endsection