@if ($productCategory)
@php
$categories = [];
$currentCategory = $productCategory;
while ($currentCategory) {
$categories[] = $currentCategory;
$currentCategory = $currentCategory->parent; // Üst kategoriyi al
}
$categories = array_reverse($categories); // Üstten alta sıralamak için ters çevir
@endphp
@foreach($categories as $key => $category)
@if (!$loop->last)
@endif
@endforeach
@endif
{{--
--}}
{{ __('front.view') }}
@if (isset($productCategory) && $productCategory->childrens()->count() > 0)