@extends('layouts.admin') @section('title', 'Tax Calculation Results - Admin') @section('content')

Tax Calculation Results

Calculation Complete

Detailed breakdown of import taxes and duties

Calculation ID
{{ $calculation->id ?? 'N/A' }}
Input Details
@if($input['weight'] ?? false) @endif @if(($input['quantity'] ?? 1) > 1) @endif @if($input['description'] ?? false) @endif
HS Code {{ $input['hs_code'] }}
Country of Origin {{ $input['country_of_origin'] }}
CIF Value {{ $input['currency'] }} {{ number_format($input['cif_value'], 2) }}
Weight {{ number_format($input['weight'], 2) }} KG
Quantity {{ $input['quantity'] }} units
Description {{ $input['description'] }}
HS Code Information
Code
{{ $result['hs_code_details']['code'] }}
Duty Type
{{ ucfirst($result['hs_code_details']['duty_type']) }}
Description
{{ $result['hs_code_details']['description'] }}
Duty Value
{{ $result['hs_code_details']['duty_value'] }} @if($result['hs_code_details']['duty_type'] === 'percentage')% @endif
Status
@if($result['hs_code_details']['excise_applicable']) Excise @endif @if($result['hs_code_details']['sensitive']) Sensitive @endif
Tax Base Calculation
CIF Value

KES {{ number_format($result['tax_base']['cif_value'], 2) }}

Benchmark Value

KES {{ number_format($result['tax_base']['benchmark_value'] ?? 0, 2) }}

Benchmark Applied

@if($result['tax_base']['benchmark_applied']) Yes @else No @endif

Final Tax Base

KES {{ number_format($result['tax_base']['final_tax_base'], 2) }}

Tax Breakdown
@if($result['breakdown']['excise_duty'] > 0) @endif
Tax Type Calculation Basis Rate Amount (KES)
Import Duty {{ $result['hs_code_details']['duty_type'] === 'percentage' ? $result['hs_code_details']['duty_value'] . '% of Tax Base' : 'Flat Rate' }} {{ $result['hs_code_details']['duty_value'] }} @if($result['hs_code_details']['duty_type'] === 'percentage')% @endif {{ number_format($result['breakdown']['import_duty'], 2) }}
Excise Duty Applicable for this HS code Variable {{ number_format($result['breakdown']['excise_duty'], 2) }}
VAT 16% of (Tax Base + Import Duty + Excise + IDF + RDL) 16% {{ number_format($result['breakdown']['vat'], 2) }}
IDF 2.5% of Tax Base 2.5% {{ number_format($result['breakdown']['idf'], 2) }}
RDL 2% of Tax Base 2% {{ number_format($result['breakdown']['rdl'], 2) }}
Total Taxes Payable KES {{ number_format($result['total_taxes'], 2) }}
Tax Distribution
@php $total = $result['total_taxes']; $importDutyPercent = ($result['breakdown']['import_duty'] / $total) * 100; $vatPercent = ($result['breakdown']['vat'] / $total) * 100; $idfPercent = ($result['breakdown']['idf'] / $total) * 100; $rdlPercent = ($result['breakdown']['rdl'] / $total) * 100; $excisePercent = ($result['breakdown']['excise_duty'] / $total) * 100; @endphp
Import Duty {{ number_format($importDutyPercent, 1) }}%
VAT {{ number_format($vatPercent, 1) }}%
IDF {{ number_format($idfPercent, 1) }}%
RDL {{ number_format($rdlPercent, 1) }}%
@if($result['breakdown']['excise_duty'] > 0)
Excise Duty {{ number_format($excisePercent, 1) }}%
@endif

KES {{ number_format($result['total_taxes'], 2) }}

Total Taxes Payable

Calculation Details
Calculation Timestamp
{{ now()->format('M j, Y H:i:s') }}
Calculated By
{{ auth()->user()->name }}
Session ID
{{ substr(session()->getId(), 0, 8) }}...
@endsection @push('styles') @endpush @push('scripts') @endpush