@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
No Handbook Info yet