@auth @php $user = auth()->user(); $hasImage = $user->user_image && file_exists(public_path('uploads/users/' . $user->user_image)); $userImageUrl = $hasImage ? asset('uploads/users/' . $user->user_image) : asset('assets/demo/user-image-cropped.jpg'); $firstLetter = strtoupper(substr($user->first_name, 0, 1)); @endphp
{{ $user->first_name }}
@if($hasImage)
{{ $user->first_name }}
@else {{ $firstLetter }} @endif
{{ $user->first_name }} {{ $user->last_name }}
{{ $user->email }}
@endauth
  • home Dashboard
  • {{-- Journal Section --}} @canany(['view Journal', 'view About Journal', 'view Journal Info'])
  • assignment Journal
      @can('view Journal')
    • Journal
    • @endcan @can('view About Journal')
    • About Journal
    • @endcan @can('view Journal Info')
    • Journal Info
    • @endcan
  • @endcanany {{-- Editorial Section --}} @canany(['view Editorial Category', 'view Editorial Board'])
  • grid_on Editorial
      @can('view Editorial Category')
    • Editorial Categories
    • @endcan @can('view Editorial Board')
    • Editorial Board
    • @endcan
  • @endcanany {{-- For Reviewer Section --}} @can('view Reviewer')
  • grid_on For Reviewer
    • Reviewer
  • @endcan {{-- Ethics and Policies Section --}} @can('view Policy')
  • lightbulb_outline Ethics and Policies
    • Ethics and Policies
  • @endcan {{-- For Authors Section --}} @can('view For Author')
  • lightbulb_outline For Authors
    • For Authors
  • @endcan {{-- Roles & Permission Section --}} @canany(['view Permission', 'view Role', 'view User'])
  • Roles & Permission
      @can('view Permission')
    • Permission
    • @endcan @can('view Role')
    • Roles
    • @endcan @can('view User')
    • Users
    • @endcan
  • @endcanany {{-- Settings / Contact --}} @can('view Contact')
  • grid_on Settings
  • @endcan