@extends('layouts.admin') @section('title', 'Admin Dashboard') @section('content')

Dashboard

Total Videos

{{ number_format($stats['total_videos']) }}

Pending Videos

{{ number_format($stats['pending_videos']) }}

Total Views

{{ number_format($stats['total_views']) }}

Total Users

{{ number_format($stats['total_users']) }}

Recent Videos

@foreach($recentVideos as $video)
@if($video->thumbnail) {{ $video->title }} @else
@endif

{{ $video->title }}

{{ $video->category->name }} • {{ $video->created_at->diffForHumans() }}

{{ ucfirst($video->status) }}
@endforeach

Pending Approval

@foreach($pendingVideos as $video)
@if($video->thumbnail) {{ $video->title }} @else
@endif

{{ $video->title }}

{{ $video->category->name }} • {{ $video->created_at->diffForHumans() }}

@csrf
@csrf
@endforeach
@endsection