diff --git a/app/Http/Controllers/Auth/RegisteredUserController.php b/app/Http/Controllers/Auth/RegisteredUserController.php index 327aa76..8195e66 100644 --- a/app/Http/Controllers/Auth/RegisteredUserController.php +++ b/app/Http/Controllers/Auth/RegisteredUserController.php @@ -32,7 +32,11 @@ class RegisteredUserController extends Controller 'name' => ['required', 'string', 'max:255', new ReservedIdentifier('name')], 'email' => ['required', 'string', 'email', 'max:255', 'unique:users', new NotDisposableEmail, new ReservedIdentifier('email')], 'password' => ['required', 'confirmed', Password::defaults()], - 'birthday' => ['required', 'date', 'before:today'], + // Age gate: must be at least 13 on sign-up day. The front-end + // date picker already caps the year dropdown, but the server + // must enforce it so a client bypass doesn't let a 10-year-old + // through. + 'birthday' => ['required', 'date', 'before:' . now()->subYears(13)->toDateString()], 'gender' => ['required', 'in:male,female'], 'nationality' => ['required', 'string', 'size:2'], ]); diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index 5fa96f8..3b5964a 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -292,13 +292,16 @@ {{-- Ready Videos --}}
-
+
{{ number_format($videosByStatus->get('ready', 0)) }}
-
Live Videos
+ {{-- "Ready" matches the DB status column; "Live Videos" was misleading + — nothing streams live from this card, it just counts videos that + finished processing successfully. --}} +
Ready
@php $failPct = $stats['totalVideos'] > 0 ? round(($failedCount/$stats['totalVideos'])*100,1) : 0; @endphp
{{ $failedCount }} failed diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index c69a50f..4f2e54e 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -38,7 +38,10 @@
- + {{-- COPPA / platform minimum age: 13 at sign-up. maxYear caps + the year dropdown at (this year − 13). --}} +
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 4491d28..f629573 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -1218,6 +1218,20 @@ + {{-- Skip link: keyboard users land here first and can jump straight to + the main content region, past the header + sidebar nav. Hidden + off-screen until focused. --}} + Skip to content + @include('layouts.partials.header') diff --git a/resources/views/layouts/partials/header.blade.php b/resources/views/layouts/partials/header.blade.php index 4c89af4..9eb4fc5 100644 --- a/resources/views/layouts/partials/header.blade.php +++ b/resources/views/layouts/partials/header.blade.php @@ -1,8 +1,8 @@
-