@extends('layouts.seller')

@section('title', 'Settlement Logs')

@section('content')
<div class="bg-white p-6 rounded-lg shadow-md">
    <div class="flex flex-wrap items-center justify-between gap-4 mb-4">
        <div class="border-b border-gray-200">
            <nav class="-mb-px flex space-x-6">
                <a href="#" class="py-4 px-1 border-b-2 border-blue-500 font-medium text-sm text-blue-600">All (0)</a>
                <a href="#" class="py-4 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300">Delivered (0)</a>
                <a href="#" class="py-4 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300">Return (0)</a>
            </nav>
        </div>
        <div class="flex items-center gap-2">
            <button class="bg-gray-200 text-gray-700 p-2 rounded-md"><i class="fas fa-sync-alt"></i></button>
            <button class="bg-gray-200 text-gray-700 p-2 rounded-md"><i class="fas fa-download"></i></button>
            <button class="bg-gray-200 text-gray-700 p-2 rounded-md"><i class="fas fa-print"></i></button>
            <button class="bg-gray-200 text-gray-700 p-2 rounded-md"><i class="fas fa-cog"></i></button>
        </div>
    </div>

    <div class="p-4 border rounded-lg bg-gray-50 mb-6">
        <p class="text-sm font-semibold mb-4">ADVANCED SEARCH</p>
        <form action="#" method="GET" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 items-end">
            <div class="lg:col-span-2">
                <label class="text-xs text-gray-500">Search by</label>
                <div class="flex">
                    <input type="text" placeholder="Search..." class="w-full border-gray-300 rounded-l-md shadow-sm">
                    <button class="bg-gray-200 text-gray-700 px-4 py-2 rounded-r-md font-semibold">TRACKING #</button>
                </div>
            </div>
            <div>
                <label class="text-xs text-gray-500">FROM</label>
                <input type="date" class="w-full border-gray-300 rounded-md shadow-sm">
            </div>
            <div>
                <label class="text-xs text-gray-500">TO</label>
                <input type="date" class="w-full border-gray-300 rounded-md shadow-sm">
            </div>
            <div class="flex items-end gap-2">
                <button type="submit" class="w-full md:w-auto bg-blue-600 text-white px-4 py-2 rounded-md font-semibold">Search</button>
                <button type="button" class="w-full md:w-auto bg-gray-200 text-gray-700 px-4 py-2 rounded-md font-semibold">Clear Filter</button>
            </div>
        </form>
    </div>

    <div class="overflow-x-auto">
        <table class="min-w-full divide-y divide-gray-200">
            <thead>
                <tr>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Tracking #</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Customer</th>
                    <th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase">COD Amount</th>
                    <th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase">Net Amount</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Status</th>
                </tr>
            </thead>
            <tbody class="bg-white divide-y divide-gray-200">
                <tr>
                    <td colspan="5" class="text-center py-10 text-sm text-gray-500">No settlements found.</td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
@endsection
