@extends('admin.layouts.app') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('content') {{-- Page Header --}}

Welcome back, {{ auth()->user()->name }}! 👋

Here's what's happening with your site today.

{{-- Stats Cards --}}
{{-- Total Blogs --}}

Total Posts

{{ $stats['total_blogs'] }}

{{-- Brand bar --}}
{{-- Published --}}

Published

{{ $stats['published_blogs'] }}

Live on website
{{-- Drafts --}}

Drafts

{{ $stats['draft_blogs'] }}

Pending publish
{{-- Course Applications --}}

Course Applications

{{ $stats['total_course_applications'] }}

{{ $stats['unread_course_applications'] }} unread

View Applications
{{-- Recent Posts Table --}}

Recent Blog Posts

Latest 5 posts

View All
@if($stats['recent_blogs']->isEmpty())

No blog posts yet

Create your first post
@else
@foreach($stats['recent_blogs'] as $blog) @endforeach
Post Status Date Actions
@if($blog->featured_image && file_exists(public_path('uploads/blogs/'.$blog->featured_image))) {{ $blog->title }} @else
@endif

{{ $blog->title }}

/blog/{{ $blog->slug }}

@if($blog->is_published) Published @else Draft @endif {{ $blog->created_at->format('M d, Y') }}
@endif
@endsection