@extends('admin.layouts.layout') @section('title', 'View Tax: ' . $tax->title) @section('content')

View Tax: {{ $tax->title }}

@if($permission['taxEdit'] ?? true) Edit Tax @endif @if($permission['taxIndex'] ?? true) Back to Taxes @endif
Tax Details
{{ $tax->title }}
{{ $tax->tax_type }}
{{ $tax->formatted_tax_rate }}
@if($tax->service) {{ $tax->service->service_name }} @else All Services @endif
{{ $tax->sort_order ?? 0 }}
{!! $tax->status_badge !!}
{{ $tax->tenant->name ?? 'N/A' }}
{{ $tax->created_at ? \App\Helpers\Helper::showdate($tax->created_at) : 'N/A' }}
{{ $tax->updated_at ? \App\Helpers\Helper::showdate($tax->updated_at) : 'N/A' }}
Tax Application Examples
For Percentage Tax ({{ $tax->tax_type === 'Percentage' ? $tax->tax_rate . '%' : 'N/A' }})
  • Service Cost: $100.00
  • Tax Amount: ${{ $tax->tax_type === 'Percentage' ? number_format($tax->tax_rate * 100 / 100, 2) : '0.00' }}
  • Total Cost: ${{ $tax->tax_type === 'Percentage' ? number_format(100 + ($tax->tax_rate * 100 / 100), 2) : '100.00' }}
For Fixed Tax ({{ $tax->tax_type === 'Fixed' ? '$' . number_format($tax->tax_rate, 2) : 'N/A' }})
  • Service Cost: $100.00
  • Tax Amount: ${{ $tax->tax_type === 'Fixed' ? number_format($tax->tax_rate, 2) : '0.00' }}
  • Total Cost: ${{ $tax->tax_type === 'Fixed' ? number_format(100 + $tax->tax_rate, 2) : '100.00' }}
@if($tax->service)
Other Taxes for {{ $tax->service->service_name }}
@php $otherTaxes = \App\Models\Tax::where('service_id', $tax->service_id) ->where('id', '!=', $tax->id) ->where('tenant_id', $tax->tenant_id) ->orderBy('sort_order', 'asc') ->get(); @endphp @if($otherTaxes->count() > 0)
@foreach($otherTaxes as $otherTax) @endforeach
Tax Title Type Rate Status Action
{{ $otherTax->title }} {{ $otherTax->tax_type }} {{ $otherTax->formatted_tax_rate }} {!! $otherTax->status_badge !!}
@else

No other taxes found for this service.

@endif
@endif
@endsection @push('page_css') @endpush