@extends('admin.layout') @section('title', 'Analytics — ' . $video->title) @section('page_title', 'Video Analytics') @php function flagEmoji(string $code): string { $iso = strtolower(trim($code)); $safe = (strlen($iso) === 2 && ctype_alpha($iso)) ? $iso : 'xx'; return ''; } @endphp @section('content') Back to Videos
No gender data yet. Viewers can set their gender in profile settings.
| Viewer | Country | IP Address | Type | Watched At |
|---|---|---|---|---|
|
@if($view->viewer_avatar)
{{ $view->viewer_name ?? 'Guest' }}
|
@if($view->country) {!! flagEmoji($view->country) !!} {{ $view->country_name ?? $view->country }} @else Unknown @endif | {{ $view->ip_address ?? '—' }} | @if($view->user_id) Logged in @else Guest @endif |
{{ \Carbon\Carbon::parse($view->watched_at)->diffForHumans() }}
{{ \Carbon\Carbon::parse($view->watched_at)->format('M d, Y H:i') }} |