@extends('layouts.app') @section('title', 'Inicio') @section('body')
env('APP_THEME') == 'vaope', 'bg-gradient-to-r from-primary-200 to-primary-900 relative' => env('APP_THEME') != 'vaope', ])>
@if (env('APP_THEME') == 'vaope') @php function title_case_spanish($string) { $lowercaseWords = ['de', 'la', 'del', 'y', 'en', 'el', 'los', 'las', 'un', 'una']; $words = explode(' ', mb_strtolower($string, 'UTF-8')); foreach ($words as $i => $word) { if ($i === 0 || !in_array($word, $lowercaseWords)) { $words[$i] = mb_convert_case($word, MB_CASE_TITLE, 'UTF-8'); } } return implode(' ', $words); } @endphp @foreach ($events['cities'] as $city) @php $cities[] = [ 'name' => title_case_spanish($city['name']), 'events' => $city['events'], ]; @endphp @endforeach

Encuentra algo cerca de ti

@endif
@php $currentPath = request()->path(); $segments = explode('/', $currentPath); $slug = end($segments); $ubicacion = empty($slug) ? 'todos' : $slug; @endphp Mostrar más eventos
@endsection