@php use App\Services\CommonService as Common; use App\Services\HtmlService as HTML; if (!empty(Session::get('LoginBy.user_role.role_module'))) { $SysModules = Session::get('LoginBy.user_role.role_module'); }else { $SysModules = array(); } $dateFlag = true; $routes = explode('/', $current_route_name); if(isset($routes[0]) && $routes[0] == 'gnl'){ $dateFlag = false; } $companyInfo = DB::table('gnl_companies')->where([['is_delete', 0], ['is_active', 1]])->first(); $productLogo = NULL; if (isset($companyInfo->product_logo_dash) && !empty($companyInfo->product_logo_dash) && file_exists($companyInfo->product_logo_dash)) { $productLogo = $companyInfo->product_logo_dash; } $productTitle = NULL; if (isset($companyInfo->product_name_dash) && !empty($companyInfo->product_name_dash)) { $productTitle = $companyInfo->product_name_dash; } @endphp Toggle navigation @if (!empty($productLogo)) @endif @if(!empty($productTitle)) {{ $productTitle }} @endif @foreach ($SysModules as $module) {{-- @if(Common::getDBConnection() != "sqlite" || (Common::getDBConnection() == "sqlite" && $module['id'] <= 2)) --}} {{ $module['name'] }} {{-- @endif --}} @endforeach {!! HTML::makeMenus() !!} @if($dateFlag == true) Date: {!! Common::systemCurrentDate() !!} @endif Branch: