- {{ $nombre_servicios }}
+ {{ $nombre_servicios }}
{{-- tabla usuarios --}}
@@ -222,29 +221,27 @@
@foreach ($consulta_verUsuarios->historiales->unique() as $verUsuarios)
| {{ $verUsuarios->vendedor->name ?? '' }} |
- @if($consulta_verUsuarios->estado == 'activo')
-
+ @if ($consulta_verUsuarios->estado == 'activo')
+ |
@foreach ($consulta_verUsuarios->perfil as $perfil)
-
- @if ($verUsuarios->id == $perfil->historial_id )
- -Perfil: {{ $perfil->perfil ?? '' }}
-
- @endif
+ @if ($verUsuarios->id == $perfil->historial_id)
+ -Perfil: {{ $perfil->perfil ?? '' }}
+ @endif
@endforeach
-
-
- |
+
+
+
@else
- |
+ |
@endif
-
+
{{ $verUsuarios->cliente->name ?? '' }} |
@php
-
+
$date1 = new DateTime(strtr(strval($fechaActual), '/', '-'));
$date2 = new DateTime(strtr(strval($verUsuarios->fecha_final), '/', '-'));
-
+
@endphp
@if ($date1 < $date2)
@@ -272,8 +269,12 @@
@endif
- {{ \Carbon\Carbon::parse($verUsuarios->fecha_inicio)->format('y/m/d' ) }} |
- {{\Carbon\Carbon::parse( $verUsuarios->fecha_final)->format('y/m/d' ) }} |
+
+ {{ \Carbon\Carbon::parse($verUsuarios->fecha_inicio)->format('y/m/d') }}
+ |
+
+ {{ \Carbon\Carbon::parse($verUsuarios->fecha_final)->format('y/m/d') }}
+ |
@php
$promocion = $verUsuarios->promocion_id;
@@ -300,12 +301,16 @@
@if (!is_null($observaciones))
-
+
|
@else
@@ -313,10 +318,9 @@
x-on:click="observacionesm=true" class="w-7 cursor-pointer"
xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:svgjs="http://svgjs.com/svgjs" x="0"
- y="0" viewBox="0 0 32 32"
- style="enable-background:new 0 0 512 512" xml:space="preserve"
- class="">
+ xmlns:svgjs="http://svgjs.com/svgjs" x="0" y="0"
+ viewBox="0 0 32 32" style="enable-background:new 0 0 512 512"
+ xml:space="preserve" class="">
- Email:
- {{ $consulta_verUsuarios->correo ?? '' }}
- Password:
- {{ $consulta_verUsuarios->password ?? '' }}
-
-
+ Email:{{ $consulta_verUsuarios->correo ?? '' }}
+
+ Password:{{ $consulta_verUsuarios->password ?? '' }}
+
+ 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
+ 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 ">Editar
+ cuenta
@@ -390,15 +396,15 @@
-
-
-
-
+
+
+
+
@@ -440,61 +446,71 @@
class="fixed backdrop-blur-sm bg-black/20 left-0 bottom-0 top-0 right-0 h-full z-20">
-
-
-
+
+
-
- @if(!empty($consulta_verUsuarios->servicio->perfiles))
+ {{-- @if (!empty($consulta_verUsuarios->servicio->perfiles))
-
- @if($consulta_verUsuarios)
+
+ @if ($consulta_verUsuarios)
@php
$pantallas = $consulta_verUsuarios->servicio->pantallas;
@endphp
- @for($i = 1; $i <= $pantallas; $i++)
+ @for ($i = 1; $i <= $pantallas; $i++)
@endfor
@endif
- @endif
- @if(!empty($consulta_verUsuarios->servicio->tarifas ))
-
-
-
- @foreach($consulta_verUsuarios->servicio->tarifas as $tarifaItem )
- @if($tarifaItem->pantallas == '1' && $tarifaItem->rol_id =='5')
- @if($tarifaItem->servicio->por_tiempo)
-
+ @endif --}}
+
+ @if (!empty($consulta_verUsuarios->servicio->tarifas))
+
+
+
+ @foreach ($consulta_verUsuarios->servicio->tarifas as $tarifaItem)
+ @if ($consulta_verUsuarios->estado == 'pendiente' && $tarifaItem->rol_id == '5' )
+ @if ($tarifaItem->pantallas == $tarifaItem->servicio->completa)
+ @if ($tarifaItem->servicio->por_tiempo)
+
@else
-
- @endif
+
+ @endif
@endif
- @endforeach
-
- @error('tarifa') {{ 'Requerido*' }} @enderror
- @endif
+ @else
+ @if ($tarifaItem->pantallas == '1' && $tarifaItem->rol_id == '5')
+ @if ($tarifaItem->servicio->por_tiempo)
+
+ @else
+
+ @endif
+ @endif
+ @endif
+ @endforeach
+
+ @error('tarifa')
+ {{ 'Requerido*' }}
+ @enderror
+ @endif
+
-
@@ -598,12 +614,13 @@
@endforeach
- @error('servicio_newCuenta') {{ 'Requerido*' }} @enderror
+ @error('servicio_newCuenta')
+ {{ 'Requerido*' }}
+ @enderror
@@ -622,19 +641,23 @@
class="block text-gray-700 text-sm font-bold mb-2">Contraseña:
- @error('password_newCuenta') {{ 'Requerido*' }} @enderror
+ @error('password_newCuenta')
+ {{ 'Requerido*' }}
+ @enderror
-
-
-
-
-
-
- @error('estado') {{ 'Requerido*' }} @enderror
-
+
+
+
+
+
+
+ @error('estado')
+ {{ 'Requerido*' }}
+ @enderror
+
@@ -643,7 +666,9 @@
inicio:
- @error('fecha_inicial') {{ 'Requerido*' }} @enderror
+ @error('fecha_inicial')
+ {{ 'Requerido*' }}
+ @enderror
@@ -651,7 +676,9 @@
Final:
- @error('fecha_final') {{ 'Requerido*' }} @enderror
+ @error('fecha_final')
+ {{ 'Requerido*' }}
+ @enderror
@@ -693,8 +720,7 @@
|