@extends('layouts.main') @section('main')
@include('extranet.partials.flash-messages')
@if($evento->imagen_url) {{ $evento->titulo }} @endif
{{ ucfirst(str_replace('_', ' ', $evento->tipo)) }} {{ ucfirst($evento->modalidad) }} {{ ucfirst(str_replace('_', ' ', $evento->estado)) }}

{{ $evento->titulo }}

Fecha: {{ \Carbon\Carbon::parse($evento->fecha_inicio)->format('d/m/Y') }}

Hora: {{ \Carbon\Carbon::parse($evento->fecha_inicio)->format('H:i') }} @if($evento->hora_fin) - {{ $evento->hora_fin }} @endif

@if($evento->modalidad === 'presencial' || $evento->modalidad === 'hibrido')

Lugar: {{ $evento->lugar }}

@endif

Organiza: {{ $evento->organizador->EMP_NOMBRES ?? 'Sin organizador' }}

@if($evento->cupo_maximo)

Cupo: {{ $evento->asistentes->where('estado_confirmacion', 'confirmado')->count() }} / {{ $evento->cupo_maximo }}

@endif @if($evento->modalidad === 'virtual' || $evento->modalidad === 'hibrido') @if($evento->link_virtual)

Link: Unirse al evento

@endif @endif
@if($evento->descripcion)
Descripción

{{ $evento->descripcion }}

@endif @if($evento->requiere_confirmacion && $evento->estado === 'publicado')
@if($miConfirmacion && $miConfirmacion->estado_confirmacion === 'confirmado') ¡Has confirmado tu asistencia! @else Este evento requiere confirmación de asistencia @endif
@if($miConfirmacion && $miConfirmacion->estado_confirmacion === 'confirmado')
@csrf
@else
@csrf
@endif
@endif @if($evento->requiere_confirmacion && $evento->asistentes->where('estado_confirmacion', 'confirmado')->count() > 0)
Asistentes Confirmados ({{ $evento->asistentes->where('estado_confirmacion', 'confirmado')->count() }})
@foreach($evento->asistentes->where('estado_confirmacion', 'confirmado')->take(12) as $asistente)
@if($asistente->empleado->EMP_FOTO_URL) {{ $asistente->empleado->EMP_NOMBRES }} @else
{{ substr($asistente->empleado->EMP_NOMBRES, 0, 1) }}
@endif

{{ explode(' ', $asistente->empleado->EMP_NOMBRES)[0] }}

@endforeach
@if($evento->asistentes->where('estado_confirmacion', 'confirmado')->count() > 12)

Y {{ $evento->asistentes->where('estado_confirmacion', 'confirmado')->count() - 12 }} personas más...

@endif
@endif
Volver
@can('editar-evento') Editar @endcan @can('gestionar-asistentes') @if($evento->requiere_confirmacion) Gestionar Asistentes @endif @endcan @can('eliminar-evento')
@csrf @method('DELETE')
@endcan
@endsection