@extends('admin.layout') @section('title', 'Admin Dashboard') @section('page_title', 'Dashboard') @section('content')
{{ $stats['total_users'] }}
Total Users
{{ $stats['total_videos'] }}
Total Videos
{{ number_format($stats['total_views']) }}
Total Views
{{ number_format($stats['total_likes']) }}
Total Likes
Recent Users
View All
@forelse($recentUsers as $user) @empty @endforelse
User Role Joined
{{ $user->name }}
{{ $user->name }}
{{ Str::limit($user->email, 20) }}
@if($user->role === 'super_admin') Super Admin @elseif($user->role === 'admin') Admin @else User @endif {{ $user->created_at->diffForHumans() }}
No users found
Recent Videos
View All
@forelse($recentVideos as $video) @empty @endforelse
Video Status Uploaded
@if($video->thumbnail) {{ $video->title }} @else
@endif
{{ $video->title }}
by {{ $video->user->name }}
@switch($video->status) @case('ready') Ready @break @case('processing') Processing @break @case('pending') Pending @break @case('failed') Failed @break @endswitch {{ $video->created_at->diffForHumans() }}
No videos found
Videos by Status
{{ $videosByStatus['ready'] ?? 0 }}
Ready
{{ $videosByStatus['processing'] ?? 0 }}
Processing
{{ $videosByStatus['pending'] ?? 0 }}
Pending
{{ $videosByStatus['failed'] ?? 0 }}
Failed
Videos by Visibility
{{ $videosByVisibility['public'] ?? 0 }}
Public
{{ $videosByVisibility['unlisted'] ?? 0 }}
Unlisted
{{ $videosByVisibility['private'] ?? 0 }}
Private
@endsection