@extends('layouts.app') @section('title', 'Tax Codes') @section('breadcrumb') @endsection @section('content')
{{-- Tax Codes Table --}}
Tax Codes
@forelse($taxCodes as $tax) @empty @endforelse
Code / Name Rate Type Applies To Status Actions
{{ $tax->name }}
{{ $tax->code }}
{{ number_format($tax->rate, 2) }}% {{ ucfirst($tax->type) }} @php $on=['sales'=>['#d1e7dd','#0a3622'],'purchase'=>['#fff3cd','#664d03'],'both'=>['#EBF3FB','#1B4F8A']]; [$bg,$fg]=$on[$tax->applicable_on]; @endphp {{ ucfirst($tax->applicable_on) }} {{ $tax->is_active ? 'Active' : 'Inactive' }} @if(auth()->user()->hasPermission('settings','edit'))
@csrf @method('DELETE')
@endif
No tax codes yet. Add your first tax code using the form.
{{-- Add Tax Code Form --}}
@if(auth()->user()->hasPermission('settings','edit'))
Add Tax Code
@csrf
@error('code')
{{ $message }}
@enderror
%
@error('rate')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
@endif
Tax Type Guide
Exclusive (most common)
Tax is added on top of the price.
Price: $100 + 15% = $115 total
Inclusive
Tax is included in the price.
Price: $115 includes 15% = $15 tax
{{-- Edit Tax Modal --}} @endsection @push('scripts') @endpush