null check para servicios eliminados
This commit is contained in:
@@ -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">
|
||||
<option value="" selected>Tarifas</option>
|
||||
|
||||
|
||||
@foreach ($tarifas as $tarifa)
|
||||
@if($tarifa->servicio->estado == 'activo')
|
||||
@if($tarifa->servicio?->estado == 'activo')
|
||||
<option value="{{ $tarifa->id }}">{{ $tarifa->servicio->nombre ?? '' }}
|
||||
:
|
||||
@if (!empty($tarifa->servicio->por_tiempo))
|
||||
@@ -356,12 +356,12 @@
|
||||
{{ $tarifa->pantallas == 1 ? 'pantalla' : 'pantallas' }} -
|
||||
{{ $tarifa->dias ?? '' }}
|
||||
{{ $tarifa->dias == 1 ? 'día' : 'días' }}
|
||||
|
||||
|
||||
@endif
|
||||
</option>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
|
||||
</select>
|
||||
<div class="mx-auto">
|
||||
<button wire:click="add_tarifa" type="button"
|
||||
|
||||
Reference in New Issue
Block a user