promociones y planes
This commit is contained in:
@@ -512,7 +512,7 @@
|
||||
@else
|
||||
@if (
|
||||
$tarifaItem->rol_id == '5' &&
|
||||
$tarifaItem->pantallas < $tarifaItem->servicio->pantallas - count($consulta_verUsuarios->historiales))
|
||||
$tarifaItem->pantallas <= $tarifaItem->servicio->pantallas - count($consulta_verUsuarios->historiales))
|
||||
@if ($tarifaItem->servicio->por_tiempo)
|
||||
<option value="{{ $tarifaItem }}">{{ $tarifaItem->servicio->nombre }} -
|
||||
{{ $tarifaItem->dias }} {{ __($tarifaItem->dias == 1 ? 'día' : 'días') }}
|
||||
|
||||
@@ -343,15 +343,25 @@
|
||||
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)
|
||||
<option value="{{ $tarifa->id }}">{{ $tarifa->servicio->nombre ?? '' }} :
|
||||
@if ($tarifa->servicio->nombre == 'Youtube Premium' || $tarifa->servicio->nombre == 'Spotify Premium')
|
||||
{{ $tarifa->dias ?? '' }} Dias
|
||||
@else
|
||||
{{ $tarifa->pantallas ?? '' }} pantallas
|
||||
@endif
|
||||
</option>
|
||||
@if($tarifa->servicio->estado == 'activo')
|
||||
<option value="{{ $tarifa->id }}">{{ $tarifa->servicio->nombre ?? '' }}
|
||||
:
|
||||
@if (!empty($tarifa->servicio->por_tiempo))
|
||||
{{ $tarifa->dias ?? '' }}
|
||||
{{ $tarifa->dias == 1 ? 'día' : 'días' }}
|
||||
@else
|
||||
{{ $tarifa->pantallas ?? '' }}
|
||||
{{ $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