@extends('layouts.app') @section('content')

{{ __('xproduct::product.headings.product_categories')}}

@foreach($categories as $category)

{{$category->category_name}}

@php $childs = \Pramix\XProduct\Models\ProductCategoriesModel::where('parent_id', $category->id)->get(); @endphp @if(count($childs) > 0)
    @foreach($childs as $child)
  • {{$child->category_name ?? ''}}
  • @endforeach
@endif @endforeach
@endsection @section('custom_script') @endsection