@foreach ($product_categories as $product_category) {{ $prefix.' '.$product_category->title }} @if ($product_category->id === 1) Mặc định @endif
Chỉnh sửa {{ __('Xóa') }}
{{ $product_category->description }} {{ $product_category->slug }} {{ $product_category->count }} @if (!empty($product_category->children)) @php $prefix = $prefix.'-'; @endphp @include('livewire.tenant.backend.commerce.recursive', [ 'product_categories' => $product_category->children ]) @php $prefix = substr($prefix, 0, -1); @endphp @endif @endforeach