@extends('layouts.app') @section('title', __('Tax Filing Report')) @php // Get currency settings from session $currency_symbol = session('currency')['symbol'] ?? '$'; $currency_precision = session('business.currency_precision') ?? 2; $currency_placement = session('business.currency_symbol_placement') ?? 'before'; @endphp @section('content')

{{ __('Tax Filing Report') }} {{ ucfirst($period) }} Report for {{ $year }}

{{ $business->name }}


{{ $business->city }}, {{ $business->state }} {{ $business->zip_code }}
@if($business->tax_number_1) Tax ID: {{ $business->tax_number_1 }} @endif

Tax Filing Assistance Report - {{ ucfirst($period) }} {{ $year }}

Generated on: {{ \Carbon\Carbon::now()->format('F d, Y \a\t g:i A') }}

Filing Summary

@php $total_gross_sales = collect($filing_data)->sum('gross_sales'); $total_taxable_sales = collect($filing_data)->sum('taxable_sales'); $total_tax_collected = collect($filing_data)->sum('tax_collected'); $total_tax_paid = collect($filing_data)->sum('tax_paid_on_purchases'); $net_liability = $total_tax_collected - $total_tax_paid; $periods_count = count($filing_data); @endphp
Total Gross Sales @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($total_gross_sales, $currency_precision) }} @else {{ number_format($total_gross_sales, $currency_precision) }}{{ $currency_symbol }} @endif
Total Tax Collected @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($total_tax_collected, $currency_precision) }} @else {{ number_format($total_tax_collected, $currency_precision) }}{{ $currency_symbol }} @endif
Net Tax Liability @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($net_liability, $currency_precision) }} @else {{ number_format($net_liability, $currency_precision) }}{{ $currency_symbol }} @endif
Filing Periods {{ $periods_count }}

Detailed Filing Data

@foreach($filing_data as $data) @php $period_net_liability = $data['tax_collected'] - $data['tax_paid_on_purchases']; @endphp @endforeach
Period Gross Sales Taxable Sales Tax Collected Tax Paid on Purchases Net Liability Filing Deadline Status
{{ $data['period'] }} @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($data['gross_sales'], $currency_precision) }} @else {{ number_format($data['gross_sales'], $currency_precision) }}{{ $currency_symbol }} @endif @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($data['taxable_sales'], $currency_precision) }} @else {{ number_format($data['taxable_sales'], $currency_precision) }}{{ $currency_symbol }} @endif @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($data['tax_collected'], $currency_precision) }} @else {{ number_format($data['tax_collected'], $currency_precision) }}{{ $currency_symbol }} @endif @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($data['tax_paid_on_purchases'], $currency_precision) }} @else {{ number_format($data['tax_paid_on_purchases'], $currency_precision) }}{{ $currency_symbol }} @endif @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($period_net_liability, $currency_precision) }} @else {{ number_format($period_net_liability, $currency_precision) }}{{ $currency_symbol }} @endif {{ \Carbon\Carbon::parse($data['filing_deadline'])->format('M d, Y') }} @php $deadline = \Carbon\Carbon::parse($data['filing_deadline']); $now = \Carbon\Carbon::now(); $days_remaining = $now->diffInDays($deadline, false); if ($days_remaining < 0) { $status_class = 'label-danger'; $status_text = 'Overdue'; } elseif ($days_remaining <= 7) { $status_class = 'label-warning'; $status_text = 'Due Soon'; } else { $status_class = 'label-success'; $status_text = 'On Track'; } @endphp {{ $status_text }} @if ($days_remaining < 0) ({{ abs($days_remaining) }} days overdue) @else ({{ $days_remaining }} days remaining) @endif
TOTAL @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($total_gross_sales, $currency_precision) }} @else {{ number_format($total_gross_sales, $currency_precision) }}{{ $currency_symbol }} @endif @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($total_taxable_sales, $currency_precision) }} @else {{ number_format($total_taxable_sales, $currency_precision) }}{{ $currency_symbol }} @endif @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($total_tax_collected, $currency_precision) }} @else {{ number_format($total_tax_collected, $currency_precision) }}{{ $currency_symbol }} @endif @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($total_tax_paid, $currency_precision) }} @else {{ number_format($total_tax_paid, $currency_precision) }}{{ $currency_symbol }} @endif @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($net_liability, $currency_precision) }} @else {{ number_format($net_liability, $currency_precision) }}{{ $currency_symbol }} @endif

Filing Instructions & Important Notes

Important Filing Information:

  • Review Accuracy: Please verify all amounts before filing with tax authorities
  • Filing Deadlines: Ensure all returns are filed by the specified deadlines to avoid penalties
  • Supporting Documents: Maintain proper documentation for all transactions and tax calculations
  • Net Liability: Positive amounts indicate tax owed, negative amounts indicate refunds or credits
  • Record Keeping: Keep this report as part of your tax filing records
@if($net_liability > 0)

Payment Due:

You have a net tax liability of @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format($net_liability, $currency_precision) }} @else {{ number_format($net_liability, $currency_precision) }}{{ $currency_symbol }} @endif for the {{ $period }} period(s) in {{ $year }}. Please ensure payment is made by the respective filing deadlines.

@elseif($net_liability < 0)

Credit Available:

You have a net tax credit of @if($currency_placement === 'before') {{ $currency_symbol }}{{ number_format(abs($net_liability), $currency_precision) }} @else {{ number_format(abs($net_liability), $currency_precision) }}{{ $currency_symbol }} @endif for the {{ $period }} period(s) in {{ $year }}. This may be applied to future tax liabilities or claimed as a refund.

@endif
@endsection