@extends('admin.layout') @section('title', 'Analytics — ' . $video->title) @section('page_title', 'Video Analytics') @php function flagEmoji(string $code): string { $chars = ''; foreach (str_split(strtoupper($code)) as $c) { $chars .= mb_chr(0x1F1E6 + ord($c) - ord('A')); } return $chars; } @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') }} |