@extends('layouts.admin') @section('title', $story->title) @section('content')
← 🔮 Varshphal

🔮 {{ $story->title }}

{{ $cards->count() }} cards · {{ ucfirst($story->status) }}

@csrf @method('DELETE')
{{-- Reel & auto-post settings --}}
@include('admin.partials._reel_settings')
{{-- Auto-post kram --}} @php $vpUid = auth()->id(); $vpNext = collect(['instagram' => 'ig_status', 'facebook' => 'fb_status', 'youtube' => 'yt_status']) ->map(function ($col) use ($cards) { $order = array_map('strtolower', \App\Services\VarshphalService::RASHIS); $c = $cards->filter(fn ($c) => $c->{$col} === null) ->sortBy(function ($c) use ($order) { preg_match('#^cards/vp-([a-z]+)-#', (string) $c->image_path, $rm); return array_search($rm[1] ?? '', $order, true); })->first(); preg_match('#^cards/vp-([a-z]+)-#', (string) $c?->image_path, $rm); return $c ? ucfirst($rm[1] ?? '?') : '✅ sab ho gayi'; }); @endphp
@csrf

Videos Mesh → Meen kram me jaati hain (caption ki "अगला वर्षफल" line se mel). Post auto-post ke window/slot me hi hota hai. Agli: 📸 {{ $vpNext['instagram'] }} · 📘 {{ $vpNext['facebook'] }} · ▶️ {{ $vpNext['youtube'] }}

@if ($cards->isEmpty())
Koi card nahi.
@else
@csrf
@foreach ($cards as $i => $card)
@if ($mp4) @else Card @endif
📸 ▶️ 📘
@if ($mp4) ⬇ Video @endif
@endforeach
{{-- Hidden Individual Card Delete Forms --}} @foreach ($cards as $card) @endforeach

Har video ek rashi ka kundli varshphal hai (awaaz video me hi hai — Reel Audio setting iss par asar nahi karti). Auto-post inhe Mesh → Meen kram me, upar di gayi roz ki limit ke saath, reel ki tarah post karta hai. Kisi rashi ki video dobara banani ho to studio se "🎬 Video banao" — purani (agar post nahi hui) badal jaayegi.

@endif
@push('scripts') @endpush @endsection