@php $menu = [ 'stats.realtime' => ['Realtime', 'live'], 'stats.overview' => ['Overview', 'overview'], 'stats.referrers' => ['Referrers', 'link'], 'stats.countries' => ['Countries', 'flag'], 'stats.cities' => ['Cities', 'city'], 'stats.platforms' => ['Platforms', 'platforms'], 'stats.browsers' => ['Browsers', 'browser'], 'stats.devices' => ['Devices', 'devices'] ]; @endphp @if(isset($menu[Route::currentRouteName()])) @include('icons.'.$menu[Route::currentRouteName()][1], ['class' => 'fill-current width-4 height-4 ' . (__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __($menu[Route::currentRouteName()][0]) }} @endif
  • @include('icons.overview', ['class' => 'fill-current width-4 height-4 '.(__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __('Overview') }}
  • @include('icons.link', ['class' => 'fill-current width-4 height-4 '.(__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __('Referrers') }}
  • @include('icons.flag', ['class' => 'fill-current width-4 height-4 '.(__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __('Countries') }}
  • @include('icons.city', ['class' => 'fill-current width-4 height-4 '.(__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __('Cities') }}
  • @include('icons.language', ['class' => 'fill-current width-4 height-4 '.(__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __('Languages') }}
  • @include('icons.platforms', ['class' => 'fill-current width-4 height-4 '.(__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __('Platforms') }}
  • @include('icons.browser', ['class' => 'fill-current width-4 height-4 '.(__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __('Browsers') }}
  • @include('icons.devices', ['class' => 'fill-current width-4 height-4 '.(__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __('Devices') }}