@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 {{-- @dd() --}}

{{ $category->name }} @if ($partes[3] != 'eventos') de {{ $partes[3] }} @endif

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

{{ $product['title_small'] }}

Estadio Nacional

Desde S/123.00

@endforeach
@endsection