@php
    /** @var array<string,mixed> $overview */
    $ev = $overview['event'] ?? [];
@endphp

<div class="rt-ev-att-overview-meta mb-3">
    <h6 class="text-uppercase text-muted small font-weight-bold mb-3">{{ __('Detalles del evento') }}</h6>
    <dl class="row mb-0 small">
        <dt class="col-md-3 text-muted">{{ __('Fecha del evento') }}</dt>
        <dd class="col-md-9 mb-2">{{ $ev['start_label'] ?? '—' }}</dd>
        <dt class="col-md-3 text-muted">{{ __('Recinto') }}</dt>
        <dd class="col-md-9 mb-2">{{ $ev['venue_name'] ?? '—' }}</dd>
        <dt class="col-md-3 text-muted">{{ __('Tipo de contenido') }}</dt>
        <dd class="col-md-9 mb-2">{{ $ev['content_type_label'] ?? '—' }}</dd>
    </dl>
    <div class="small">
        @php $showPipe = false; @endphp
        @can('update', $event)
            <a href="{{ route('dashboard.events.edit', $event) }}">{{ __('Editar evento') }}</a>
            @php $showPipe = true; @endphp
        @endcan
        @if (! empty($ev['public_url']))
            @if ($showPipe)
                <span class="mx-2 text-muted">|</span>
            @endif
            <a href="{{ $ev['public_url'] }}" target="_blank" rel="noopener">{{ __('Ver evento') }}</a>
        @endif
    </div>
</div>
