Carga inicial

This commit is contained in:
IvanAS94
2025-12-26 17:21:11 -08:00
parent 45d9afc951
commit 51880798ca
359 changed files with 42159 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Http\Requests\Operador;
use Illuminate\Foundation\Http\FormRequest;
class DesplazamientoRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'*.lat' => 'required|numeric',
'*.lng' => 'required|numeric',
'*.modelo_celular' => 'string|required',
'*.bateria' => 'numeric|required|max:100',
'*.fecha' => 'required|date_format:"Y-m-d H:i:s"'
];
}
}

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Http\Requests\Operador;
use Illuminate\Foundation\Http\FormRequest;
class FinalizarJornadaRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'kilometraje_final' => 'numeric|required',
'lat_fin' => 'required|numeric',
'lng_fin' => 'required|numeric',
'modelo_celular' => 'string|required',
'bateria' => 'numeric|required|max:100'
];
}
}

View File

@@ -0,0 +1,36 @@
<?php
namespace App\Http\Requests\Operador;
use Illuminate\Foundation\Http\FormRequest;
class FinalizarServicioRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'servicio_enc_id' => 'alpha_num|required|exists:servicios_enc,id',
'servicio_det_id' => 'alpha_num|required|exists:servicios_det,id',
'fecha_fin_celular' => 'required|date_format:"Y-m-d H:i:s"',
'duracion' => 'required|date_format:"H:i:s"',
'comentarios' => 'max:505',
'aplica_garantia' => 'required',
'cat_motivos_estatus_id' => 'integer'
];
}
}

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Http\Requests\Operador;
use Illuminate\Foundation\Http\FormRequest;
class GuardarEvidenciaRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'servicio_enc_id' => 'alpha_num|required|exists:servicios_enc,id',
'servicio_det_id' => 'alpha_num|required|exists:servicios_det,id',
'etapa' => 'required|string',
//'lat' => 'required|numeric',
//'lng' => 'required|numeric',
];
}
}

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Http\Requests\Operador;
use Illuminate\Foundation\Http\FormRequest;
class GuardarFirmaRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'servicio_enc_id' => 'alpha_num|required|exists:servicios_enc,id',
'servicio_det_id' => 'alpha_num|required|exists:servicios_det,id',
];
}
}

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Http\Requests\Operador;
use Illuminate\Foundation\Http\FormRequest;
class IniciarServicioRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'servicio_enc_id' => 'alpha_num|required|exists:servicios_enc,id',
'servicio_det_id' => 'alpha_num|required|exists:servicios_det,id',
'fecha_ini_celular' => 'required|date_format:"Y-m-d H:i:s"',
//'lat_ini' => 'required|numeric',
//'lng_ini' => 'required|numeric',
];
}
}

View File

@@ -0,0 +1,35 @@
<?php
namespace App\Http\Requests\Operador;
use Illuminate\Foundation\Http\FormRequest;
class InicioJornadaRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'kilometraje_inicial' => 'numeric|required',
'lat_ini' => 'required|numeric',
'lng_ini' => 'required|numeric',
'modelo_celular' => 'string|required',
'bateria' => 'numeric|required|max:100',
'token_firebase' => 'string|required'
];
}
}

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Http\Requests\Operador;
use Illuminate\Foundation\Http\FormRequest;
class RechazarSolicitudRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'observacion' => 'string|required|max:255',
];
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace App\Http\Requests\Operador;
use Illuminate\Foundation\Http\FormRequest;
class RespuestasOperadorRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'*.nombre' => 'string|required',
'*.tipo' => 'string|required',
'*.tipo_checkbox' => 'boolean|required',
'*.tipo_text' => 'boolean|required',
'*.tipo_radio_btn' => 'boolean|required',
'*.respuesta_checkbox' => 'boolean|nullable',
'*.respuesta_text' => 'string|nullable',
'*.respuesta_radio_btn' => 'string|nullable',
'*.fecha' => 'date|required'
];
}
}

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Http\Requests\Operador;
use Illuminate\Foundation\Http\FormRequest;
class UltimaIncidenciaRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'vehiculo_id' => 'integer|required|exists:cat_vehiculos,id',
];
}
}

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Http\Requests\Operador;
use Illuminate\Foundation\Http\FormRequest;
class VehiculosIncidenciasRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'descripcion' => 'string|required|',
];
}
}