@extends('layouts.app')
@section('title','UAE VAT Working')
@section('page_title','UAE VAT Working Report')
@section('content')
<div class="page-head"><div><h1>VAT Working Report</h1><p>{{ $from }} to {{ $to }} · Accountant review required before finalisation.</p></div></div>@include('reports.partials.date-filter')
<div class="grid grid-3" style="margin-top:18px"><div class="card metric"><div class="metric-label">Output VAT</div><div class="metric-value">AED {{ number_format((float)$output,2) }}</div></div><div class="card metric"><div class="metric-label">Recoverable Input VAT</div><div class="metric-value">AED {{ number_format((float)$input,2) }}</div></div><div class="card metric"><div class="metric-label">Estimated VAT Payable</div><div class="metric-value">AED {{ number_format((float)$output-(float)$input,2) }}</div></div></div>
<div class="grid grid-2" style="margin-top:18px"><div class="card"><div class="card-head"><strong>Sales VAT</strong></div><div class="table-wrap"><table class="table"><thead><tr><th>Tax Code</th><th>Category</th><th>Taxable</th><th>Output VAT</th></tr></thead><tbody>@foreach($sales as $r)<tr><td>{{ $r->code }}</td><td>{{ $r->category }}</td><td>{{ number_format((float)$r->taxable,2) }}</td><td>{{ number_format((float)$r->vat,2) }}</td></tr>@endforeach</tbody></table></div></div><div class="card"><div class="card-head"><strong>Purchase VAT</strong></div><div class="table-wrap"><table class="table"><thead><tr><th>Tax Code</th><th>Taxable</th><th>Recoverable</th><th>Non-Recoverable</th></tr></thead><tbody>@foreach($purchases as $r)<tr><td>{{ $r->code }}</td><td>{{ number_format((float)$r->taxable,2) }}</td><td>{{ number_format((float)$r->recoverable_vat,2) }}</td><td>{{ number_format((float)$r->nonrecoverable_vat,2) }}</td></tr>@endforeach</tbody></table></div></div></div>
@endsection
