@php $show = isset($show) && $show; @endphp
@foreach($ar->Files->whereNotNull('use_type')->sortBy('use_type') as $file)
{{ 'File.' . $file->uuid }}

Index : {{ $file->use_type }}

@if(!$show) @endif
@if(isset($sub) && count($sub->GetTargets()[$file->uuid])) @foreach($sub->GetTargets()[$file->uuid] as $target) @include('projects.subs.partial.item', [$file, $target, $show, 'form' => $sub->Forms($target)]) @endforeach @elseif(!$show) @include('projects.subs.partial.item', $file) @endif
@endforeach