@foreach([
'Scheduled' => $log->scheduled_date?->format('M j, Y'),
'Completed' => $log->completed_date?->format('M j, Y'),
'Assigned to' => $log->assignedTo?->name,
'Completed by' => $log->completedBy?->name,
'Cost' => $log->cost !== null ? '$'.number_format($log->cost, 2) : null,
'Next due' => $log->next_due_date?->format('M j, Y'),
] as $label => $value)
- {{ $label }}
- {{ $value ?: 'โ' }}
@endforeach
@if($log->description)
Description
{{ $log->description }}
@endif
@if($log->completion_notes)
Completion notes
{{ $log->completion_notes }}
@endif
@if(!empty($log->checklist))
Checklist
@foreach($log->checklist as $item)
-
{{ ($item['done'] ?? false) ? 'โ' : 'โ' }}
{{ $item['label'] ?? $item['task'] ?? (is_string($item) ? $item : '') }}
@endforeach
@endif