@extends('layouts.master') @section('title', 'Tax Summary Report') @section('styles') @endsection @section('content')
Back to Reports
Tax Summary Report
@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@if($reportData)
@csrf

{{ $reportData['report_name'] }}

{{ $reportData['company_name'] }}
@if(!empty($reportData['company_address']))
{{ $reportData['company_address'] }}
@endif
Period Covered
{{ $reportData['period_from'] }} - {{ $reportData['period_to'] }}
Generated On
{{ $reportData['generated_on'] }}
Prepared By
{{ $reportData['prepared_by'] }}
Currency
{{ $reportData['currency_name'] }} ({{ $reportData['currency_code'] }})
Summary By Tax Type
@forelse($reportData['summary_by_tax'] as $row) @empty @endforelse
Tax Name Tax Rate Tax Type Taxable Amount Tax Amount
{{ $row['tax_name'] }} {{ number_format($row['tax_rate'], 2) }}% {{ $row['tax_type'] }} {{ number_format($row['taxable_amount'], 2) }} {{ number_format($row['tax_amount'], 2) }}
No tax data found.
Totals {{ number_format($reportData['totals']['taxable_amount'], 2) }} {{ number_format($reportData['totals']['tax_amount'], 2) }}
Tax Collected vs Yet To Be Collected
Type Taxable Amount Tax Amount
Tax Collected (Paid Invoices) {{ number_format($reportData['collected_vs_outstanding']['collected_taxable'], 2) }} {{ number_format($reportData['collected_vs_outstanding']['collected_tax'], 2) }}
Tax Yet To Be Collected (Unpaid/Sent/Overdue/Draft) {{ number_format($reportData['collected_vs_outstanding']['outstanding_taxable'], 2) }} {{ number_format($reportData['collected_vs_outstanding']['outstanding_tax'], 2) }}
Net Tax Outstanding {{ number_format($reportData['net_tax_outstanding'], 2) }}
Detailed Transactions By Tax Type
@foreach($reportData['summary_by_tax'] as $row) @php $details = $reportData['detail_by_tax'][$row['tax_id']] ?? []; @endphp
{{ $row['tax_name'] }} ({{ number_format($row['tax_rate'], 2) }}%)
@forelse($details as $detail) @empty @endforelse
Date Transaction Ref Description Status Taxable Amount Tax Amount
{{ $detail['date'] }} {{ $detail['reference'] }} {{ $detail['description'] }} {{ $detail['status'] }} {{ number_format($detail['taxable_amount'], 2) }} {{ number_format($detail['tax_amount'], 2) }}
No transactions for this tax.
Subtotal {{ number_format(collect($details)->sum('taxable_amount'), 2) }} {{ number_format(collect($details)->sum('tax_amount'), 2) }}
@endforeach
Monthly Breakdown
@forelse($reportData['monthly_breakdown'] as $monthRow) @empty @endforelse
Month Taxable Amount Tax Amount
{{ $monthRow['month'] }} {{ number_format($monthRow['taxable_amount'], 2) }} {{ number_format($monthRow['tax_amount'], 2) }}
No monthly data available.
Total {{ number_format($reportData['totals']['taxable_amount'], 2) }} {{ number_format($reportData['totals']['tax_amount'], 2) }}
Tax Rate Summary
@forelse($reportData['summary_by_tax'] as $row) @empty @endforelse
Tax Name Rate Transactions Count Total Tax
{{ $row['tax_name'] }} {{ number_format($row['tax_rate'], 2) }}% {{ $row['transactions_count'] }} {{ number_format($row['tax_amount'], 2) }}
No tax rate data found.
@endif
@endsection