@php $menu = [ 'stats.overview' => ['Overview', 'assesment'], 'stats.referrers' => ['Referrers', 'link'], 'stats.countries' => ['Countries', 'flag'], 'stats.cities' => ['Cities', 'business'], 'stats.platforms' => ['Platforms', 'devices'], 'stats.browsers' => ['Browsers', 'tab'], 'stats.devices' => ['Devices', 'devices-other'] ]; @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.assesment', ['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.business', ['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.devices', ['class' => 'fill-current width-4 height-4 '.(__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __('Platforms') }}
  • @include('icons.tab', ['class' => 'fill-current width-4 height-4 '.(__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __('Browsers') }}
  • @include('icons.devices-other', ['class' => 'fill-current width-4 height-4 '.(__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __('Devices') }}