@php use App\Extensions\SocialMedia\System\Enums\PlatformEnum; $sort_buttons = [ [ 'label' => __('Date'), 'sort' => 'created_at', ], [ 'label' => __('Status'), 'sort' => 'status', ], [ 'label' => __('Platform'), 'sort' => 'platform', ], ]; $filter_buttons = [ [ 'label' => __('All'), 'filter' => 'all', ], ]; $filter = request()->query('filter', 'all'); foreach ($platforms as $platform) { $filter_buttons[] = [ 'label' => str($platform->name)->title(), 'filter' => $platform->name, ]; } @endphp @extends('panel.layout.app', ['disable_tblr' => true]) @section('title', __('Social Media Posts')) @section('titlebar_actions') @include('social-media::components.create-post-dropdown', ['platforms' => $platforms]) @endsection @section('titlebar_after')