@php $tz = config('app.display_timezone'); $titles = [ 'create' => __('New task'), 'complete' => __('Complete task'), 'reschedule' => __('Reschedule task'), 'cancel' => __('Cancel task'), ]; $buttons = [ 'create' => __('Add task'), 'complete' => __('Complete'), 'reschedule' => __('Reschedule'), 'cancel' => __('Cancel task'), ]; $select = 'mt-1 block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500'; @endphp
{{ $task->title }}
{{ __(\App\Models\Crm\Task::TYPES[$task->type] ?? $task->type) }} @if ($task->due_at) · {{ __('due') }} {{ $task->due_at->copy()->timezone($tz)->format(\App\Services\Crm\TaskService::isDateOnly($task->due_at) ? 'D j M Y' : 'D j M Y, H:i') }} @endif @if ($task->opportunity) · {{ $task->opportunity->title }} @elseif ($task->customer) · {{ $task->customer->name }} @endif
@if ($task->reschedule_count > 0){{ trans_choice('{1} Rescheduled once|[2,*] Rescheduled :count times', $task->reschedule_count, ['count' => $task->reschedule_count]) }} @if ($task->original_due_at) · {{ __('first promised for :date', ['date' => $task->original_due_at->copy()->timezone($tz)->format('j M')]) }} @endif
@endif{{ __('Next action') }}
@if ($needsNext) {{ __('This opportunity is still open, so it needs a dated next action. It becomes the next follow-up.') }} @else {{ __('What happens next becomes one follow-up task.') }} @endif