@if ($locked) {{ __('calendar.locked_title') }}

{{ __('calendar.locked_text') }}

@if (count($rows['milestones'] ?? []) > 0)

{{ __('calendar.locked_existing') }}

@endif {{ __('plan.limits.see_offers') }}
@endif {{-- Milestones by quarter (read-only when locked) --}} @if (! $locked || count($rows['milestones'] ?? []) > 0)

{{ __('calendar.milestones_title') }}

{{ __('calendar.milestones_intro') }}

@foreach ($quarters as $q)

{{ __('calendar.quarter', ['n' => $q['n'], 'from' => App\Support\Dates::format($q['start']), 'to' => App\Support\Dates::format($q['end'])]) }}

@forelse ($q['milestoneIds'] as $id)
@empty

{{ __('calendar.no_milestone') }}

@endforelse @unless ($locked){{ __('calendar.add_milestone') }}@endunless
@endforeach

{{ __('calendar.margin') }}

@endif @unless ($locked)

{{ __('calendar.busy_title') }}

{{ __('calendar.busy_intro') }}

@foreach ($rows['busy'] ?? [] as $id => $row)
@endforeach {{ __('calendar.add_busy') }}
{{-- Weekly Gantt --}}

{{ __('calendar.gantt_title') }}

{{ __('calendar.gantt_intro') }}

@if ($gantt['undated'] > 0)

{{ __('calendar.undated', ['count' => $gantt['undated']]) }}

@endif {{-- Phones: a dated list, easier to read than a 1.5rem-column chart --}}
@foreach ($gantt['rows'] as $row) @if ($row['type'] === 'header')

{{ $row['label'] }}

@elseif ($row['type'] === 'action')

{{ $row['label'] }}@if ($row['when'] !== '')
{{ $row['when'] }}@endif

@elseif (($row['items'] ?? []) !== [])

{{ $row['label'] }}

    @foreach ($row['items'] as $item)
  • {{ $item }}
  • @endforeach
@endif @endforeach
@php $cols = 'grid-template-columns: 9rem repeat('.count($gantt['weeks']).', 1.5rem);'; @endphp @if (count($gantt['rows']) <= 2)

{{ __('calendar.empty_gantt') }}

@endif
@endunless