@extends('layout.base') @section('page_content')
@if ($imagenes !== false) {!!array_values($imagenes)[0]->media->html!!} @else Imagen no encontrada. @endif

{{mb_strtoupper($evento->titulo)}} {{$evento->empresa}}
{{ucwords($evento->servicio)}}

{{$evento->descripcion}}

@if ($imagenes !== false) @foreach (array_values($imagenes) as $i => $imagen)
{!!$imagen->thumb->html!!}
@endforeach @else
No hay imagenes.
@endif
@endsection @push('styles') @endpush @push('readyjs') let media = [ @foreach ($imagenes as $media) '{!!$media->media->html!!}', @endforeach ] $('.imagen').css('cursor', 'pointer').click(function() { var id = $(this).attr('data-id') var src = media[id] $('#seleccionada').html(src) }) @endpush