@extends('layouts.seller')

@section('title', 'Tax Invoices')

@section('content')
<div class="bg-white p-6 rounded-lg shadow-md">
    <div class="flex items-center justify-end gap-2 mb-4">
        <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-print"></i></button>
        <button class="bg-gray-200 text-gray-700 p-2 rounded-md"><i class="fas fa-trash"></i></button>
    </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-4 gap-4 items-end">
            <div class="md: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">INVOICE#</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 col-start-1">
                <button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded-md font-semibold">Search</button>
                <button type="button" class="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">Invoice #</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Invoice Date</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-center text-xs font-medium text-gray-500 uppercase">Action</th>
                </tr>
            </thead>
            <tbody class="bg-white divide-y divide-gray-200">
                <tr>
                    <td colspan="4" class="text-center py-10 text-sm text-gray-500">No invoices found.</td>
                </tr>
            </tbody>
        </table>
        </div>
    </div>
</div>
@endsection
