@php
$sw = 'false';
$id = $evento->id;
$c = 0;
foreach ($inscritos as $inscrito) {
if ($inscrito->evento_id == $id) {
$c += 1;
}
}
@endphp
Nro. de cupos disponibles: {{ $evento->nro_cupos - $c }}
Fecha del evento: {{ $evento->fecha }}
{{ $evento->descripcion }}
@foreach ($inscritos as $inscrito)
@if ($inscrito->evento_id == $evento->id && auth()->id() == $inscrito->usuario_id)
@php
$sw = 'true';
@endphp
@break
@endif
@endforeach
@if ($sw == 'true')
@else
@if ($evento->nro_cupos - $c > 0)
@else
@endif
@endif
@can('materiales.index')
Asistencia
@endcan