@extends('layouts.site')

@section('meta')
    <meta name="description" content="Training program fully booked">
@endsection

@section('content')
{{-- Hero Section --}}
<div class="bg-gradient-to-r from-red-500 to-red-600 shadow-lg">
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
        <div class="flex items-center gap-6">
            <div class="hidden md:flex w-20 h-20 rounded-xl shadow-lg bg-white/20 items-center justify-center flex-shrink-0">
                <i class="fas fa-users text-white text-3xl"></i>
            </div>
            <div>
                <h1 class="text-3xl md:text-4xl font-serif font-bold text-white">Programme Fully Booked</h1>
                <p class="text-red-100 mt-2">This training programme has reached its maximum capacity.</p>
            </div>
        </div>
    </div>
</div>

{{-- Breadcrumb --}}
<div class="bg-gray-50 border-b border-gray-200">
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3">
        <nav class="flex items-center space-x-2 text-sm text-gray-600" aria-label="Breadcrumb">
            <a href="{{ url('/') }}" class="hover:text-green-600 transition flex items-center">
                <i class="fas fa-home mr-1"></i>Home
            </a>
            <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
            <a href="{{ route('public.training.index') }}" class="hover:text-green-600 transition">Training Programs</a>
            <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
            <span class="text-gray-900 font-medium">Fully Booked</span>
        </nav>
    </div>
</div>

<section class="bg-gray-50 py-12">
    <div class="container mx-auto px-4">
        <div class="max-w-lg mx-auto text-center">
            <div class="bg-white rounded-2xl shadow-lg p-8">
                {{-- Icon --}}
                <div class="w-24 h-24 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6">
                    <i class="fas fa-users text-red-500 text-4xl"></i>
                </div>

                <h1 class="text-2xl font-bold text-gray-800 mb-3">Fully Booked</h1>
                <p class="text-gray-600 mb-6">
                    We're sorry, but <strong>{{ $package->name }}</strong> has reached its maximum capacity 
                    of {{ $package->capacity }} participants and is no longer accepting applications.
                </p>

                {{-- Package Info --}}
                <div class="bg-gray-50 rounded-lg p-4 mb-6 text-left">
                    <div class="flex items-center gap-4">
                        <div class="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center">
                            <i class="fas fa-book text-green-600"></i>
                        </div>
                        <div>
                            <p class="font-medium text-gray-800">{{ $package->name }}</p>
                            <p class="text-sm text-gray-500">{{ $package->duration_hours }} hours</p>
                        </div>
                    </div>
                </div>

                {{-- Actions --}}
                <div class="flex flex-col sm:flex-row gap-3">
                    <a href="{{ route('public.training.index') }}" 
                       class="flex-1 text-center px-6 py-3 bg-green-600 text-white rounded-lg hover:bg-green-700 transition">
                        <i class="fas fa-list mr-2"></i>
                        Browse Other Programs
                    </a>
                    <a href="{{ route('home') }}" 
                       class="flex-1 text-center px-6 py-3 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition">
                        <i class="fas fa-home mr-2"></i>
                        Go Home
                    </a>
                </div>
            </div>

            {{-- Contact Info --}}
            <div class="mt-8 text-sm text-gray-500">
                <p>
                    Want to be notified when spots become available?
                    <br>
                    <a href="mailto:training@example.com" class="text-green-600 hover:underline">
                        Contact us
                    </a>
                </p>
            </div>
        </div>
    </div>
</section>
@endsection
