@extends('layouts.admin') @section('title', 'Tax Collection Report') @section('content')

Tax Collection Report

Export CSV Back to Reports
@if(isset($summary))
Total Calculations
{{ number_format($summary->total_calculations) }}
Total Revenue
KES {{ number_format($summary->total_revenue, 2) }}
Average Tax
KES {{ number_format($summary->average_tax, 2) }}
Highest Tax
KES {{ number_format($summary->highest_tax, 2) }}
@endif
Daily Tax Collection Period: {{ $dateRange['start']->format('M j, Y') }} - {{ $dateRange['end']->format('M j, Y') }}
@if($taxCollection->count() > 0)
@foreach($taxCollection as $collection) @endforeach @if(isset($summary)) @endif
Date Calculations Total Revenue (KES) Average Tax (KES) Trend
{{ \Carbon\Carbon::parse($collection->date)->format('M j, Y') }} {{ number_format($collection->total_calculations) }} KES {{ number_format($collection->total_revenue, 2) }} KES {{ number_format($collection->average_tax, 2) }} @php $trend = $collection->total_revenue > 0 ? 'up' : 'flat'; @endphp
Total {{ number_format($summary->total_calculations) }} KES {{ number_format($summary->total_revenue, 2) }} KES {{ number_format($summary->average_tax, 2) }}
@else
No tax collection data found for the selected period

Try adjusting your date range or check back later.

@endif
Revenue Trend
Chart Visualization

Chart visualization can be implemented using Chart.js, Highcharts, or any other charting library. Data is available in the table above.

Total Days: {{ $taxCollection->count() }} Data Range: {{ $dateRange['start']->format('M j') }} - {{ $dateRange['end']->format('M j, Y') }}
@endsection @push('scripts') @endpush