{{ FindInsettingArr('business_name') }} {{-- {{ FindInsettingArr('business_name') }} --}}
{{-- {{ __('Welcome') }} {{ __('Admin') }} --}}
    @php $currentURL = url()->current(); $currentURL = trim(str_replace(admin_url(), '', $currentURL), '/'); $arrLinks = []; $beforeLinks = \App\Helpers\DashboardLinks::$beforeLeftModuleLinks; $arrLinksModule = \App\Helpers\DashboardLinks::get_cms_modules('left'); $afterLinks = \App\Helpers\DashboardLinks::$afterLeftModuleLinks; $arrLinks = array_merge($beforeLinks, $arrLinksModule, $afterLinks); @endphp
  • Dashboard

  • @foreach ($arrLinks as $key => $val) @php $keys = array_keys($val); @endphp @if (is_array($val[$keys[0]])) @if (isset($val['user_type']) && in_array(auth()->user()->type, $val['user_type'])) @php $isActiveGroup = false; foreach ($val as $key1 => $val1) { if ($key1 != 'icon' && is_array($val1) && isset($val1[2])) { $routePath = trim(explode('?', $val1[2])[0], '/'); if ($currentURL == $routePath || (!empty($routePath) && str_starts_with($currentURL, $routePath . '/'))) { $isActiveGroup = true; break; } } } @endphp
  • {{ $key }}

      @foreach ($val as $key1 => $val1) @if (isset($val1['user_type']) && in_array(auth()->user()->type, $val1['user_type'])) @if ($key1 != 'icon') @php $childRoutePath = trim(explode('?', $val1[2])[0], '/'); $isChildActive = ($currentURL == $childRoutePath || (!empty($childRoutePath) && str_starts_with($currentURL, $childRoutePath . '/'))); @endphp
    • {{ $val1[0] }}

    • @endif @endif @endforeach
  • @endif @else @if (isset($val['user_type']) && in_array(auth()->user()->type, $val['user_type'])) @php $singleRoutePath = trim(explode('?', $val[2])[0], '/'); $isSingleActive = ($currentURL == $singleRoutePath || (!empty($singleRoutePath) && str_starts_with($currentURL, $singleRoutePath . '/'))); @endphp
  • {{ $val[0] }}

  • @endif @endif @endforeach