@if ($products->stock_manage == 1)
    @php
        $stock = 0;
    @endphp
    @foreach ($products->skus as $sku)
        @php
            $stock += $sku->product_stock;
        @endphp
    @endforeach
@else
    @php
        $stock = __("common.not_manage");
    @endphp
@endif

{{ $stock }}
@if ($products->unit_type_id != null)
    ({{ @$products->unit_type->name }})
@endif
