From eae4f482fd8af5fbeb6395bc713de66ee3e7118a Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Sun, 18 Jan 2026 11:40:33 -0500 Subject: [PATCH] Update timeline.blade.php --- .../views/filament/orden_produccion/timeline.blade.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/views/filament/orden_produccion/timeline.blade.php b/resources/views/filament/orden_produccion/timeline.blade.php index 0ad46e9..be680c1 100644 --- a/resources/views/filament/orden_produccion/timeline.blade.php +++ b/resources/views/filament/orden_produccion/timeline.blade.php @@ -37,7 +37,13 @@ if ($op) { ]; } - $traslados = $op->traslados()->orderBy('fecha_recepcion')->get(); + // Protege en entornos donde la migración aún no fue ejecutada + if (\Illuminate\Support\Facades\Schema::hasTable('traslados_prenda')) { + $traslados = $op->traslados()->orderBy('fecha_recepcion')->get(); + } else { + $traslados = collect(); + } + foreach ($traslados as $tr) { $events[] = [ 'tipo' => 'Traslado',