Add citas module: scheduling, calendar, blocked schedules

This commit is contained in:
2026-04-08 00:48:36 -06:00
parent e19eb205db
commit 91da97685f
21 changed files with 3406 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class HorarioBloqueadoRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'fecha' => ['required', 'date'],
'hora_inicio' => ['required', 'date_format:H:i'],
'hora_fin' => ['required', 'date_format:H:i', 'after:hora_inicio'],
'motivo' => ['nullable', 'string', 'max:255'],
'activo' => ['nullable', 'boolean'],
];
}
public function messages(): array
{
return [
'hora_fin.after' => 'La hora de fin debe ser posterior a la hora de inicio.',
];
}
}