@php $events = $items->map(function ($item) { $image = 'vendor/social-media/icons/' . $item->social_media_platform->value . '.svg'; $image_dark = 'vendor/social-media/icons/' . $item->social_media_platform->value . '-light.svg'; return [ 'title' => $item->social_media_platform->value, 'date' => $item->scheduled_at->format('Y-m-d'), 'classNames' => 'lqd-event-' . $item->social_media_platform->value, 'extendedProps' => [ 'scheduled_at' => $item->scheduled_at->format('g:i a'), 'content' => $item->content, 'image' => $item->image, 'platformImages' => [ 'default' => asset($image), 'dark' => file_exists($image_dark) ? asset($image_dark) : null, ], ], ]; }); @endphp @extends('panel.layout.app', ['disable_tblr' => true]) @section('title', __('Calendar')) @section('titlebar_actions') @include('social-media::components.create-post-dropdown', ['platforms' => \App\Extensions\SocialMedia\System\Enums\PlatformEnum::cases()]) @endsection @section('titlebar_subtitle', '') @section('content')