promociones y planes
This commit is contained in:
@@ -512,7 +512,7 @@
|
|||||||
@else
|
@else
|
||||||
@if (
|
@if (
|
||||||
$tarifaItem->rol_id == '5' &&
|
$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)
|
@if ($tarifaItem->servicio->por_tiempo)
|
||||||
<option value="{{ $tarifaItem }}">{{ $tarifaItem->servicio->nombre }} -
|
<option value="{{ $tarifaItem }}">{{ $tarifaItem->servicio->nombre }} -
|
||||||
{{ $tarifaItem->dias }} {{ __($tarifaItem->dias == 1 ? 'día' : 'días') }}
|
{{ $tarifaItem->dias }} {{ __($tarifaItem->dias == 1 ? 'día' : 'días') }}
|
||||||
|
|||||||
@@ -343,15 +343,25 @@
|
|||||||
wire:model.debounce.500ms="tarifa_id_promocion"
|
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">
|
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>
|
<option value="" selected>Tarifas</option>
|
||||||
|
|
||||||
@foreach ($tarifas as $tarifa)
|
@foreach ($tarifas as $tarifa)
|
||||||
<option value="{{ $tarifa->id }}">{{ $tarifa->servicio->nombre ?? '' }} :
|
@if($tarifa->servicio->estado == 'activo')
|
||||||
@if ($tarifa->servicio->nombre == 'Youtube Premium' || $tarifa->servicio->nombre == 'Spotify Premium')
|
<option value="{{ $tarifa->id }}">{{ $tarifa->servicio->nombre ?? '' }}
|
||||||
{{ $tarifa->dias ?? '' }} Dias
|
:
|
||||||
@else
|
@if (!empty($tarifa->servicio->por_tiempo))
|
||||||
{{ $tarifa->pantallas ?? '' }} pantallas
|
{{ $tarifa->dias ?? '' }}
|
||||||
@endif
|
{{ $tarifa->dias == 1 ? 'día' : 'días' }}
|
||||||
</option>
|
@else
|
||||||
|
{{ $tarifa->pantallas ?? '' }}
|
||||||
|
{{ $tarifa->pantallas == 1 ? 'pantalla' : 'pantallas' }} -
|
||||||
|
{{ $tarifa->dias ?? '' }}
|
||||||
|
{{ $tarifa->dias == 1 ? 'día' : 'días' }}
|
||||||
|
|
||||||
|
@endif
|
||||||
|
</option>
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<div class="mx-auto">
|
<div class="mx-auto">
|
||||||
<button wire:click="add_tarifa" type="button"
|
<button wire:click="add_tarifa" type="button"
|
||||||
|
|||||||
Reference in New Issue
Block a user