{{-- resources/views/reports/tax.blade.php --}} @extends('layouts.app') @section('title', 'Tax Report') @section('page_title', 'Tax Report') @section('page_subtitle', $from->format('d M Y') . ' — ' . $to->format('d M Y')) @section('content') @include('reports.partials.nav') @include('reports.partials.filters', ['route' => 'reports.tax'])
${{ number_format($total_tax, 2) }}
Total Tax Collected
${{ number_format($total_net, 2) }}
Net Sales (ex-tax)
Tax by Rate
@if($by_rate->isEmpty())

No taxable transactions in this period

@else
@foreach($by_rate as $rateKey => $data) @endforeach
Rate Taxable Amount (Net) Tax Amount Transactions
{{ $data['rate'] }}% ${{ number_format($data['subtotal'], 2) }} ${{ number_format($data['tax_amount'], 2) }} {{ $data['count'] }}
TOTAL ${{ number_format($total_net, 2) }} ${{ number_format($total_tax, 2) }}
@endif
@endsection