{{--
Called in the ./select.blade.php file,
to be appended in the form (will replace the category field)
--}}
@if (isset($parent) && !empty($parent))
@if (!empty($parent->parent))
@includeFirst(
[
config('larapen.core.customizedViewPath') . 'post.createOrEdit.inc.category.parent',
'post.createOrEdit.inc.category.parent'
],
['parent' => $parent->parent]
) »
@endif
@if (isset($parent->children) && $parent->children->count() > 0)
{{ $parent->name }}
@else
{{ $parent->name }}
[ {{ t('Edit') }} ]
@endif
@endif