@extends('layouts.dashboard') @section('content') @php /** * @var array $rows posts on this page * @var array $pager paginate() metadata * @var int $queued posts waiting on a schedule, across every page * @var bool $cronOn is the publish_scheduled task switched on */ $queued = (int) ($queued ?? 0); $cronOn = (bool) ($cronOn ?? false); // A draft carrying a publish_at is scheduled; one whose moment has already passed is waiting // on the next tick and says so, rather than claiming a time it did not keep. $scheduleOf = static function (array $b): string { if (($b['status'] ?? '') !== 'draft' || empty($b['publish_at'])) { return ''; } return strtotime((string) $b['publish_at']) > time() ? 'scheduled' : 'due'; }; @endphp @php /* .qm-d2: the dashboard density standard (app.css §35) */ @endphp
{{ t_raw('admin.blog.schedule_off_text') }} {{ t_raw('admin.blog.schedule_off_link') }}