Carga inicial
This commit is contained in:
34
app/Http/Requests/Operador/DesplazamientoRequest.php
Normal file
34
app/Http/Requests/Operador/DesplazamientoRequest.php
Normal 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"'
|
||||
];
|
||||
}
|
||||
}
|
||||
34
app/Http/Requests/Operador/FinalizarJornadaRequest.php
Normal file
34
app/Http/Requests/Operador/FinalizarJornadaRequest.php
Normal 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'
|
||||
];
|
||||
}
|
||||
}
|
||||
36
app/Http/Requests/Operador/FinalizarServicioRequest.php
Normal file
36
app/Http/Requests/Operador/FinalizarServicioRequest.php
Normal 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'
|
||||
];
|
||||
}
|
||||
}
|
||||
34
app/Http/Requests/Operador/GuardarEvidenciaRequest.php
Normal file
34
app/Http/Requests/Operador/GuardarEvidenciaRequest.php
Normal 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',
|
||||
];
|
||||
}
|
||||
}
|
||||
31
app/Http/Requests/Operador/GuardarFirmaRequest.php
Normal file
31
app/Http/Requests/Operador/GuardarFirmaRequest.php
Normal 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',
|
||||
];
|
||||
}
|
||||
}
|
||||
34
app/Http/Requests/Operador/IniciarServicioRequest.php
Normal file
34
app/Http/Requests/Operador/IniciarServicioRequest.php
Normal 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',
|
||||
];
|
||||
}
|
||||
}
|
||||
35
app/Http/Requests/Operador/InicioJornadaRequest.php
Normal file
35
app/Http/Requests/Operador/InicioJornadaRequest.php
Normal 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'
|
||||
];
|
||||
}
|
||||
}
|
||||
30
app/Http/Requests/Operador/RechazarSolicitudRequest.php
Normal file
30
app/Http/Requests/Operador/RechazarSolicitudRequest.php
Normal 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',
|
||||
];
|
||||
}
|
||||
}
|
||||
38
app/Http/Requests/Operador/RespuestasOperadorRequest.php
Normal file
38
app/Http/Requests/Operador/RespuestasOperadorRequest.php
Normal 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'
|
||||
];
|
||||
}
|
||||
}
|
||||
30
app/Http/Requests/Operador/UltimaIncidenciaRequest.php
Normal file
30
app/Http/Requests/Operador/UltimaIncidenciaRequest.php
Normal 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',
|
||||
];
|
||||
}
|
||||
}
|
||||
30
app/Http/Requests/Operador/VehiculosIncidenciasRequest.php
Normal file
30
app/Http/Requests/Operador/VehiculosIncidenciasRequest.php
Normal 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|',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user