← 🔮 Varshphal
🔮 {{ $story->title }}
{{ $cards->count() }} cards · {{ ucfirst($story->status) }}
{{-- 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
@if ($cards->isEmpty())
Koi card nahi.
@else
{{-- 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