@php
$current_user = request()->user();
$items = $categories->whereIn('type', ['folder', 'file']);
$collections = $categories->where('type', 'category');
@endphp
@if($categories->count() > 0)
@if($collections->count() > 0)
@foreach($collections as $category)
@include('organizationaldocument::categories.category')
@endforeach
@endif
@if($items->count() > 0)
@foreach($items as $item)
@include('organizationaldocument::categories.item')
@endforeach
@endif
@else
{{__('title.no_result_found')}}
@endif