@extends('layouts.admin') @section('title', 'Social posts') @section('content') @php $tone = fn (?string $status) => match ($status) { 'published' => 'success', 'scheduled', 'approved' => 'warning', 'failed', 'rejected' => 'danger', default => 'muted', }; @endphp @if($sandbox) Sandbox mode @endif Calendar Compose @if(session('status'))
{{ session('status') }}
@endif
All {{ number_format($stats['total']) }} Drafts {{ number_format($stats['draft']) }} Scheduled {{ number_format($stats['scheduled']) }} Published {{ number_format($stats['published']) }} {{ number_format($stats['pending']) }} pending approval
@if(request('status')) @endif
@forelse($posts as $post) @empty @endforelse
Post Status Networks When
{{ $post->number }}
{{ \Illuminate\Support\Str::limit($post->body_text, 72) }}
{{ $post->status }} {{ implode(', ', $post->networks ?? []) }} {{ $post->published_at?->format('M j, g:ia') ?? $post->scheduled_at?->format('M j, g:ia') ?? '—' }}
@if(in_array($post->status, ['scheduled', 'approved', 'draft'], true))
@csrf
@endif
@csrf
No posts yet — compose your first.
{{ $posts->links() }}
@endsection