@extends('layouts.app', ['pageTitle' => 'Taxes', 'pageSubtitle' => 'Track VAT, WHT, PAYE and other statutory finance obligations'])
@section('content')
<div class="card"><h3 class="section-title">Create Tax Record</h3><form method="POST" action="{{ route('admin.taxes.store') }}" class="form-grid">@csrf
<div class="field"><label>Tax Type</label><input name="tax_type" value="VAT" required></div><div class="field"><label>Period Start</label><input type="date" name="period_start" required></div><div class="field"><label>Period End</label><input type="date" name="period_end" required></div><div class="field"><label>Taxable Amount</label><input type="number" step="0.01" name="taxable_amount" required></div><div class="field"><label>Tax Amount</label><input type="number" step="0.01" name="tax_amount" required></div><div class="field"><label>Due Date</label><input type="date" name="due_date"></div><div class="field"><label>Notes</label><input name="notes"></div><div><button class="btn" type="submit">Save Tax</button></div></form></div>
<div class="card"><h3 class="section-title">Tax Records</h3><div class="table-wrap"><table><thead><tr><th>No</th><th>Type</th><th>Period</th><th>Taxable</th><th>Tax</th><th>Due</th><th>Status</th></tr></thead><tbody>@foreach($records as $r)<tr><td>{{ $r->tax_number }}</td><td>{{ $r->tax_type }}</td><td>{{ $r->period_start }} - {{ $r->period_end }}</td><td>₦{{ number_format($r->taxable_amount,2) }}</td><td>₦{{ number_format($r->tax_amount,2) }}</td><td>{{ $r->due_date }}</td><td>{{ $r->status }}</td></tr>@endforeach</tbody></table></div></div>
@endsection
