@php use Illuminate\Support\Str; /** @var \Illuminate\Support\Collection $pages */ /** @var \App\Models\FacebookPage|null $page */ /** @var array $items */ @endphp
{{-- Header --}}
{{ __('Facebook') }} · {{ __('My posts') }}

{{ __('Your') }} {{ __('grid') }}

{{ __('Your recently published Page posts — live from Facebook. Tap any post to preview it.') }}

{{ __('Posts') }} {{ __('New post') }} @if ($pages->count() > 1)
@endif
@if (! $page)
{{ __('No Facebook Page connected') }}

{{ __('Connect one from Devices to see your grid here.') }}

{{ __('Go to Devices') }}
@elseif (empty($items))
{{ __('Nothing here yet') }}

{{ __('Posts you publish will show up here.') }}

{{ __('Create your first post') }}
@else {{-- Grid — square tiles, hover reveals the message --}}
@foreach ($items as $m) @php $img = $m['full_picture'] ?? ''; $tile = [ 'id' => $m['id'] ?? '', 'message' => $m['message'] ?? '', 'image' => $img, 'permalink' => $m['permalink_url'] ?? '', 'created' => $m['created_time'] ?? '', ]; @endphp @endforeach
@endif
{{-- ===== Preview modal ===== --}}