@extends("layouts.dashboard") @section("title", "Dashboard | TechnoBlog") @section("dashboard_content")
@if(auth()->user()->hasPermission("access_all_posts"))
{{ $counters["allPosts"] }}
@endif @if(auth()->user()->hasPermission("access_all_users"))
{{ $counters["users"] }}
@endif @if(auth()->user()->hasPermission("approve_all_comments"))
{{ $counters["total_comments"] }}
@endif
{{ $counters["comments"] }}
@if(auth()->user()->hasPermission("confirm_post"))

Pending Posts

@endif @php $flag = true; if(!auth()->user()->hasPermission("confirm_post")) { $flag = false; } @endphp

Pending Comments

@if($flag)
@endif

Popular Posts

@foreach ($mostLikedPosts as $post) @endforeach
strtolower($post->category->name), "slug" => $post->slug]) }}" target="_blank">{{ $post->title }} {{ $post->total_likes }}
@if(!$flag)
@endif
@endsection