locale('es')->isoFormat('D MMMM')); $hora = Carbon::now()->format('H:i a'); $visitas = $container->get('visitas'); $aviso = true; $filename = implode(DIRECTORY_SEPARATOR, [ $container->get('folders.data'), 'avisos.json' ]); $avisos = json_decode(trim(file_get_contents($filename))); $filename = implode(DIRECTORY_SEPARATOR, [ $container->get('folders.data'), 'destacados.json' ]); $destacados = json_decode(trim(file_get_contents($filename))); $filename = implode(DIRECTORY_SEPARATOR, [ $container->get('folders.data'), 'segmentos.json' ]); $segmentos = json_decode(trim(file_get_contents($filename))); array_walk($segmentos, function(&$item) use ($container) { if (!isset($item->imagen)) { $item->imagen = '