{{-- A job's due date (Y-m-d) in Finnish format. A past due date of an open job is marked with an icon and the word "Myöhässä", not colour alone. --}} @props(['date', 'status']) @if ($date === null) {{ __('jobs.not_set') }} @else @php $isLate = \Carbon\CarbonImmutable::parse($date)->endOfDay()->isPast() && ! in_array($status->value, ['done', 'invoiced', 'billed', 'ongoing', 'archived'], true); @endphp class('inline-flex flex-wrap items-center gap-1') }}> {{ \Carbon\CarbonImmutable::parse($date)->format('j.n.Y') }} @if ($isLate) @endif @endif