@can('admin-hidden-navbar') @php $top_navbar_sel = $setting->show_hidden_data == true ? $top_navbar_all : $top_navbar ; @endphp @else @php $top_navbar_sel = $top_navbar; @endphp @endcan @foreach($top_navbar_sel as $top_navbar_item) @if(count($top_navbar_item["items"]) == 0) @if( $top_navbar_item["permission"] !== null && $top_navbar_item["permission"] != '' ) @can($top_navbar_item["permission"])
  • {{ $top_navbar_item['title'] }}
  • @endcan @else
  • {{ $top_navbar_item['title'] }}
  • @endif @else @if($top_navbar_item["col"] == false)
  • {{ $top_navbar_item["title"] }}
      @foreach($top_navbar_item["items"] as $top_navbar_item2 ) @if( $top_navbar_item2["permission"] !== null && $top_navbar_item2["permission"] != '' ) @can($top_navbar_item2["permission"])
    • {{ $top_navbar_item2['title'] }}
    • @endcan @else
    • {{ $top_navbar_item2['title'] }}
    • @endif @endforeach
  • @else
  • {{ $top_navbar_item["title"] }}
    • @foreach($top_navbar_item["items"] as $top_navbar_item2 )
      • {{ $top_navbar_item2['title'] }}
      • @if(isset($top_navbar_item2["items"])) @foreach($top_navbar_item2["items"] as $top_navbar_item3 )
      • {{ $top_navbar_item3['title'] }}
      • @endforeach @endif
      @endforeach
  • @endif @endif @endforeach
  • ...
      @if(!Auth::user())
    • عضویت / ورود
    • @else
    • {{ (Auth::user()->gender==1 ? "آقای " : (Auth::user()->gender==2 ? "خانم " : "")) . ( Auth::user()->field_activity == 'پزشک / دندانپزشک' ? 'دکتر ' : '') . ( strlen( Auth::user()->first_name ) < 2 || is_null(Auth::user()->first_name) ? 'حساب کاربری' : mb_strimwidth(Auth::user()->first_name . ' ' . Auth::user()->last_name, 0, 15 + ( Auth::user()->gender==1 || Auth::user()->gender==2 ? 0 : 5 ) + (Auth::user()->field_activity == 'پزشک / دندانپزشک' ? 0 :5 ) , "…") ) }}
        {{--
      • امتیاز ({{ \App\Models\PurchasePoint::where('user_id', Auth::user()->id)->where('empty', false)->sum('score') }})
      • --}}
      • دنت کلاب ({{ Auth::user()->club_points }})
      • حساب کاربری
      • پیگیری سفارش
      • خروج
    • @endif