mejoras en la gestión de proyectos y documentos: se añaden nuevos campos y validaciones para optimizar la organización y el seguimiento de los mismos.
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled

This commit is contained in:
2025-10-25 11:29:20 +02:00
parent 28c225687a
commit d8ae8c8894
29 changed files with 2054 additions and 856 deletions

View File

@@ -37,9 +37,9 @@
<form method="POST" action="{{ (isset($user) && $user->id) ? route('users.update', $user) : route('users.store') }}">
@csrf
@isset($user)
@if(isset($user) && $user->id)
@method('PUT')
@endisset
@endif
<!-- Separador -->
<div class="relative">
@@ -257,6 +257,23 @@
<div class="bg-white py-6">
<table class="w-full">
<tbody>
<!-- tipo de usuario -->
<tr>
<td class="py-2 pr-4 w-1/3">
<label class="block text-sm font-bold text-gray-700">
Tipo de usuario
</label>
</td>
<td class="py-2">
<div class="flex items-center gap-2">
<select name="user_type" class="w-[200px] border-b-1 border-gray-300 focus:border-blue-500 focus:outline-none">
<option value="0">Interno</option>
<option value="1">Externo</option>
</select>
</div>
</td>
</tr>
<!-- Estado -->
<tr>
<td class="py-2 pr-4 w-1/3">
@@ -291,7 +308,7 @@
<input type="hidden" name="profile_photo_path" id="profilePhotoPathInput" value="{{ old('profile_photo_path', optional($user)->profile_photo_path ?? '') }}">
</div>
</td>
</tr>php
</tr>
</tbody>
</table>
</div>

View File

@@ -2,9 +2,9 @@
<x-layouts.app :title="__('Show User')" :showSidebar={{ $showSidebar }}>
<!-- Header Section -->
<div class="bg-white p-6 mb-6 flex items-center justify-between">
<div class="bg-white p-6 mb-6 flex content-start justify-between">
<!-- User Info Left -->
<div class="flex items-center space-x-6">
<div class="flex content-start space-x-6">
<!-- User Photo -->
<flux:avatar
class="w-24 h-24 rounded-lg shadow-lg object-cover border-2 border-gray-600"
@@ -55,28 +55,30 @@
<div class="flex flex-col items-end space-y-4">
<!-- Navigation Toolbar -->
<div class="flex space-x-2">
<a href="{{ route('users.index') }}"
class="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg flex items-center">
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"/>
</svg>
</a>
<flux:button
href="{{ route('users.index') }}"
icon:trailing="arrow-uturn-left"
variant="ghost"
>
</flux:button>
@if($previousUser)
<a href="{{ route('users.show', $previousUser) }}" class="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg flex items-center">
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"/>
</svg>
</a>
<flux:button
href="{{ route('users.show', $previousUser) }}"
icon:trailing="chevron-left"
variant="ghost"
>
</flux:button>
@endif
@if($nextUser)
<a href="{{ route('users.show', $nextUser) }}"
class="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg flex items-center">
<svg class="w-4 h-4 ml-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/>
</svg>
</a>
<flux:button
href="{{ route('users.show', $nextUser) }}"
icon:trailing="chevron-right"
variant="ghost"
>
</flux:button>
@endif
</div>