From 5ca2b7424c0f818fbfc8366a4299ebd85435aa2e Mon Sep 17 00:00:00 2001 From: Felipe Date: Thu, 25 Jul 2024 08:46:01 -0500 Subject: [PATCH] null check para servicios eliminados --- resources/views/livewire/show-promociones.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/livewire/show-promociones.blade.php b/resources/views/livewire/show-promociones.blade.php index 1085dd5..7cb36c1 100755 --- a/resources/views/livewire/show-promociones.blade.php +++ b/resources/views/livewire/show-promociones.blade.php @@ -343,9 +343,9 @@ wire:model.debounce.500ms="tarifa_id_promocion" class="border-2 border-neutral-200 rounded-[0.8rem] shadow apperance-none ring-0 focus:ring-0 focus:border-neutral-300 py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"> - + @foreach ($tarifas as $tarifa) - @if($tarifa->servicio->estado == 'activo') + @if($tarifa->servicio?->estado == 'activo') @endif @endforeach - +