@foreach ($taxCodes as $index => $taxCode) @php $taxTypeLabel = $taxTypeOptions[$taxCode->tax_type] ?? ucfirst(str_replace('_', ' ', $taxCode->tax_type)); $calculationMethodLabel = $calculationMethodOptions[$taxCode->calculation_method] ?? ucfirst(str_replace('_', ' ', $taxCode->calculation_method)); @endphp {{ $taxCodes->firstItem() + $index }} {{ $taxCode->tax_code }} {{ $taxCode->name }} {{ $taxTypeLabel }} {{ $calculationMethodLabel }} {{ $taxCode->is_compound ? 'Yes' : 'No' }} {{ $taxCode->is_active ? 'Active' : 'Inactive' }}
@can('tax-edit') @endcan @role('super-admin')
@csrf @method('DELETE')
@endrole
@endforeach