@extends('themes.cp.'.setting('active_cp_theme').'.layouts.default') @section('content') @push('custom-css') @endpush @php $hub_ids = []; /* if(setting('multihub')){ $h = new Company(); if(!auth()->user()->is_admin){ $hubs = $h->where('type','hub')->where('status', 1)->get(); foreach($hubs as $hub){ if(auth()->user()->hasAnyRole($hub->get_basic_usergroups())) $hub_ids[] = $hub->id; } if(count($hub_ids) > 0){ $t = new Company(); $tabs = $t->where_in('id', $hub_ids)->get(); } }else{ if(auth()->user()->isHubAdmin()){ $t = new Company(); $tabs = $t->where_in('id', get_active_hub_ids())->get(); foreach($tabs as $hub){ $hub_ids[] = $hub->id; } }else{ $h = new Company(); $hubs = $h->where('type','hub')->get(); foreach($hubs as $hub){ $hub_ids[] = $hub->id; } $t = new Company(); $tabs = $t->where_in('id', $hub_ids)->get(); } } }else{ $h = new Company(); $hubs = $h->where('type','main')->get(); foreach($hubs as $hub){ $hub_ids[] = $hub->id; } $t = new Company(); $tabs = $t->where_in('id', $hub_ids)->get(); }*/ @endphp
@if(count($hub_ids) > 0) @endif

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

@if(count($hub_ids) > 0) @php $z = 0; @endphp @foreach($tabs as $tab) @php $classZ = ($z === 0) ? 'show active' : ''; $hb = new Handbook(); $handbook = $hb->where('company_id', $tab->id)->get(); @endphp
{!! $handbook->content !!} @if($handbook->file)
View Document @endif

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

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

No Handbook Info yet

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