@extends('layouts.app') @section('content')
@include('shared.messages')

{{__('texte.categories_arr.categories_order.categories')}}

@permission('category-route-list') {{__('texte.categories_arr.categories_order.back')}} @endpermission
@permission('category-route-list')
    @foreach($categories as $current_category)
  1. {{$current_category->name}}
    @if(count($current_category->children)>0)
      @foreach($current_category->children as $current_sub_category)
    1. {{$current_sub_category->name}}
      @if(count($current_sub_category->children)>0)
        @foreach($current_sub_category->children as $current_sub_sub_category)
      1. {{$current_sub_sub_category->name}}
      2. @endforeach
      @endif
    2. @endforeach
    @endif
  2. @endforeach
@endpermission
@endsection