@if (isset($hasChildren) && !$hasChildren)
{{-- To append in the form (will replace the category field) --}}
@if (isset($category) && !empty($category))
{{--
@if (!empty($category->parent))
@includeFirst(
[
config('larapen.core.customizedViewPath') . 'post.createOrEdit.inc.category.parent',
'post.createOrEdit.inc.category.parent'
],
['parent' => $category->parent]
) »
@endif
--}}
@if (isset($category->children) && $category->children->count() > 0)
{{ $category->name }}
@else
{{ $category->name }}
[ {{ t('Edit') }} ]
@endif
@else
{{ t('select_a_category') }}
@endif
@else
{{-- To append in the modal (will replace the modal content) --}}
@if (isset($category) && !empty($category))
@if ($categoriesOptions['cat_display_type'] == 'c_picture_list')
@foreach($categories as $key => $cat)
@endforeach
@elseif ($categoriesOptions['cat_display_type'] == 'c_bigIcon_list')
@foreach($categories as $key => $cat)
@endforeach
@elseif (in_array($categoriesOptions['cat_display_type'], ['cc_normal_list', 'cc_normal_list_s']))
@foreach ($categories as $key => $cols)
@foreach ($cols as $iCat)
@if (in_array(config('settings.list.show_category_icon'), [2, 6, 7, 8]))
@endif
{{ $iCat->name }}
@if (isset($subCategories) && $subCategories->has($iCat->id))
@foreach ($subCategories->get($iCat->id) as $iSubCat)
-
{{ $iSubCat->name }}
@endforeach
@endif
@endforeach
@endforeach
@else
@foreach ($categories as $key => $items)
@foreach ($items as $k => $cat)
-
@if (in_array(config('settings.list.show_category_icon'), [2, 6, 7, 8]))
@endif
{{ $cat->name }}
@endforeach
@endforeach
@endif
@endif
@else
{{ t('no_categories_found') }}...
@endif
@endif
@section('before_scripts')
@parent
@if (isset($categoriesOptions) && isset($categoriesOptions['max_sub_cats']) && $categoriesOptions['max_sub_cats'] >= 0)
@endif
@endsection