@php $tz = config('app.display_timezone'); $late = $opportunity->isOpen() && $opportunity->next_action_due && $opportunity->next_action_due->toDateString() < now($tz)->toDateString(); @endphp
{{-- The one next action --}}

{{ __('Next action') }}

{{ $opportunity->next_action ?: __('None recorded') }} @if ($opportunity->next_action_due) · {{ $opportunity->next_action_due->format('D j M Y') }} @endif

@if ($late)

{{ __('The date has passed. Complete it and set the next one, or reschedule it with a reason.') }}

@endif
@if ($canCreate)
{{ __('New task') }} {{ __('Log activity') }}
@endif
@forelse ($open as $task) @php $canEdit = \Illuminate\Support\Facades\Gate::allows('update', $task); @endphp @empty @endforelse
{{ __('Due') }} {{ __('Task') }} {{ __('Assigned to') }} {{ __('Actions') }}
@if ($task->due_at) {{ $task->due_at->copy()->timezone($tz)->format(\App\Services\Crm\TaskService::isDateOnly($task->due_at) ? 'D j M' : 'D j M, H:i') }} @else {{ __('No date') }} @endif

{{ $task->title }}

{{ __(\App\Models\Crm\Task::TYPES[$task->type] ?? $task->type) }} @if ($task->reschedule_count > 0) · {{ trans_choice('{1} rescheduled once|[2,*] rescheduled :count times', $task->reschedule_count, ['count' => $task->reschedule_count]) }} @endif

{{ $task->assignee?->name ?? __('Nobody') }} @if ($canEdit)
@endif
@include('livewire.crm.partials.paginator', ['rows' => $open]) @if ($doneCount > 0)
@if ($showDone) @include('livewire.crm.partials.paginator', ['rows' => $done]) @endif @endif