@extends('layouts.app')

@section('content')
<div class="max-w-7xl mx-auto px-6 py-8">
    <div class="mb-8">
        <h1 class="text-3xl font-extrabold text-gray-900">Export Reports</h1>
        <p class="mt-2 text-gray-500">Generate reports for export requests.</p>
    </div>

    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
        
        {{-- Report Card 5: Pending AWB (Highlighted) --}}
        <a href="{{ route('export_reports.pending_awb') }}" class="block p-6 bg-red-50 rounded-lg border border-red-200 shadow-lg hover:shadow-xl transition ring-2 ring-red-400 ring-opacity-50 animate-pulse hover:animate-none">
            <div class="flex items-center mb-2">
                <div class="p-2 bg-red-200 rounded-full mr-3">
                    <svg class="w-6 h-6 text-red-700" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path>
                    </svg>
                </div>
                <h5 class="text-xl font-bold tracking-tight text-red-800">Pending AWB Requests</h5>
            </div>
            <p class="font-normal text-red-700">View all export requests that are missing an AWB number.</p>
        </a>

        {{-- Report Card 1: By Address --}}
        <a href="{{ route('export_reports.by_address') }}" class="block p-6 bg-white rounded-lg border border-gray-200 shadow-md hover:bg-gray-50 transition">
            <div class="flex items-center mb-2">
                <div class="p-2 bg-blue-100 rounded-full mr-3">
                    <svg class="w-6 h-6 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                    </svg>
                </div>
                <h5 class="text-xl font-bold tracking-tight text-gray-900">Requests by Address</h5>
            </div>
            <p class="font-normal text-gray-700">Filter and view export requests for a specific Send-To Address.</p>
        </a>

        {{-- Report Card 2: By Courier --}}
        <a href="{{ route('export_reports.by_courier') }}" class="block p-6 bg-white rounded-lg border border-gray-200 shadow-md hover:bg-gray-50 transition">
            <div class="flex items-center mb-2">
                <div class="p-2 bg-green-100 rounded-full mr-3">
                    <svg class="w-6 h-6 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
                    </svg>
                </div>
                <h5 class="text-xl font-bold tracking-tight text-gray-900">Requests by Courier</h5>
            </div>
            <p class="font-normal text-gray-700">Filter export requests based on the Courier Service used.</p>
        </a>

        {{-- Report Card 3: By Submitter --}}
        <a href="{{ route('export_reports.by_submitter') }}" class="block p-6 bg-white rounded-lg border border-gray-200 shadow-md hover:bg-gray-50 transition">
            <div class="flex items-center mb-2">
                <div class="p-2 bg-purple-100 rounded-full mr-3">
                    <svg class="w-6 h-6 text-purple-600" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path>
                    </svg>
                </div>
                <h5 class="text-xl font-bold tracking-tight text-gray-900">Requests by Submitter</h5>
            </div>
            <p class="font-normal text-gray-700">Filter export requests created by a specific user.</p>
        </a>

        {{-- Report Card 4: By Date --}}
        <a href="{{ route('export_reports.by_date') }}" class="block p-6 bg-white rounded-lg border border-gray-200 shadow-md hover:bg-gray-50 transition">
            <div class="flex items-center mb-2">
                <div class="p-2 bg-yellow-100 rounded-full mr-3">
                    <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path>
                    </svg>
                </div>
                <h5 class="text-xl font-bold tracking-tight text-gray-900">Requests by Date</h5>
            </div>
            <p class="font-normal text-gray-700">Filter export requests within a specific date range.</p>
        </a>



        {{-- Future reports can be added here --}}
        
    </div>
</div>
@endsection
