@php
// prefer the project's own comment, otherwise use the relevant history comment (if any)
$currentComment = !empty($projet->commentaire_motif) ? $projet->commentaire_motif : ($relevantHistory->commentaire ?? null);
$historyAuthor = $relevantHistory->changer->name ?? $relevantHistory->changed_by ?? null;
$historyAt = isset($relevantHistory->created_at) ? $relevantHistory->created_at->format('Y-m-d H:i') : null;
@endphp
@if(!empty($currentComment))
{{ __('site.start_activity.current_comment') }}
{{ $currentComment }}