@php($treeExist = 0)
@php($treeExist = 0)
@if (isset($tree))
@if (count($tree) > 0)
Výkaz domu {{ $dum->popis }}
@php($treeExist = 1)
@include('components.tree', ['children' => $tree])
@endif
@endif
@php($treeFExist = 0)
@if (isset($treeF))
@if (count($treeF) > 0)
@php($treeFExist = 1)
Výkaz domu pro funkcionáře {{ $dum->popis }}
@include('components.tree', ['children' => $treeF])
@endif
@endif
@php($treeOstExist = 0)
@if (Auth::user()->Access->F1 || Auth::user()->Access->F2 || Auth::user()->Access->F3 || Auth::user()->Access->U4)
@if (isset($treeOst))
@if (count($treeOst) > 0)
@php($treeOstExist = 1)
Ostatní výkazy domu {{ $dum->popis }}
@include('components.tree', ['children' => $treeOst])
@endif
@endif
@endif
@if(!$treeExist && !$treeFExist && !$treeOstExist)
K zobrazení není žádný dokument
@endif