@php $subcategories = collect([]); $parent = $category->parent; if($parent){ if ($parent->parent_id == null) { $subcategories = $category->children()->where('status', 1)->orderBy('position', 'ASC')->get(); } else { $subcategories = $parent->children()->where('status', 1)->orderBy('position', 'ASC')->get(); } } @endphp @push('meta') meta_description : \Illuminate\Support\Str::limit(strip_tags($category->description), 120, '') }}" /> @if (core()->getConfigData('catalog.rich_snippets.categories.enable')) @endif @endPush {{ trim($category->meta_title) != "" ? $category->meta_title : $category->name }} {!! view_render_event('bagisto.shop.categories.view.banner_path.before') !!} {{-- @if ($category->banner_path)
@endif --}} {!! view_render_event('bagisto.shop.categories.view.banner_path.after') !!} {!! view_render_event('bagisto.shop.categories.view.description.before') !!} @if (in_array($category->display_mode, [null, 'description_only', 'products_and_description'])) @if ($category->description)
{!! $category->description !!}
@endif @endif {!! view_render_event('bagisto.shop.categories.view.description.after') !!} @if (in_array($category->display_mode, [null, 'products_only', 'products_and_description'])) @endif @pushOnce('scripts') @endPushOnce