@extends('layouts.app') @section('title', 'Detalles del Impuesto') @section('content')
{{ $tax->name }}
{{ $tax->code }}
{{ $tax->description ?: 'Sin descripción' }}
{{ $tax->type_text }}
{{ $tax->calculation_type_text }}
@if($tax->type === 'percentage') {{ $tax->formatted_percentage }} @else {{ $tax->formatted_fixed_amount }} @endif
@php
$ejemplo = 100;
$impuesto = $tax->calculateTax($ejemplo);
$total = $tax->getAmountWithTax($ejemplo);
@endphp
Base: ${{ number_format($ejemplo, 2) }}
Impuesto: ${{ number_format($impuesto, 2) }}
Total: ${{ number_format($total, 2) }}
{{ $tax->status_text }}
@if($tax->is_default) Sí @else No @endif
{{ $tax->sort_order }}
{{ $tax->code }}
@if($tax->type === 'percentage') {{ $tax->formatted_percentage }} @else {{ $tax->formatted_fixed_amount }} @endif
{{ $tax->description ?: 'Sin descripción' }}
{{ $tax->created_at->format('d/m/Y H:i:s') }}
{{ $tax->updated_at->format('d/m/Y H:i:s') }}
#{{ $tax->id }}