From d1a6f12b8a4c64b96c4ac15368d64539e00fbf5c Mon Sep 17 00:00:00 2001 From: Ale Date: Thu, 21 Oct 2021 13:18:36 -0300 Subject: [PATCH] El planifibot anda! --- app/Models/Evento.php | 2 +- resources/views/resultado.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Evento.php b/app/Models/Evento.php index 7b5c80b..034b158 100644 --- a/app/Models/Evento.php +++ b/app/Models/Evento.php @@ -26,7 +26,7 @@ class Evento extends Model "inicioLindo" => Utils::parseHora($b), "finLindo" => Utils::parseHora($c), "duracionLinda" => Utils::parseHora($d)]; } - usort($marzullos, array("Evento", "cmp_cant_marzullo")); + usort($marzullos, array($this, "cmp_cant_marzullo")); return array_slice($marzullos, 0, 3); } diff --git a/resources/views/resultado.blade.php b/resources/views/resultado.blade.php index f9fd5ea..7b860e9 100644 --- a/resources/views/resultado.blade.php +++ b/resources/views/resultado.blade.php @@ -57,7 +57,7 @@

Hasta ahora estos son los mejores horarios para "{{ $evento->nombre }}":

- @each('view.marzullo', $marzullos, 'marzullo') + @each('marzullo', $marzullos, 'marzullo')