@extends('layouts.admin')

@section('title', 'e-Filing Integration')

@section('content')
<div class="p-6 lg:p-8">
    <div class="flex justify-between items-center mb-6">
        <div>
            <h1 class="text-xl sm:text-2xl lg:text-3xl font-bold text-gray-800">e-Filing Integration</h1>
            <p class="text-sm text-gray-600">Connect with government e-filing portals.</p>
        </div>
    </div>

    <!-- API Settings -->
    <div class="bg-white rounded-lg shadow-md p-6 mb-8">
        <h3 class="text-lg font-semibold border-b pb-2 mb-4">API Configuration</h3>
        <form action="#" method="POST">
            @csrf
            <div class="space-y-4">
                <div>
                    <label class="block text-sm">API Endpoint URL</label>
                    <input type="text" name="api_url" class="form-input" placeholder="https://gov.tax.api/submit">
                </div>
                <div>
                    <label class="block text-sm">API Key</label>
                    <input type="password" name="api_key" class="form-input" placeholder="********">
                </div>
                <div class="flex justify-end">
                    <button type="submit" class="bg-blue-600 text-white px-3 sm:px-4 py-2 rounded-md text-xs sm:text-sm font-semibold hover:bg-blue-700 transition">Save Configuration</button>
                </div>
            </div>
        </form>
    </div>

    <!-- Submission Log -->
    <div class="bg-white rounded-lg shadow-md">
        <div class="p-4 border-b">
            <h3 class="text-lg font-semibold">Recent Submission Logs</h3>
        </div>
        <div class="overflow-x-auto">
            <table class="min-w-full divide-y divide-gray-200">
                <thead class="bg-gray-50">
                    <tr>
                        <th class="px-4 py-2 text-left text-[11px] font-medium text-gray-500 uppercase tracking-wider">Timestamp</th>
                        <th class="px-4 py-2 text-left text-[11px] font-medium text-gray-500 uppercase tracking-wider">Filing Type</th>
                        <th class="px-4 py-2 text-left text-[11px] font-medium text-gray-500 uppercase tracking-wider">Status</th>
                        <th class="px-4 py-2 text-left text-[11px] font-medium text-gray-500 uppercase tracking-wider">Reference ID</th>
                    </tr>
                </thead>
                <tbody class="bg-white divide-y divide-gray-200">
                    <tr>
                        <td colspan="4" class="text-center py-10 text-gray-500">No recent e-filing submissions.</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
@endsection



