@extends('layouts.app') @section('title', 'Inicio') @section('body')
@php $url = request()->url(); $partes = explode('/', $url); $ubi = $partes[3] != 'eventos' ? $partes[3] : '/'; @endphp Regresar al inicio

Todos los Eventos @if ($ubicacion != 'todos') de {{ $ubicacion }} @endif

@foreach ($products as $event)
@php $currentPath = request()->path(); $segments = explode('/', $currentPath); $slug = end($segments); $ubicacion = empty($segments) != 'todos' ? env('APP_PAIS') : $slug; @endphp
Comrpar
@php $super_img_url = env('CDN_URL') . '/public/products/' . $event['id'] . '/' . $event['poster']; $poster_url = env('CDN_URL') . '/public/products/' . $event['id'] . '/' . $event['poster']; @endphp {{ $event['title_small'] }}
{{-- --}}
{{ \Carbon\Carbon::parse($event['fecha_evento'])->format('d/m/Y') }} • {{ \Carbon\Carbon::parse($event['hora_evento'])->format('g:i A') }}
{{ $event['productCategories'][0]['category']['name'] }}

{{ $event['title_small'] }}

Estadio Nacional

Desde S/123.00

@endforeach
@endsection