@extends('layouts.admin') @section('title', $tenant->name . ' — Social Posts') @section('content')

📣 Social Posts — {{ $tenant->name }}

Nuevo Post
{{-- Stats --}}
{{ $stats['total'] }}
Total
{{ $stats['published'] }}
Publicados
{{ $stats['scheduled'] }}
Programados
{{ $stats['draft'] }}
Borradores
{{-- Posts List --}}
@forelse($posts as $post) @php $badge = $post->getStatusBadge(); @endphp
{{-- Media thumbnail --}} @if($post->media_url)
@endif {{-- Content --}}

{{ Str::limit($post->content, 200) }}

{{-- Status badge --}} {{ $badge['label'] }} {{-- Platforms --}} @foreach($post->getTargetPlatforms() as $plat) @php $pInfo = \App\Models\ChatbotChannel::PLATFORMS[$plat] ?? null; @endphp @if($pInfo) @endif @endforeach {{-- Schedule time --}} @if($post->scheduled_at) {{ $post->scheduled_at->format('d/m/Y H:i') }} @endif @if($post->published_at) {{ $post->published_at->diffForHumans() }} @endif @if($post->error) {{ Str::limit($post->error, 40) }} @endif
{{-- Actions --}}
@if($post->status === 'failed')
@csrf
@endif @if($post->isEditable()) @endif
@csrf @method('DELETE')
@empty

No hay posts aún.

Crear primer post
@endforelse
@if($posts->hasPages())
{{ $posts->links() }}
@endif @endsection