@php
$canEdit = \Illuminate\Support\Facades\Gate::allows('update', $e);
$outreachOpen = $e->outreach_starts_on !== null && $e->outreach_starts_on->lte($today);
@endphp
|
{{ $when($e) }}
@unless ($e->is_confirmed)
{{ __('Date unconfirmed') }}
@endunless
|
{{ $e->title }}
@if ($e->sector && isset($sectors[$e->sector]))
{{ __($sectors[$e->sector]) }}
@endif
@if ($e->location)
{{ $e->location }}
@endif
@if ($e->recurrence === 'annual')
{{ __('Every year') }}
@endif
@if ($e->organisations_count + $e->opportunities_count > 0)
{{ trans_choice('{1} 1 linked record|[2,*] :count linked records', $e->organisations_count + $e->opportunities_count, ['count' => $e->organisations_count + $e->opportunities_count]) }}
@endif
@if ($e->next_action)
{{ __('Next') }}: {{ $e->next_action }}@if ($e->next_action_due), {{ $e->next_action_due->format('j M') }}@endif
@endif
|
@if ($e->outreach_starts_on)
{{ $e->is_confirmed ? $e->outreach_starts_on->format('j M Y') : __('Around :month', ['month' => $e->outreach_starts_on->format('F Y')]) }}
{{ trans_choice('{0} on the day|{1} 1 week before|[2,*] :count weeks before', (int) $e->outreach_weeks, ['count' => (int) $e->outreach_weeks]) }}
@else
{{ __('Not set') }}
@endif
|
{{ $e->owner?->name ?? __('Nobody') }} |
{{ __(\App\Models\Crm\CalendarEvent::STATUSES[$e->status] ?? $e->status) }}
|
@if ($canEdit)
@if (in_array($e->status, ['planned', 'in_outreach'], true))
@else
@endif
@endif
|