@extends('admin.layouts.master') @section('title', 'تفاصيل الضريبة') @section('content')

بطاقة الضريبة

{{ $tax->name }}
الكود: {{ $tax->code }} | النوع: {{ $tax->type === 'percent' ? 'نسبة مئوية (%)' : 'قيمة ثابتة' }}
{{ $tax->is_active ? 'مفعّلة' : 'معطّلة' }} المعدل: {{ number_format((float) $tax->rate, 4) }}{{ $tax->type === 'percent' ? '%' : '' }}
@can('taxes.update') تعديل @endcan رجوع

إجمالي المنتجات

{{ number_format($stats['products_count']) }}

المنتجات المفعلة

{{ number_format($stats['active_products']) }}

وحدات مباعة

{{ number_format((float) $stats['units_sold'], 2) }}

تحصيل ضريبي تقديري

{{ number_format((float) $stats['tax_collected_estimate'], 2) }}

معلومات الضريبة
الاسم {{ $tax->name }}
الكود {{ $tax->code }}
النوع {{ $tax->type === 'percent' ? 'نسبة مئوية (%)' : 'قيمة ثابتة' }}
الوصف {{ $tax->description ?: 'لا يوجد وصف.' }}
تاريخ الإنشاء {{ $tax->created_at?->format('Y-m-d H:i') }}
أحدث المنتجات المرتبطة
{{ $latestProducts->count() }} عنصر
@if($latestProducts->isEmpty())
لا توجد منتجات مرتبطة بهذه الضريبة حتى الآن.
@else
@foreach($latestProducts as $product) @endforeach
المنتج التصنيف العلامة السعر
@can('products.view') {{ $product->name }} @else {{ $product->name }} @endcan
SKU: {{ $product->sku ?: '—' }}
{{ $product->category?->name ?: '—' }} {{ $product->brand?->name ?: '—' }} {{ number_format((float) $product->sale_price, 2) }}
@endif
@endsection