@php try { $currentRoute = Route::currentRouteName(); $currentTime = Carbon\Carbon::now(); $accessLog = App\UserAccessLog::create(['usuarios_id' => auth()->user()->id, 'routeName' => $currentRoute, 'dhEvent' => $currentTime->toDateTimeString()]); } catch(Exception $e) { } @endphp @php $registers = app(App\Http\Controllers\HomeController::class)->menuLoading(); @endphp
    @php $url = 'http://'.Request::server ("HTTP_HOST"); $endPoint = str_replace($url, "", url()->full()); @endphp @foreach($registers as $item) @if($item->tipoPrincipal == 'Y')
  • path}}') ? 'class="collapsed active"' : 'class="collapsed"' !!}> icone {{$item->nmMenu}} @php $loopUl = 1; @endphp @foreach($registers as $checkSub) @if($checkSub->tipoPrincipal == 'N' && $item->nmMenu == $checkSub->belongsTo) @if($loopUl == 1) @php $routes = '*'; foreach($registers as $checkSub2){ if($checkSub2->tipoPrincipal == 'N' && $item->nmMenu == $checkSub2->belongsTo){ $routes .= $checkSub2->route ; } } @endphp
      @php $loopUl = 2; @endphp @endif @php $url = url()->full(); @endphp
    • route) ? "class='active'" : "" !!}> {{$checkSub->nmMenu}}
    • @endif @endforeach @if( $loopUl == 2)
    @endif
  • @endif @endforeach