@extends('themes.cp.'.setting('active_cp_theme').'.layouts.default') @section('content') @push('custom-css') @endpush @php $t = new Handbook_tab(); $tabs = $t->order_by('order','asc')->get(); @endphp
@if($tabs->exists()) @endif

{{ __('cp.handbook.title') }}

@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
{{ucwords($it->title)}}
{!! $it->content !!} @if($it->files()->exists()) @foreach($it->files() as $file) View {{strtoupper($file->type)}} Details @endforeach @endif
@php $j++; @endphp @endforeach
@else

No Handbook Section Items yet

@endif @endforeach @else

No Handbook Sections Created yet

@endif

{{ __('cp.handbook.title_location') }}

Postal Address:
{{ucwords($company->name)}},
{{$company->address}},
{{$company->city}},
Ireland.
@php $z++; @endphp @endforeach @else

No Handbook Info yet

@endif
@push('custom-js') @endpush @endsection