{{-- ========================= BASIC STOCK (NO VARIANTS) ========================= --}} @if( !$product->is_variant && $product->is_manage_basic_stock )
{!! svg_icon('boxes', '#000', '18') !!} Available Stock: {{ $stock['stock']['total_stock'] }} {{ $stock['stock']['unit'] }}
@endif {{-- ========================= VARIANT STOCK – BOOTSTRAP GRID ========================= --}} @if( $product->is_variant && !empty($stock['variants']) )

{!! svg_icon('brand-minecraft', '#000', '20') !!} Variant Stock

@foreach($stock['variants'] as $group) {{-- Group title --}}
{{-- Name in bootstrap gray badge --}} {{ $group['group_name'] }}
@foreach($group['items'] as $variant)
{{-- Image --}} {{-- Name --}}
{{ $variant['name'] }}
{{-- Price --}}
{{ format_currency($variant['price']) }}
{{-- Stock --}} @if ($product->is_manage_variant_stock) {{ $variant['stock'].' '.$product->unit }} @endif
@endforeach
@endforeach @if ($product->is_manage_variant_stock) {{-- Total --}}
{!! svg_icon('check-circle', '#198754', '18') !!} Total Variant Stock {{ $stock['stock']['total_stock'] }}
@endif
@endif {{-- ========================= TAX DETAILS ========================= --}} @if( $product->is_taxable && !empty($stock['taxes']) )

{!! svg_icon('receipt-tax', '#000', '20') !!} Tax Information

@foreach($stock['taxes'] as $tax) @endforeach
Tax Name Rate Type Method
{{ $tax['tax_name'] }} {{ $tax['tax_rate'] }} {{ $tax['tax_type'] === 'percent' ? '%' : 'Rs' }} {{ ucfirst($tax['tax_type']) }} {{ $tax['tax_method'] === 'inc' ? 'Inclusive' : 'Exclusive' }}
@endif