@extends('layouts.app') @section('content')

{{ $post->title }}

{{ $post->status }}

Scheduled for: {{ $post->scheduled_at->format('M d, Y - H:i') }} (Africa/Nairobi)

@if($post->canBeCancelled())
@csrf
@endif @if(in_array($post->status, ['failed', 'needs_attention']))
@csrf
@endif
@if($post->error_message)
Execution Error: {{ $post->error_message }}
@endif
@if($post->mediaAsset)
{{ $post->mediaAsset->title }} ({{ $post->mediaAsset->formatted_size }})
@else
No media attached
@endif

Post Details

{{ $post->default_caption ?: 'No default caption.' }}
Retries: {{ $post->retry_count }} / {{ $post->max_retries }}
Created: {{ $post->created_at->format('Y-m-d H:i') }} EAT
@if($post->published_at)
Published: {{ $post->published_at->format('Y-m-d H:i') }} EAT
@endif

Publishing Targets & Results

@foreach($post->platformSettings as $ps)
{{ $ps->platform }} • {{ $ps->socialAccount->account_name ?? 'Account' }}
@if($ps->published_url) View Live Post → @endif @if($ps->error_details)
{{ $ps->error_details }}
@endif
{{ $ps->status }}
@endforeach
@if($post->publishingAttempts->isNotEmpty())

Audit Attempts

@foreach($post->publishingAttempts as $att)
{{ $att->platform }} {{ $att->attempted_at->format('H:i:s') }} @if($att->error_message)
{{ $att->error_message }}
@endif
{{ $att->is_success ? 'SUCCESS' : 'FAILED' }}
@endforeach
@endif
@endsection