listado de tarifas

This commit is contained in:
Felipe
2023-11-07 14:38:35 -05:00
parent 0226a90c45
commit e4e5b8e36a
3 changed files with 331 additions and 264 deletions
+44 -8
View File
@@ -472,6 +472,10 @@ class ShowPlanes extends Component
$tarifa = json_decode($this->tarifa, true); $tarifa = json_decode($this->tarifa, true);
// dd($tarifa)
//dd($this->tarifa['dias']); //dd($this->tarifa['dias']);
$usuario_existe = User::firstWhere('email', $this->searchTerm)->id ?? null; $usuario_existe = User::firstWhere('email', $this->searchTerm)->id ?? null;
$usuario_id = $usuario_existe; $usuario_id = $usuario_existe;
@@ -484,11 +488,12 @@ class ShowPlanes extends Component
$usuario->password = '123456'; $usuario->password = '123456';
$usuario->celular = '+57'; $usuario->celular = '+57';
$usuario->rol_id = $rol_id; $usuario->rol_id = $rol_id;
$usuario->save(); // $usuario->save();
$usuario_id = $usuario->id; $usuario_id = $usuario->id;
} }
dd($this->tarifa);
$historial = new Historiale; $historial = new Historiale;
$historial->fecha_inicio = Carbon::now(); $historial->fecha_inicio = Carbon::now();
@@ -500,29 +505,60 @@ class ShowPlanes extends Component
$historial->tarifa_id = $tarifa['id']; $historial->tarifa_id = $tarifa['id'];
$historial->cliente_id = $usuario_id; $historial->cliente_id = $usuario_id;
$historial->cantidad = $tarifa['pantallas']; $historial->cantidad = $tarifa['pantallas'];
$historial->save(); // $historial->save();
$consultaHC = Historial_cuenta::where('cuenta_id', $this->consulta_verUsuarios->id)->where('perfil', $this->perfil)->exists();
if (!$consultaHC) { if ($this->consulta_verUsuarios->estado == 'pendiente') { // completa
$perfiles = $this->consulta_verUsuarios->servicio->completa;
}
if ($this->consulta_verUsuarios->estado == 'activo') { // pantallas
$perfiles = $this->consulta_verUsuarios->servicio->pantallas;
}
dd($this->consulta_verUsuarios);
$consultaHC = Historial_cuenta::where('cuenta_id', $this->consulta_verUsuarios->id)->orderBy('created_at', 'desc')->first()->perfil ?? 0;
if ($consultaHC) {
if ($consultaHC < 5) {
$historial_cuenta = new Historial_cuenta; $historial_cuenta = new Historial_cuenta;
$historial_cuenta->cuenta_id = $this->consulta_verUsuarios->id; $historial_cuenta->cuenta_id = $this->consulta_verUsuarios->id;
$historial_cuenta->historial_id = $historial->id; $historial_cuenta->historial_id = $historial->id;
$historial_cuenta->perfil = $this->perfil; $historial_cuenta->perfil = $consultaHC + 1;
$historial_cuenta->save(); // $historial_cuenta->save();
$this->alert('success', 'Usuario añadido correctamente!', [ $this->alert('success', 'Usuario añadido correctamente!', [
'position' => 'top' 'position' => 'top'
]); ]);
$this->addUser = false; $this->addUser = false;
$this->consulta_verUsuarios = Cuentas::with('historiales', 'servicio')->where('id', $this->id_cuentaVer)->first(); $this->consulta_verUsuarios = Cuentas::with('historiales', 'servicio')->where('id', $this->id_cuentaVer)->first();
} else { }else{
$historial->delete(); $historial->delete();
$this->alert('warning', 'El perfil ya se encuentra en uso!', [ $this->alert('warning', 'Ya haz alcanzado el maximo de perfiles!', [
'position' => 'top' 'position' => 'top'
]); ]);
} }
} else {
$historial_cuenta = new Historial_cuenta;
$historial_cuenta->cuenta_id = $this->consulta_verUsuarios->id;
$historial_cuenta->historial_id = $historial->id;
$historial_cuenta->perfil = $consultaHC + 1;
// $historial_cuenta->save();
$this->alert('success', 'Usuario añadido correctamente!', [
'position' => 'top'
]);
$this->addUser = false;
$this->consulta_verUsuarios = Cuentas::with('historiales', 'servicio')->where('id', $this->id_cuentaVer)->first();
}
} }
public function editar($tarifa) public function editar($tarifa)
@@ -55,8 +55,7 @@
<p class="text-orange-600 font-semibold"> Ocupado </p> <p class="text-orange-600 font-semibold"> Ocupado </p>
@endif @endif
@else @else
<p <p class="@if (($cuenta->historiales_count ?? '') == ($cuenta->servicio->pantallas ?? '')) text-orange-600 font-semibold @else text-green-600 font-semibold @endif">
class="@if (($cuenta->historiales_count ?? '') == ($cuenta->servicio->pantallas ?? '')) text-orange-600 font-semibold @else text-green-600 font-semibold @endif">
{{ $cuenta->historiales_count ?? '0' }}/{{ $cuenta->servicio->pantallas ?? '0' }} @endif {{ $cuenta->historiales_count ?? '0' }}/{{ $cuenta->servicio->pantallas ?? '0' }} @endif
@if ($historiales >= '1') @if ($historiales >= '1')
<span class="text-green-500 px-2 py-1 rounded-full bg-green-300">{{ $historiales }}</span> <span class="text-green-500 px-2 py-1 rounded-full bg-green-300">{{ $historiales }}</span>
+124 -92
View File
@@ -6,8 +6,8 @@
serviciosModal: @entangle('serviciosModal'), serviciosModal: @entangle('serviciosModal'),
ver: false, ver: false,
renovar: @entangle('renovar'), renovar: @entangle('renovar'),
addUser:@entangle('addUser'), addUser: @entangle('addUser'),
editarTarifaRol:@entangle('editarTarifaRol'), editarTarifaRol: @entangle('editarTarifaRol'),
}" class="h-full w-full md:my-2"> }" class="h-full w-full md:my-2">
<div class=" fixed backdrop-blur-sm bg-white/70 left-0 bottom-0 top-0 right-0 h-full z-40" wire:loading <div class=" fixed backdrop-blur-sm bg-white/70 left-0 bottom-0 top-0 right-0 h-full z-40" wire:loading
@@ -22,14 +22,13 @@
{{-- Buscador --}} {{-- Buscador --}}
<div <div class="bg-[#f5f5f5] md:w-[100%] m-auto p-2 md:p-5 rounded-[1.2rem] relative mb-4">
class="bg-[#f5f5f5] md:w-[100%] m-auto p-2 md:p-5 rounded-[1.2rem] relative mb-4">
<div class="grid grid-cols-1 text-center sm:flex justify-between my-2 items-center text-sm "> <div class="grid grid-cols-1 text-center sm:flex justify-between my-2 items-center text-sm ">
<div class="grid grid-cols-1 sm:flex items-center gap-4"> <div class="grid grid-cols-1 sm:flex items-center gap-4">
<div class="flex text-sm"> <div class="flex text-sm">
<svg class="w-4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" <svg class="w-4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svgjs="http://svgjs.com/svgjs" version="1.1" x="0" y="0" xmlns:svgjs="http://svgjs.com/svgjs" version="1.1" x="0" y="0" viewBox="0 0 24 24"
viewBox="0 0 24 24" style="enable-background:new 0 0 512 512" xml:space="preserve"> style="enable-background:new 0 0 512 512" xml:space="preserve">
<g> <g>
<path <path
d="M15.4,9.88,10.81,5.29a1,1,0,0,0-1.41,0,1,1,0,0,0,0,1.42L14,11.29a1,1,0,0,1,0,1.42L9.4,17.29a1,1,0,0,0,1.41,1.42l4.59-4.59A3,3,0,0,0,15.4,9.88Z" d="M15.4,9.88,10.81,5.29a1,1,0,0,0-1.41,0,1,1,0,0,0,0,1.42L14,11.29a1,1,0,0,1,0,1.42L9.4,17.29a1,1,0,0,0,1.41,1.42l4.59-4.59A3,3,0,0,0,15.4,9.88Z"
@@ -43,21 +42,20 @@
class="justify-center flex px-4 py-2 rounded-lg cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8]"> class="justify-center flex px-4 py-2 rounded-lg cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8]">
Nueva cuenta Nueva cuenta
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
id="Capa_1" x="0px" y="0px" viewBox="0 0 512 512" id="Capa_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;"
style="enable-background:new 0 0 512 512;" xml:space="preserve" class="w-[0.87rem] ml-2"> xml:space="preserve" class="w-[0.87rem] ml-2">
<path <path
d="M480,224H288V32c0-17.673-14.327-32-32-32s-32,14.327-32,32v192H32c-17.673,0-32,14.327-32,32s14.327,32,32,32h192v192 c0,17.673,14.327,32,32,32s32-14.327,32-32V288h192c17.673,0,32-14.327,32-32S497.673,224,480,224z" d="M480,224H288V32c0-17.673-14.327-32-32-32s-32,14.327-32,32v192H32c-17.673,0-32,14.327-32,32s14.327,32,32,32h192v192 c0,17.673,14.327,32,32,32s32-14.327,32-32V288h192c17.673,0,32-14.327,32-32S497.673,224,480,224z"
fill="#ffffff" /> fill="#ffffff" />
</svg> </svg>
</a> </a>
@if ( auth()->user()->rol->nombre != "editor") @if (auth()->user()->rol->nombre != 'editor')
<a x-on:click="modTarifas = true" <a x-on:click="modTarifas = true"
class="justify-center flex px-4 py-2 rounded-lg cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8]"> class="justify-center flex px-4 py-2 rounded-lg cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8]">
Modificar tarifas Modificar tarifas
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svgjs="http://svgjs.com/svgjs" version="1.1" class="w-4 ml-2" x="0" xmlns:svgjs="http://svgjs.com/svgjs" version="1.1" class="w-4 ml-2" x="0" y="0"
y="0" viewBox="0 0 24 24" style="enable-background:new 0 0 512 512" viewBox="0 0 24 24" style="enable-background:new 0 0 512 512" xml:space="preserve">
xml:space="preserve">
<polygon points="14.604 5.687 0 20.29 0 24 3.71 24 18.313 9.396 14.604 5.687" fill="#ffffff" <polygon points="14.604 5.687 0 20.29 0 24 3.71 24 18.313 9.396 14.604 5.687" fill="#ffffff"
data-original="#000000" /> data-original="#000000" />
<path <path
@@ -72,8 +70,8 @@
class="w-full md:w-auto shadow-md border-2 active:border-neutral-200 focus:ring-0 border-neutral-200 rounded-[0.8rem] pr-7 py-1 m-auto focus:border-neutral-300 focus:outline-none focus:shadow-outline"> class="w-full md:w-auto shadow-md border-2 active:border-neutral-200 focus:ring-0 border-neutral-200 rounded-[0.8rem] pr-7 py-1 m-auto focus:border-neutral-300 focus:outline-none focus:shadow-outline">
<svg class="w-5 absolute top-2 right-3" xmlns="http://www.w3.org/2000/svg" version="1.1" <svg class="w-5 absolute top-2 right-3" xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" class="w-4 absolute" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" class="w-4 absolute"
x="0" y="0" viewBox="0 0 24 24" x="0" y="0" viewBox="0 0 24 24" style="enable-background:new 0 0 512 512;rotate: 90deg;"
style="enable-background:new 0 0 512 512;rotate: 90deg;" xml:space="preserve" class=""> xml:space="preserve" class="">
<g> <g>
<g id="Layer_31" data-name="Layer 31"> <g id="Layer_31" data-name="Layer 31">
<path <path
@@ -113,9 +111,10 @@
</div> </div>
@if (auth()->user()->rol->nombre != "editor") @if (auth()->user()->rol->nombre != 'editor')
<div class="my-1 md:my-0"> <div class="my-1 md:my-0">
<button wire:click="eliminarCuentas" class="bg-red-400 text-white px-4 py-2 rounded">Eliminar</button> <button wire:click="eliminarCuentas"
class="bg-red-400 text-white px-4 py-2 rounded">Eliminar</button>
</div> </div>
@endif @endif
@@ -222,13 +221,11 @@
@foreach ($consulta_verUsuarios->historiales->unique() as $verUsuarios) @foreach ($consulta_verUsuarios->historiales->unique() as $verUsuarios)
<tr class="border-gray-200 text-left w-full pl-4" x-data="{ openOption: false }"> <tr class="border-gray-200 text-left w-full pl-4" x-data="{ openOption: false }">
<td class="pl-[2rem]">{{ $verUsuarios->vendedor->name ?? '' }}</td> <td class="pl-[2rem]">{{ $verUsuarios->vendedor->name ?? '' }}</td>
@if($consulta_verUsuarios->estado == 'activo') @if ($consulta_verUsuarios->estado == 'activo')
<td class="pl-[2rem]"> <td class="pl-[2rem]">
@foreach ($consulta_verUsuarios->perfil as $perfil) @foreach ($consulta_verUsuarios->perfil as $perfil)
@if ($verUsuarios->id == $perfil->historial_id)
@if ($verUsuarios->id == $perfil->historial_id )
-Perfil: {{ $perfil->perfil ?? '' }} -Perfil: {{ $perfil->perfil ?? '' }}
@endif @endif
@endforeach @endforeach
@@ -272,8 +269,12 @@
</td> </td>
@endif @endif
<td class="pl-[2rem]">{{ \Carbon\Carbon::parse($verUsuarios->fecha_inicio)->format('y/m/d' ) }}</td> <td class="pl-[2rem]">
<td class="pl-[2rem]">{{\Carbon\Carbon::parse( $verUsuarios->fecha_final)->format('y/m/d' ) }}</td> {{ \Carbon\Carbon::parse($verUsuarios->fecha_inicio)->format('y/m/d') }}
</td>
<td class="pl-[2rem]">
{{ \Carbon\Carbon::parse($verUsuarios->fecha_final)->format('y/m/d') }}
</td>
@php @php
$promocion = $verUsuarios->promocion_id; $promocion = $verUsuarios->promocion_id;
@@ -300,10 +301,14 @@
@if (!is_null($observaciones)) @if (!is_null($observaciones))
<td class="pl-2"> <td class="pl-2">
<div class="cursor-pointer" wire:click="verObservacion({{ $verUsuarios->id }})" <div class="cursor-pointer"
x-on:click="observacionesm=true" title="{{$observaciones}}" > wire:click="verObservacion({{ $verUsuarios->id }})"
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6 text-green-700"> x-on:click="observacionesm=true" title="{{ $observaciones }}">
<path stroke-linecap="round" stroke-linejoin="round" d="M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z" /> <svg xmlns="http://www.w3.org/2000/svg" fill="none"
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
class="w-6 h-6 text-green-700">
<path stroke-linecap="round" stroke-linejoin="round"
d="M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z" />
</svg> </svg>
</div> </div>
</td> </td>
@@ -313,10 +318,9 @@
x-on:click="observacionesm=true" class="w-7 cursor-pointer" x-on:click="observacionesm=true" class="w-7 cursor-pointer"
xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svgjs="http://svgjs.com/svgjs" x="0" xmlns:svgjs="http://svgjs.com/svgjs" x="0" y="0"
y="0" viewBox="0 0 32 32" viewBox="0 0 32 32" style="enable-background:new 0 0 512 512"
style="enable-background:new 0 0 512 512" xml:space="preserve" xml:space="preserve" class="">
class="">
<g> <g>
<g id="Layer_57" data-name="Layer 57"> <g id="Layer_57" data-name="Layer 57">
<path <path
@@ -338,20 +342,22 @@
@endif @endif
</tbody> </tbody>
</table> </table>
<div><span class="font-semibold text-gray-700">Email:</span> <div><span
{{ $consulta_verUsuarios->correo ?? '' }} </div> class="font-semibold text-gray-700">Email:</span>{{ $consulta_verUsuarios->correo ?? '' }}
<div><span class="font-semibold text-gray-700">Password:</span> </div>
{{ $consulta_verUsuarios->password ?? '' }} </div> <div><span
class="font-semibold text-gray-700">Password:</span>{{ $consulta_verUsuarios->password ?? '' }}
</div>
<div class="flex justify-end"> <div class="flex justify-end">
<span class="mr-4"> <span class="mr-4">
<button wire:click="openAdd" type="button" <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> 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> </span>
<span> <span>
<button wire:click="openRenovar" type="button" <button wire:click="openRenovar" 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 ">Editar cuenta</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 ">Editar
cuenta</button>
</span> </span>
</div> </div>
</div> </div>
@@ -390,9 +396,9 @@
</div> </div>
<div class="mb-4"> <div class="mb-4">
<label for="disponible" <label for="disponible" class="block text-gray-700 text-sm font-bold mb-2">Disponibilidad:</label>
class="block text-gray-700 text-sm font-bold mb-2">Disponibilidad:</label> <select name="" id="" wire:model="estado"
<select name="" id="" wire:model="estado" 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"> 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">
<option value="activo">Pantallas</option> <option value="activo">Pantallas</option>
<option value="pendiente">Cuenta completa</option> <option value="pendiente">Cuenta completa</option>
<option value="inactivo">Inactivo</option> <option value="inactivo">Inactivo</option>
@@ -440,58 +446,68 @@
class="fixed backdrop-blur-sm bg-black/20 left-0 bottom-0 top-0 right-0 h-full z-20"> class="fixed backdrop-blur-sm bg-black/20 left-0 bottom-0 top-0 right-0 h-full z-20">
<div class="grid h-full place-items-center"> <div class="grid h-full place-items-center">
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4 rounded-[1rem] shadow-md"> <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4 rounded-[1rem] shadow-md">
<div class="mb-2"> <div class="mb-2">
<label for="correo " class="block text-gray-700 text-sm font-bold mb-2">Correo:</label> <label for="correo" class="block text-gray-700 text-sm font-bold mb-2">Correo:</label>
<input wire:model="searchTerm" id="correo" type="text" placeholder="Escribir correo" 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" /> <input wire:model="searchTerm" id="correo" type="text" placeholder="Escribir correo"
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" />
<select wire:model="selectedOption" 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"> <select wire:model="selectedOption"
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($usuarios) @if ($usuarios)
@foreach ($usuarios as $option) @foreach ($usuarios as $option)
<option value="{{ $option->email }}" selected>{{ $option->email }}</option> <option value="{{ $option->email }}" selected>{{ $option->email }}</option>
@endforeach @endforeach
@endif @endif
</select> </select>
</div> </div>
@if(!empty($consulta_verUsuarios->servicio->perfiles)) {{-- @if (!empty($consulta_verUsuarios->servicio->perfiles))
<div class="mb-4"> <div class="mb-4">
<label for="Perfil " class="block text-gray-700 text-sm font-bold mb-2">Perfil:</label> <label for="Perfil " class="block text-gray-700 text-sm font-bold mb-2">Perfil:</label>
<select name="" id="" wire:model="perfil" 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"> <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) @if ($consulta_verUsuarios)
<option value="" select>Seleccionar</option> <option value="" select>Seleccionar</option>
@php @php
$pantallas = $consulta_verUsuarios->servicio->pantallas; $pantallas = $consulta_verUsuarios->servicio->pantallas;
@endphp @endphp
@for($i = 1; $i <= $pantallas; $i++) @for ($i = 1; $i <= $pantallas; $i++)
<option value="{{$i}}">Perfil {{$i}}</option> <option value="{{$i}}">Perfil {{$i}}</option>
@endfor @endfor
@endif @endif
</select> </select>
</div> </div>
@endif @endif --}}
@if(!empty($consulta_verUsuarios->servicio->tarifas ))
@if (!empty($consulta_verUsuarios->servicio->tarifas))
<label for="tarifa " class="block text-gray-700 text-sm font-bold mb-2">Tarifa:</label> <label for="tarifa " class="block text-gray-700 text-sm font-bold mb-2">Tarifa:</label>
<select name="" id="" wire:model="tarifa" 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"> <select name="" id="" wire:model="tarifa" class="border-2 border-neutral-200 rounded-lg 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">
<option value="" select>Seleccionar</option> <option value="" select>Seleccionar</option>
@foreach($consulta_verUsuarios->servicio->tarifas as $tarifaItem ) @foreach ($consulta_verUsuarios->servicio->tarifas as $tarifaItem)
@if($tarifaItem->pantallas == '1' && $tarifaItem->rol_id =='5') @if ($consulta_verUsuarios->estado == 'pendiente' && $tarifaItem->rol_id == '5' )
@if($tarifaItem->servicio->por_tiempo) @if ($tarifaItem->pantallas == $tarifaItem->servicio->completa)
<option value="{{$tarifaItem}}">{{ $tarifaItem->servicio->nombre }} - {{ $tarifaItem->dias }} {{ __($tarifaItem->dias == 1 ? 'día' : 'días') }} @if ($tarifaItem->servicio->por_tiempo)
</option> <option value="{{ $tarifaItem }}">{{ $tarifaItem->servicio->nombre }} - {{ $tarifaItem->dias }} {{ __($tarifaItem->dias == 1 ? 'día' : 'días') }}</option>
@else @else
<option value="{{$tarifaItem}}">{{ $tarifaItem->servicio->nombre }} - {{ $tarifaItem->pantallas }} {{ __($tarifaItem->pantallas == 1 ? 'pantalla' : 'pantallas') }} - {{ $tarifaItem->dias }} {{ __($tarifaItem->dias == 1 ? 'día' : 'días') }} <option value="{{ $tarifaItem }}">{{ $tarifaItem->servicio->nombre }} - {{ $tarifaItem->pantallas }} {{ __($tarifaItem->pantallas == 1 ? 'pantalla' : 'pantallas') }} - {{ $tarifaItem->dias }} {{ __($tarifaItem->dias == 1 ? 'día' : 'días') }}</option>
</option> @endif
@endif
@else
@if ($tarifaItem->pantallas == '1' && $tarifaItem->rol_id == '5')
@if ($tarifaItem->servicio->por_tiempo)
<option value="{{ $tarifaItem }}">{{ $tarifaItem->servicio->nombre }} - {{ $tarifaItem->dias }} {{ __($tarifaItem->dias == 1 ? 'día' : 'días') }}</option>
@else
<option value="{{ $tarifaItem }}">{{ $tarifaItem->servicio->nombre }} - {{ $tarifaItem->pantallas }} {{ __($tarifaItem->pantallas == 1 ? 'pantalla' : 'pantallas') }} - {{ $tarifaItem->dias }} {{ __($tarifaItem->dias == 1 ? 'día' : 'días') }}</option>
@endif
@endif @endif
@endif @endif
@endforeach @endforeach
</select> </select>
@error('tarifa') <p class="text-sm text-red-400">{{ 'Requerido*' }}</p> @enderror @error('tarifa')
<p class="text-sm text-red-400">{{ 'Requerido*' }}</p>
@enderror
@endif @endif
@@ -598,12 +614,13 @@
<option value="{{ $servicio->id }}">{{ $servicio->nombre ?? '' }}</option> <option value="{{ $servicio->id }}">{{ $servicio->nombre ?? '' }}</option>
@endforeach @endforeach
</select> </select>
@error('servicio_newCuenta') <div class="text-red-500 text-sm">{{ 'Requerido*' }}</div> @enderror @error('servicio_newCuenta')
<div class="text-red-500 text-sm">{{ 'Requerido*' }}</div>
@enderror
<button x-on:click.prevent="serviciosModal=!serviciosModal" x-transition.duration.300ms <button x-on:click.prevent="serviciosModal=!serviciosModal" x-transition.duration.300ms
class="p-0 w-10 h-10 float-right bg-[#B221FD] hover:bg-[#7a02b8] rounded-full active:shadow-lg mouse shadow ease-in focus:outline-none"> class="p-0 w-10 h-10 float-right bg-[#B221FD] hover:bg-[#7a02b8] rounded-full active:shadow-lg mouse shadow ease-in focus:outline-none">
<svg viewBox="0 0 20 20" enable-background="new 0 0 20 20" class="w-6 h-6 inline-block"> <svg viewBox="0 0 20 20" enable-background="new 0 0 20 20" class="w-6 h-6 inline-block">
<path fill="#FFFFFF" <path fill="#FFFFFF" d="M16,10c0,0.553-0.048,1-0.601,1H11v4.399C11,15.951,10.553,16,10,16c-0.553,0-1-0.049-1-0.601V11H4.601
d="M16,10c0,0.553-0.048,1-0.601,1H11v4.399C11,15.951,10.553,16,10,16c-0.553,0-1-0.049-1-0.601V11H4.601
C4.049,11,4,10.553,4,10c0-0.553,0.049-1,0.601-1H9V4.601C9,4.048,9.447,4,10,4c0.553,0,1,0.048,1,0.601V9h4.399 C4.049,11,4,10.553,4,10c0-0.553,0.049-1,0.601-1H9V4.601C9,4.048,9.447,4,10,4c0.553,0,1,0.048,1,0.601V9h4.399
C15.952,9,16,9.447,16,10z" /> C15.952,9,16,9.447,16,10z" />
</svg> </svg>
@@ -614,7 +631,9 @@
<label for="usuario_newCuenta" class="block text-gray-700 text-sm font-bold mb-2">Usuario:</label> <label for="usuario_newCuenta" class="block text-gray-700 text-sm font-bold mb-2">Usuario:</label>
<input type="email" id="usuario_newCuenta" wire:model="usuario_newCuenta" <input type="email" id="usuario_newCuenta" wire:model="usuario_newCuenta"
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"> 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">
@error('usuario_newCuenta') <div class="text-red-500 text-sm">{{ 'Requerido*' }}</div> @enderror @error('usuario_newCuenta')
<div class="text-red-500 text-sm">{{ 'Requerido*' }}</div>
@enderror
</div> </div>
<div class="mb-4"> <div class="mb-4">
@@ -622,18 +641,22 @@
class="block text-gray-700 text-sm font-bold mb-2">Contraseña:</label> class="block text-gray-700 text-sm font-bold mb-2">Contraseña:</label>
<input type="text" id="password_newCuenta" wire:model="password_newCuenta" <input type="text" id="password_newCuenta" wire:model="password_newCuenta"
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"> 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">
@error('password_newCuenta') <div class="text-red-500 text-sm">{{ 'Requerido*' }}</div> @enderror @error('password_newCuenta')
<div class="text-red-500 text-sm">{{ 'Requerido*' }}</div>
@enderror
</div> </div>
<div class="mb-4"> <div class="mb-4">
<label for="disponible" <label for="disponible" class="block text-gray-700 text-sm font-bold mb-2">Disponibilidad:</label>
class="block text-gray-700 text-sm font-bold mb-2">Disponibilidad:</label> <select name="" id="" wire:model="estado"
<select name="" id="" wire:model="estado" 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"> 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">
<option value="activo">Pantallas</option> <option value="activo">Pantallas</option>
<option value="pendiente">Cuenta completa</option> <option value="pendiente">Cuenta completa</option>
<option value="inactivo">Inactivo</option> <option value="inactivo">Inactivo</option>
</select> </select>
@error('estado') <div class="text-red-500 text-sm">{{ 'Requerido*' }}</div> @enderror @error('estado')
<div class="text-red-500 text-sm">{{ 'Requerido*' }}</div>
@enderror
</div> </div>
@@ -643,7 +666,9 @@
inicio:</label> inicio:</label>
<input name="fecha_inicial" wire:model.defer="fecha_inicial" type="date" <input name="fecha_inicial" wire:model.defer="fecha_inicial" type="date"
class="border-2 border-neutral-200 rounded-[0.8rem] px-4 py-2 text-gray-900 sm:text-sm focus:border-neutral-300 focus:outline-none focus:shadow-outline focus:ring-0 block w-full dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 datepicker-input"> class="border-2 border-neutral-200 rounded-[0.8rem] px-4 py-2 text-gray-900 sm:text-sm focus:border-neutral-300 focus:outline-none focus:shadow-outline focus:ring-0 block w-full dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 datepicker-input">
@error('fecha_inicial') <div class="text-red-500 text-sm">{{ 'Requerido*' }}</div> @enderror @error('fecha_inicial')
<div class="text-red-500 text-sm">{{ 'Requerido*' }}</div>
@enderror
</div> </div>
<div class="relative"> <div class="relative">
@@ -651,7 +676,9 @@
Final:</label> Final:</label>
<input name="fecha_final" wire:model.defer="fecha_final" type="date" <input name="fecha_final" wire:model.defer="fecha_final" type="date"
class="border-2 border-neutral-200 rounded-[0.8rem] px-4 py-2 text-gray-900 sm:text-sm focus:border-neutral-300 focus:outline-none focus:shadow-outline focus:ring-0 block w-full dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 datepicker-input"> class="border-2 border-neutral-200 rounded-[0.8rem] px-4 py-2 text-gray-900 sm:text-sm focus:border-neutral-300 focus:outline-none focus:shadow-outline focus:ring-0 block w-full dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 datepicker-input">
@error('fecha_final') <div class="text-red-500 text-sm">{{ 'Requerido*' }}</div> @enderror @error('fecha_final')
<div class="text-red-500 text-sm">{{ 'Requerido*' }}</div>
@enderror
</div> </div>
</div> </div>
@@ -693,8 +720,7 @@
<button x-on:click.prevent="serviciosModal=!serviciosModal" x-transition.duration.300ms <button x-on:click.prevent="serviciosModal=!serviciosModal" x-transition.duration.300ms
class="p-0 w-10 h-10 float-right bg-[#B221FD] hover:bg-[#7a02b8] rounded-full active:shadow-lg mouse shadow ease-in focus:outline-none"> class="p-0 w-10 h-10 float-right bg-[#B221FD] hover:bg-[#7a02b8] rounded-full active:shadow-lg mouse shadow ease-in focus:outline-none">
<svg viewBox="0 0 20 20" enable-background="new 0 0 20 20" class="w-6 h-6 inline-block"> <svg viewBox="0 0 20 20" enable-background="new 0 0 20 20" class="w-6 h-6 inline-block">
<path fill="#FFFFFF" <path fill="#FFFFFF" d="M16,10c0,0.553-0.048,1-0.601,1H11v4.399C11,15.951,10.553,16,10,16c-0.553,0-1-0.049-1-0.601V11H4.601
d="M16,10c0,0.553-0.048,1-0.601,1H11v4.399C11,15.951,10.553,16,10,16c-0.553,0-1-0.049-1-0.601V11H4.601
C4.049,11,4,10.553,4,10c0-0.553,0.049-1,0.601-1H9V4.601C9,4.048,9.447,4,10,4c0.553,0,1,0.048,1,0.601V9h4.399 C4.049,11,4,10.553,4,10c0-0.553,0.049-1,0.601-1H9V4.601C9,4.048,9.447,4,10,4c0.553,0,1,0.048,1,0.601V9h4.399
C15.952,9,16,9.447,16,10z" /> C15.952,9,16,9.447,16,10z" />
</svg> </svg>
@@ -716,12 +742,14 @@
</div> </div>
<div class="w-[6rem]"> <div class="w-[6rem]">
<label class="text-gray-500 text-sm">Pantallas</label> <label class="text-gray-500 text-sm">Pantallas</label>
<input type="number" id="pantallas_modTarifas" wire:model="pantallas_modTarifas" min="1" <input type="number" id="pantallas_modTarifas" wire:model="pantallas_modTarifas"
min="1"
class="w-full border-2 border-neutral-200 rounded-[0.8rem] focus:ring-0 shadow apperance-none focus:border-neutral-300 py-2 pl-2 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"> class="w-full border-2 border-neutral-200 rounded-[0.8rem] focus:ring-0 shadow apperance-none focus:border-neutral-300 py-2 pl-2 text-gray-700 leading-tight focus:outline-none focus:shadow-outline">
</div> </div>
<div class="w-[6rem]"> <div class="w-[6rem]">
<label class="text-gray-500 text-sm">Precio</label> <label class="text-gray-500 text-sm">Precio</label>
<input type="number" id="precio_modTarifas" wire:model="precio_modTarifas" min="0" <input type="number" id="precio_modTarifas" wire:model="precio_modTarifas"
min="0"
class="w-full border-2 border-neutral-200 rounded-[0.8rem] focus:ring-0 shadow apperance-none focus:border-neutral-300 py-2 pl-2 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"> class="w-full border-2 border-neutral-200 rounded-[0.8rem] focus:ring-0 shadow apperance-none focus:border-neutral-300 py-2 pl-2 text-gray-700 leading-tight focus:outline-none focus:shadow-outline">
</div> </div>
<div class="w-[6rem]"> <div class="w-[6rem]">
@@ -774,9 +802,11 @@
<td class="pl-[1rem]">{{ $tarifa->valor ?? '' }}</td> <td class="pl-[1rem]">{{ $tarifa->valor ?? '' }}</td>
<td class="pl-[1rem]">{{ $tarifa->dias ?? '' }}</td> <td class="pl-[1rem]">{{ $tarifa->dias ?? '' }}</td>
<td class="pl-[1rem]">{{ $tarifa->utilidad ?? '' }}</td> <td class="pl-[1rem]">{{ $tarifa->utilidad ?? '' }}</td>
<td class="pl-[1rem]"><button wire:click="editar({{$tarifa}})" class="justify-center flex px-3 py-2 rounded-lg text-xs cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8]">Editar</button></td> <td class="pl-[1rem]"><button wire:click="editar({{ $tarifa }})"
class="justify-center flex px-3 py-2 rounded-lg text-xs cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8]">Editar</button>
</td>
<!--td class="pl-[1rem]"> <!--td class="pl-[1rem]">
<svg wire:click="eliminarModTarifa({{ $tarifa->id ?? ''}})" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" class="w-6 cursor-pointer" x="0" y="0" viewBox="0 0 24 24" style="enable-background:new 0 0 512 512" xml:space="preserve" class=""><g><g id="Flat_Color" data-name="Flat Color"><circle cx="12" cy="12" fill="#e63946" r="10" data-original="#e63946" class=""></circle><path d="m13.41 12 2.3-2.29a1 1 0 0 0 -1.42-1.42l-2.29 2.3-2.29-2.3a1 1 0 0 0 -1.42 1.42l2.3 2.29-2.3 2.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l2.29-2.3 2.29 2.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z" fill="#edebea" data-original="#edebea" class=""></path></g></g> <svg wire:click="eliminarModTarifa({{ $tarifa->id ?? '' }})" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" class="w-6 cursor-pointer" x="0" y="0" viewBox="0 0 24 24" style="enable-background:new 0 0 512 512" xml:space="preserve" class=""><g><g id="Flat_Color" data-name="Flat Color"><circle cx="12" cy="12" fill="#e63946" r="10" data-original="#e63946" class=""></circle><path d="m13.41 12 2.3-2.29a1 1 0 0 0 -1.42-1.42l-2.29 2.3-2.29-2.3a1 1 0 0 0 -1.42 1.42l2.3 2.29-2.3 2.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l2.29-2.3 2.29 2.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z" fill="#edebea" data-original="#edebea" class=""></path></g></g>
</svg> </svg>
</td> --> </td> -->
</tr> </tr>
@@ -807,7 +837,7 @@
class="fixed backdrop-blur-sm bg-black/20 left-0 bottom-0 top-0 right-0 h-full z-20"> class="fixed backdrop-blur-sm bg-black/20 left-0 bottom-0 top-0 right-0 h-full z-20">
<div class="grid h-full place-items-center"> <div class="grid h-full place-items-center">
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4 rounded-[1rem] shadow-md"> <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4 rounded-[1rem] shadow-md">
@if($informacionTarifaRol) @if ($informacionTarifaRol)
<div> <div>
<label class="block text-gray-700 text-sm font-bold mb-2">Pantallas:</label> <label class="block text-gray-700 text-sm font-bold mb-2">Pantallas:</label>
<div class="grid grid-cols-4 gap-2 text-left mb-4"> <div class="grid grid-cols-4 gap-2 text-left mb-4">
@@ -823,12 +853,14 @@
</div> </div>
<div class="w-[6rem]"> <div class="w-[6rem]">
<label class="text-gray-500 text-sm">Pantallas</label> <label class="text-gray-500 text-sm">Pantallas</label>
<input type="number" id="pantallas_modTarifas" wire:model="pantallas_modTarifas" min="1" <input type="number" id="pantallas_modTarifas" wire:model="pantallas_modTarifas"
min="1"
class="w-full border-2 border-neutral-200 rounded-[0.8rem] focus:ring-0 shadow apperance-none focus:border-neutral-300 py-2 pl-2 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"> class="w-full border-2 border-neutral-200 rounded-[0.8rem] focus:ring-0 shadow apperance-none focus:border-neutral-300 py-2 pl-2 text-gray-700 leading-tight focus:outline-none focus:shadow-outline">
</div> </div>
<div class="w-[6rem]"> <div class="w-[6rem]">
<label class="text-gray-500 text-sm">Precio</label> <label class="text-gray-500 text-sm">Precio</label>
<input type="number" id="precio_modTarifas" wire:model="precio_modTarifas" min="0" <input type="number" id="precio_modTarifas" wire:model="precio_modTarifas"
min="0"
class="w-full border-2 border-neutral-200 rounded-[0.8rem] focus:ring-0 shadow apperance-none focus:border-neutral-300 py-2 pl-2 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"> class="w-full border-2 border-neutral-200 rounded-[0.8rem] focus:ring-0 shadow apperance-none focus:border-neutral-300 py-2 pl-2 text-gray-700 leading-tight focus:outline-none focus:shadow-outline">
</div> </div>
<div class="w-[6rem]"> <div class="w-[6rem]">
@@ -852,7 +884,8 @@
</div> </div>
<div class="mb-3 mt-3 flex justify-end"> <div class="mb-3 mt-3 flex justify-end">
<span> <span>
<button wire:click="actualizarTarifaRol('{{$informacionTarifaRol['id']}}')" type="button" <button wire:click="actualizarTarifaRol('{{ $informacionTarifaRol['id'] }}')"
type="button"
class="inline-flex justify-center w-full md:w-auto rounded-md border border-transparent px-4 py-1 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">Actualizar</button> class="inline-flex justify-center w-full md:w-auto rounded-md border border-transparent px-4 py-1 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">Actualizar</button>
</span> </span>
</div> </div>
@@ -872,7 +905,7 @@
</div> </div>
</div> </div>
</div> </div>
{{-- Modal agregar servicios --}} {{-- Modal agregar servicios --}}
<div x-cloak x-show="serviciosModal" x-transition:enter="transition duration-350" <div x-cloak x-show="serviciosModal" x-transition:enter="transition duration-350"
@@ -897,8 +930,7 @@
<img src="{{ $photo->temporaryUrl() }}" alt="" <img src="{{ $photo->temporaryUrl() }}" alt=""
class="object-cover rounded-xl border-2 border-neutral-200 shadow-md w-28 h-20"> class="object-cover rounded-xl border-2 border-neutral-200 shadow-md w-28 h-20">
@else @else
<div <div class="rounded-xl border-2 border-neutral-200 shadow-md w-28 h-20"></div>
class="rounded-xl border-2 border-neutral-200 shadow-md w-28 h-20"></div>
@endif @endif
</div> </div>
</div> </div>
@@ -906,10 +938,11 @@
<div class="mb-4 grid grid-cols-2 items-center justify-items-center"> <div class="mb-4 grid grid-cols-2 items-center justify-items-center">
<div> <div>
<label for="imagen_inicio_servicios" <label for="imagen_inicio_servicios"
class="text-white bg-[#B221FD] hover:bg-[#7a02b8] px-3 py-1 rounded-md cursor-pointer">Img inicio class="text-white bg-[#B221FD] hover:bg-[#7a02b8] px-3 py-1 rounded-md cursor-pointer">Img
inicio
</label> </label>
<input type="file" name="imagen_inicio_servicios" id="imagen_inicio_servicios" wire:model="photo_inicio" <input type="file" name="imagen_inicio_servicios" id="imagen_inicio_servicios"
class="hidden"> wire:model="photo_inicio" class="hidden">
</div> </div>
<div> <div>
@@ -917,8 +950,7 @@
<img src="{{ $photo_inicio->temporaryUrl() }}" alt="" <img src="{{ $photo_inicio->temporaryUrl() }}" alt=""
class="object-cover rounded-xl border-2 border-neutral-200 shadow-md w-28 h-20"> class="object-cover rounded-xl border-2 border-neutral-200 shadow-md w-28 h-20">
@else @else
<div <div class="rounded-xl border-2 border-neutral-200 shadow-md w-28 h-20"></div>
class="rounded-xl border-2 border-neutral-200 shadow-md w-28 h-20"></div>
@endif @endif
</div> </div>
</div> </div>