@php $taxTypeOptions = \App\Models\TaxCode::taxTypeOptions(); $calculationMethodOptions = \App\Models\TaxCode::calculationMethodOptions(); $taxTypeLabel = $taxTypeOptions[$taxCode->tax_type] ?? ucfirst(str_replace('_', ' ', $taxCode->tax_type)); $calculationMethodLabel = $calculationMethodOptions[$taxCode->calculation_method] ?? ucfirst(str_replace('_', ' ', $taxCode->calculation_method)); @endphp

View Tax Code: {{ $taxCode->tax_code }}

is_active ? 'checked' : '' }} disabled>
is_compound ? 'checked' : '' }} disabled>
included_in_price ? 'checked' : '' }} disabled>

Tax Rates

@if($taxCode->taxRates->count() > 0)
@foreach($taxCode->taxRates->sortByDesc('effective_from') as $rate) @endforeach
Rate (%) Effective From Effective To Region Status
{{ number_format($rate->rate, 2) }}% {{ $rate->effective_from->format('d-m-Y') }} {{ $rate->effective_to ? $rate->effective_to->format('d-m-Y') : 'Ongoing' }} {{ $rate->region ?? 'All Regions' }} {{ $rate->is_active ? 'Active' : 'Inactive' }}
@else

No tax rates defined for this tax code.

@endif