@extends('admin.layout') @section('title', 'Admin Dashboard') @section('page_title', 'Dashboard') @section('extra_styles') @endsection @section('content') {{-- ── Alert Banner ── --}} @if($failedCount > 0)
@endif @if($processingCount > 0 || $pendingCount > 0) @endif {{-- ── Stat Cards ── --}}| # | Video | Views | Likes | |
|---|---|---|---|---|
| {{ $i + 1 }} |
@if($v->thumbnail)
@endif
|
{{ $v->username }} | {{ number_format($v->view_count) }} | {{ number_format($v->like_count) }} |
| No videos yet | ||||
| # | User | Videos | Views |
|---|---|---|---|
| {{ $i + 1 }} | {{ $u->video_count }} | {{ number_format($u->total_views ?? 0) }} | |
| No users yet | |||
| User | Role | Joined |
|---|---|---|
|
{{ $user->name }}
{{ Str::limit($user->email, 22) }}
|
@if($user->role === 'super_admin') Super Admin @elseif($user->role === 'admin') Admin @else User @endif | {{ $user->created_at->diffForHumans() }} |
| No users | ||
| Video | Status | When | |
|---|---|---|---|
|
@if($video->thumbnail)
@endif
|
{{ $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 | |||