@extends('layouts.admin') @section('title', 'Social Media Analytics & Performance') @php $typeLabels = [ 'story' => '📖 Kahani', 'shayari' => '✍️ Shayari', 'joke' => '😂 Jokes', 'quote' => '💬 Quotes', 'status' => '📱 Status', 'fact' => '🤯 Facts', 'ukhana' => '🧩 Ukhana', 'quiz' => '🎯 Quiz', 'yoga' => '🧘 Yoga', 'puzzle' => '🔍 Puzzle', 'mind_reader' => '🔮 Mind Reader', 'this_or_that' => '⚖️ This or That', 'name_secret' => '🔤 Name Secrets', 'janm_mahina' => '🎂 Janm Mahina', 'varshphal' => '🔮 Varshphal', ]; $n = fn ($v) => number_format((int) $v); @endphp @section('content')
Instagram / YouTube ke asli numbers (pichhle 60 din ke posts, har 6 ghante update). @if ($lastFetched) Last update: {{ $lastFetched->diffForHumans() }}. @else Abhi tak data nahi aaya — "Abhi update karo" dabao. @endif
{{ $n($counts['total_posts']) }}
{{ $counts['ig_posts'] }} IG • {{ $counts['yt_posts'] }} YT • {{ $counts['fb_posts'] }} FB
{{ $n($totals['ig']['views'] + $totals['yt']['views'] + $totals['fb']['views']) }}
IG {{ $n($totals['ig']['views']) }} • YT {{ $n($totals['yt']['views']) }} • FB {{ $n($totals['fb']['views']) }}
{{ $n($totals['ig']['likes'] + $totals['yt']['likes'] + $totals['fb']['likes']) }}
IG {{ $n($totals['ig']['likes']) }} • YT {{ $n($totals['yt']['likes']) }} • FB {{ $n($totals['fb']['likes']) }}
{{ $n($totals['ig']['comments'] + $totals['yt']['comments'] + $totals['fb']['comments']) }}
IG saves {{ $n($totals['ig']['saves']) }} • shares {{ $n($totals['ig']['shares'] + $totals['fb']['shares']) }}
Har post ke average views aur interactions (likes + comments + saves + shares).
@if ($byType->isEmpty())Abhi data nahi — "Abhi update karo" dabao.
@else @php $maxViews = max(1, $byType->max('avg_views')); @endphpAapke IG posts — kis ghante post kiye gaye posts ko sabse zyada views mile.
@if ($bestHours->isEmpty())Abhi kaafi data nahi — har ghante ke kam se kam 2 posts chahiye.
@elseAbhi data nahi.
@endforelseAbhi data nahi — "Abhi update karo" dabao.
@else| Post | Type | Views | Likes | Comments | Saves | |
|---|---|---|---|---|---|---|
| {{ strtoupper($m->platform) }} {{ $story->title }} | {{ $typeLabels[$story->type] ?? ucfirst((string) $story->type) }} | {{ $m->views !== null ? $n($m->views) : '—' }} | {{ $m->likes !== null ? $n($m->likes) : '—' }} | {{ $m->comments !== null ? $n($m->comments) : '—' }} | {{ $m->saves !== null ? $n($m->saves) : '—' }} | @if ($m->permalink) Dekho ↗ @endif |
No categories found.
@endforelse