@props([
    'value' => null,
    'format' => null,
    'datetime' => false,
    'fallback' => '—',
])

@php
    $formatted = $datetime
        ? \App\Support\PropertyDate::formatDateTime($value ?? $slot, $format)
        : \App\Support\PropertyDate::format($value ?? $slot, $format);
@endphp

<time {{ $attributes }}>{{ $formatted ?? $fallback }}</time>
