SkinBase
  • Browse
    • Browse Artworks:
      • All Artworks
      • Photography
      • Wallpapers
      • Skins
      • Other
      • Featured
      View:
      • Forum
      • Chat
      • Categories
      • Latest Uploads
      • Recent Uploads
      • Today in History
      Authors:
      • Interviews
      • Members Photos
      • Top Authors
      • Latest Comments
      • Monthly Top Comments
      Statistics:
      • Today Downloads
      • Top Favourites
  • Categories
    •   Photography
    •   Wallpapers
    •   Skins
    •   Others
    •   Categories List
    @auth @php $userId = auth()->id(); try { $uploadCount = \Illuminate\Support\Facades\DB::table('artworks')->where('user_id', $userId)->count(); } catch (\Throwable $e) { $uploadCount = 0; } try { $favCount = \Illuminate\Support\Facades\DB::table('favourites')->where('user_id', $userId)->count(); } catch (\Throwable $e) { $favCount = 0; } try { $msgCount = \Illuminate\Support\Facades\DB::table('messages')->where('reciever_id', $userId)->whereNull('read_at')->count(); } catch (\Throwable $e) { $msgCount = 0; } try { $noticeCount = \Illuminate\Support\Facades\DB::table('notification')->where('user_id', $userId)->where('new', 1)->count(); } catch (\Throwable $e) { $noticeCount = 0; } try { $profile = \Illuminate\Support\Facades\DB::table('user_profiles')->where('user_id', $userId)->first(); $avatar = $profile->avatar ?? null; } catch (\Throwable $e) { $avatar = null; } $displayName = auth()->user()->name ?: (auth()->user()->username ?? ''); @endphp

  • {{ $uploadCount }}

  • {{ $favCount }}

  • {{ $msgCount }}

  • {{ $noticeCount }}
  • @if($avatar) {{ $displayName }}   @endif {{ $displayName }}  
    • Upload
    • Edit Artworks
    • Statistics
    • My Followes
    • Who follows me
    • Received Comments
    • My Favourites
    • My Gallery
    • Edit Profile
    • View My Profile
    • @csrf
  • @else
  • Join
  • Sign in
  • @endauth