@php $statusColors = ['idea' => 'slate', 'draft' => 'amber', 'review' => 'sky', 'approved' => 'indigo', 'published' => 'emerald', 'cancelled' => 'rose']; $select = 'mt-1 block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500'; $viewMeta = [ 'calendar' => ['label' => __('Calendar'), 'icon' => 'calendar-days'], 'list' => ['label' => __('List'), 'icon' => 'list-bullet'], ]; @endphp
@if ($canPlan) {{ __('Mix and cadence') }} @endif @if ($canCreate) {{ __('Plan content') }} @endif

{{ $from->format('F Y') }}

@foreach ($viewMeta as $key => $meta) @endforeach
@foreach ($metrics as $m)

{{ $m['label'] }}

{{ $m['value'] }}

{{ $m['sub'] }}
@endforeach
@if ($view === 'calendar') @else

{{ __('Content') }}

{{ $status === '' ? __(':month, and anything not yet dated', ['month' => $from->format('F Y')]) : __('Every month') }}

@forelse ($list as $row) @empty @endforelse
{{ __('Publish') }} {{ __('Title') }} {{ __('Pillar') }} {{ __('Reviewer') }} {{ __('Status') }}
{{ $row->publish_at?->timezone(config('app.display_timezone'))->format('D j M, H:i') ?? __('Not dated') }} {{ $row->title }}

{{ $channels[$row->channel] ?? __('No channel') }}@if ($row->campaign) · {{ $row->campaign->name }}@endif

{{ $pillars[$row->pillar] ?? ($row->pillar ?: '-') }} {{ $row->reviewer?->name ?? __('Not named') }} {{ __(\App\Models\Crm\ContentItem::STATUSES[$row->status] ?? $row->status) }}
@if (trim($search) !== '') @else @endif
@if ($list->hasPages())
{{ $list->links() }}
@endif
@endif

{{ __('Pillar mix') }}

{{ __(':month, against the target', ['month' => $from->format('F')]) }}

    @foreach ($mix as $value => $row) @php $off = $row['percent'] !== null && $row['target'] !== null && abs($row['percent'] - $row['target']) >= 10; @endphp
  • {{ $row['label'] }} {{ $row['percent'] === null ? '-' : $row['percent'].'%' }} / {{ $row['target'] === null ? __('no target') : $row['target'].'%' }}
    @if ($row['target'] !== null)
    @endif
  • @endforeach

{{ __('Week by week') }}

{{ $delivery['expected'] === null ? __('No cadence set yet.') : __('Planned :n a week across the channels.', ['n' => $weeks[0]['expected'] ?? 0]) }}

    @foreach ($weeks as $week)
  • {{ $week['start']->format('j M') }} – {{ $week['end']->format('j M') }} @if ($week['empty']) {{ __('Nothing planned') }} @else {{ $week['expected'] === null ? __(':n planned', ['n' => $week['planned']]) : __(':n of :of', ['n' => $week['planned'], 'of' => $week['expected']]) }} @if ($week['published'] > 0) · {{ __(':n out', ['n' => $week['published']]) }}@endif @endif
  • @endforeach
{{-- Item --}} {{ $itemId ? __('Content item') : __('Plan content') }} @if ($item) {{ __(\App\Models\Crm\ContentItem::STATUSES[$item->status] ?? $item->status) }} @endif @php $locked = ! $canEditItem || ($item && in_array($item->status, ['published', 'cancelled'], true)); @endphp @if ($item && $item->status === 'review')

{{ $isReviewer ? __('You are the reviewer. Approve it, or send it back with what to change.') : __('Waiting for :name to review it.', ['name' => $item->reviewer?->name ?? __('the reviewer')]) }}

@elseif ($item && $item->isApproved() && $item->status === 'approved')

{{ __('Approved by :name on :date. Changing the words sends it back for review.', ['name' => $item->approvedBy?->name ?? __('the reviewer'), 'date' => $item->approved_at->timezone(config('app.display_timezone'))->format('j M Y')]) }}

@elseif ($item && $item->status === 'published')

{{ __('Published :date.', ['date' => $item->published_at?->timezone(config('app.display_timezone'))->format('j M Y')]) }} @if ($item->published_url) {{ __('Open the post') }} @endif

@endif

{{ __('Work from Showcase. It can only be published once the client has agreed.') }}

@if ($item && $item->status === 'approved')
@endif
@if ($item && $canEditItem && in_array('cancelled', $transitions, true)) {{ __('Cancel item') }} @endif @if ($item && $canEditItem && $item->status === 'cancelled') {{ __('Restore as an idea') }} @endif
{{ __('Close') }} @if (! $locked) {{ __('Save') }} {{ __('Saving…') }} @endif @if ($item && $canEditItem && in_array($item->status, ['idea'], true)) {{ __('Start drafting') }} @elseif ($item && $canEditItem && $item->status === 'draft') {{ __('Send for review') }} @elseif ($item && $item->status === 'review' && $isReviewer) {{ __('Request changes') }} {{ __('Approve') }} @elseif ($item && $canEditItem && $item->status === 'approved') {{ __('Mark published') }} @endif
{{-- Mix and cadence --}} @if ($canPlan) {{ __('Target mix and cadence') }}

{{ __('Target mix by pillar (%)') }}

{{ __('Leave all blank for no target, or make them add up to 100.') }}

@foreach ($pillars as $value => $label)
@endforeach

{{ __('Planned posts a week, per channel') }}

@foreach ($channels as $value => $label)
@endforeach
{{ __('Cancel') }} {{ __('Save') }} {{ __('Saving…') }}
@endif