@if($tabs->exists())
@php $z = 0; @endphp
@foreach($tabs as $tab)
@php $classZ = ($z === 0) ? 'show active' : ''; @endphp
@php $s = new Handbook_section();
$sections = $s->where('handbook_tab_id', $tab->id)->order_by('order', 'asc')->get();
@endphp
@if($sections->exists())
@foreach($sections as $section)
@php
$it = new Handbook_item();
$itms = $it->where('handbook_section_id', $section->id)->order_by('order','asc')->get();
@endphp
{{ucwords($section->title)}}
@if($itms->exists())
@php $j = 0; @endphp
@foreach($itms as $it)
@php $classI = ($j === 0) ? 'show' : ''; @endphp
@php $j++; @endphp
@endforeach
@else
No Handbook Section Items yet
@endif
@endforeach
@else
No Handbook Sections Created yet
@endif
{{ __('cp.handbook.title_location') }}
@php $z++; @endphp
@endforeach
@else
@endif