@php use Illuminate\Support\Str; $tiktokGlyph = ''; $statusPill = fn (string $s) => match ($s) { 'published' => ['cls' => 'bg-wa-mint text-wa-deep', 'label' => __('Published')], 'processing' => ['cls' => 'bg-accent-amber/15 text-[#7B5A14]', 'label' => __('In TikTok inbox')], 'failed' => ['cls' => 'bg-accent-coral/10 text-accent-coral', 'label' => __('Failed')], default => ['cls' => 'bg-paper-100 text-ink-600', 'label' => Str::title($s)], }; @endphp
{{ __('TikTok') }} ยท {{ __('Posts') }}

{{ __('TikTok') }} {{ __('posts') }}

{{ __('Videos sent to TikTok from :brand. They land in the creator\'s TikTok inbox to review and post from the app.', ['brand' => brand_name()]) }}

@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif @if ($accounts->isEmpty())
{!! $tiktokGlyph !!}

{{ __('Connect a TikTok account first.') }}

{{ __('Go to accounts') }}
@else {{-- Account filter --}} @if ($accounts->count() > 1)
{{ __('Account') }}
@endif
@forelse ($posts as $p) @php $pill = $statusPill($p->status); @endphp @empty @endforelse
{{ __('Caption') }} {{ __('Account') }} {{ __('Status') }} {{ __('When') }} {{ __('Actions') }}
{{ $p->caption ?: __('(no caption)') }}
{{ data_get($p->media_json, 'video_url') }}
{{ $p->account?->display_name ?: ('@' . ltrim((string) $p->account?->username, '@')) }} {{ $pill['label'] }} @if ($p->error)
{{ $p->error }}
@endif
{{ $p->created_at?->diffForHumans() }}
@if ($p->publish_id && $p->status === 'processing')
@csrf
@endif
@csrf @method('DELETE')
{{ __('No posts yet.') }} {{ __('Create your first post') }}
@if ($posts->hasPages())
{{ $posts->links() }}
@endif
@endif