update ver tarifas
This commit is contained in:
@@ -361,7 +361,7 @@
|
||||
<span class="mr-4">
|
||||
<button wire:click="openAdd" type="button" class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5 ">Añadir usuario</button>
|
||||
</span>
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
<span>
|
||||
@@ -472,23 +472,23 @@
|
||||
</div>
|
||||
|
||||
{{-- @if (!empty($consulta_verUsuarios->servicio->perfiles))
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="Perfil " class="block text-gray-700 text-sm font-bold mb-2">Perfil:</label>
|
||||
<select name="" id="" wire:model="perfil" disabled class="border-2 border-neutral-200 rounded-[0.8rem] shadow apperance-none focus:border-neutral-300 focus:ring-0 w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline">
|
||||
@if ($consulta_verUsuarios)
|
||||
<option value="" select>Seleccionar</option>
|
||||
@if ($consulta_verUsuarios)
|
||||
<option value="" select>Seleccionar</option>
|
||||
@php
|
||||
$pantallas = $consulta_verUsuarios->servicio->pantallas;
|
||||
@endphp
|
||||
|
||||
@for ($i = 1; $i <= $pantallas; $i++)
|
||||
<option value="{{$i}}">Perfil {{$i}}</option>
|
||||
@endfor
|
||||
@endif
|
||||
</select>
|
||||
@endfor
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
@endif --}}
|
||||
|
||||
@if (!empty($consulta_verUsuarios->servicio->tarifas))
|
||||
@@ -506,7 +506,7 @@
|
||||
@endif
|
||||
@else
|
||||
@if ($tarifaItem->rol_id == '5' && ($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') }}</option>
|
||||
@else
|
||||
@@ -791,7 +791,8 @@
|
||||
<table class="w-full sm-w-[20rem] text-center mt-4 border-separate border-spacing-y-2 mb-4">
|
||||
<thead class="font-normal bg-[#000029] text-white h-9">
|
||||
<tr class="text-left">
|
||||
<th class="rounded-l-lg font-normal pl-[1rem]">Rol</th>
|
||||
<th class="rounded-l-lg font-normal pl-[1rem]">Estado</th>
|
||||
<th class="font-normal pl-[1rem]">Rol</th>
|
||||
<th class="font-normal pl-[1rem] whitespace-nowrap">Pantallas</th>
|
||||
<th class="font-normal pl-[1rem]">Valor</th>
|
||||
<th class="font-normal pl-[1rem]">Dias</th>
|
||||
@@ -804,6 +805,13 @@
|
||||
@if (!empty($tarifas))
|
||||
@foreach ($tarifas as $tarifa)
|
||||
<tr class="border-gray-200 text-left w-full pl-4">
|
||||
<td class="pl-[1rem]">
|
||||
@if ($tarifa->estado == 'activo')
|
||||
<div class="bg-green-500 rounded-full w-3 h-3"></div>
|
||||
@else
|
||||
<div class="bg-red-500 rounded-full w-3 h-3"></div>
|
||||
@endif
|
||||
</td>
|
||||
<td class="pl-[1rem]">{{ $tarifa->rol->nombre ?? '' }}</td>
|
||||
<td class="pl-[1rem]">{{ $tarifa->pantallas ?? '' }}</td>
|
||||
<td class="pl-[1rem]">{{ $tarifa->valor ?? '' }}</td>
|
||||
|
||||
Reference in New Issue
Block a user