@php $isContextual = ($type ?? 'contextual') === 'contextual'; $title = $entry->task_title ?? 'Untitled'; $dateObj = $isContextual ? ($entry->date_time ?? null) : ($entry->entry_date ?? null); $dateLabel = $dateObj ? $dateObj->format('D, d M Y') : '—'; $timeLabel = ($isContextual && $dateObj) ? $dateObj->format('H:i') : '—'; $taskType = $entry->task_type ?? null; $priority = $isContextual ? ($entry->priority ?? 'medium') : 'medium'; $status = $isContextual ? ($entry->status ?? 'pending') : 'pending'; $clientCase = $isContextual ? ($entry->client_case ?? null) : null; $location = $isContextual ? ($entry->location ?? null) : null; $duration = $isContextual ? ($entry->duration_formatted ?? $entry->duration ?? null) : null; $notes = $entry->notes ?? null; @endphp Print — {{ $title }}

{{ $title }}

{{ $dateLabel }} @if($timeLabel !== '—') • {{ $timeLabel }} @endif
Entry Type
{{ $isContextual ? 'Contextual' : 'Quick' }}
Task Type
{{ $taskType ? ucwords(str_replace('-', ' ', $taskType)) : '—' }}
Priority
{{ ucwords(str_replace('-', ' ', $priority)) }}
Status
{{ ucwords(str_replace('-', ' ', $status)) }}
@if($clientCase)
Client / Case
{{ $clientCase }}
@endif @if($location)
Location
{{ ucwords(str_replace('-', ' ', $location)) }}
@endif @if($duration)
Duration
{{ $duration }}
@endif
Notes
{{ $notes ?: '—' }}