Carga inicial
This commit is contained in:
33
app/Http/Requests/Reportes/CapacidadAprovechadaRequest.php
Normal file
33
app/Http/Requests/Reportes/CapacidadAprovechadaRequest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Reportes;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class CapacidadAprovechadaRequest 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 [
|
||||
'sucursal' => 'alpha_num|required',
|
||||
'fecha_inicio' => 'required|date_format:"Y-m-d"',
|
||||
'fecha_final' => 'required|date_format:"Y-m-d"',
|
||||
'vehiculo_id' => 'alpha_num|required',
|
||||
];
|
||||
}
|
||||
}
|
||||
32
app/Http/Requests/Reportes/ConsultarAsesoresRequest.php
Normal file
32
app/Http/Requests/Reportes/ConsultarAsesoresRequest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Reportes;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ConsultarAsesoresRequest 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 [
|
||||
'sucursal' => 'alpha_num|required',
|
||||
'fecha_inicio' => 'required|date_format:"Y-m-d"',
|
||||
'fecha_final' => 'required|date_format:"Y-m-d"'
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Reportes;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ConsultarAtencionClientesRequest 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 [
|
||||
'sucursal' => 'alpha_num|required',
|
||||
'fecha_inicio' => 'required|date_format:"Y-m-d"',
|
||||
'fecha_final' => 'required|date_format:"Y-m-d"',
|
||||
'definio' => 'alpha_num|required',
|
||||
];
|
||||
}
|
||||
}
|
||||
32
app/Http/Requests/Reportes/ConsultarClientesRequest.php
Normal file
32
app/Http/Requests/Reportes/ConsultarClientesRequest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Reportes;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ConsultarClientesRequest 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 [
|
||||
'sucursal' => 'alpha_num|required',
|
||||
'fecha_inicio' => 'required|date_format:"Y-m-d"',
|
||||
'fecha_final' => 'required|date_format:"Y-m-d"'
|
||||
];
|
||||
}
|
||||
}
|
||||
32
app/Http/Requests/Reportes/ConsultarVehiculosRequest.php
Normal file
32
app/Http/Requests/Reportes/ConsultarVehiculosRequest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Reportes;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ConsultarVehiculosRequest 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 [
|
||||
'sucursal' => 'alpha_num|required',
|
||||
'fecha_inicio' => 'required|date_format:"Y-m-d"',
|
||||
'fecha_final' => 'required|date_format:"Y-m-d"'
|
||||
];
|
||||
}
|
||||
}
|
||||
31
app/Http/Requests/Reportes/EncuestasGeneralRequest.php
Normal file
31
app/Http/Requests/Reportes/EncuestasGeneralRequest.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Reportes;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class EncuestasGeneralRequest 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 [
|
||||
'sucursal' => 'alpha_num|required',
|
||||
'mes' => 'required'
|
||||
];
|
||||
}
|
||||
}
|
||||
31
app/Http/Requests/Reportes/FiltroAsesoresRequest.php
Normal file
31
app/Http/Requests/Reportes/FiltroAsesoresRequest.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Reportes;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class FiltroAsesoresRequest 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 [
|
||||
'sucursal' => 'alpha_num|required',
|
||||
'mes' => 'required'
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Reportes;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ProductividadAtencionClientesRequest 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 [
|
||||
'sucursal' => 'alpha_num|required',
|
||||
'fecha_inicio' => 'required|date_format:"Y-m-d"',
|
||||
'fecha_final' => 'required|date_format:"Y-m-d"',
|
||||
'usuario_id' => 'alpha_num|required',
|
||||
'definio' => 'alpha_num|required',
|
||||
];
|
||||
}
|
||||
}
|
||||
33
app/Http/Requests/Reportes/ServiciosAsesoresRequest.php
Normal file
33
app/Http/Requests/Reportes/ServiciosAsesoresRequest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Reportes;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ServiciosAsesoresRequest 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 [
|
||||
'sucursal' => 'alpha_num|required',
|
||||
'fecha_inicio' => 'required|date_format:"Y-m-d"',
|
||||
'fecha_final' => 'required|date_format:"Y-m-d"',
|
||||
'usuario_id' => 'alpha_num|required',
|
||||
];
|
||||
}
|
||||
}
|
||||
33
app/Http/Requests/Reportes/ServiciosClientesRequest.php
Normal file
33
app/Http/Requests/Reportes/ServiciosClientesRequest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Reportes;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ServiciosClientesRequest 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 [
|
||||
'sucursal' => 'alpha_num|required',
|
||||
'fecha_inicio' => 'required|date_format:"Y-m-d"',
|
||||
'fecha_final' => 'required|date_format:"Y-m-d"',
|
||||
'cliente_id' => 'alpha_num|required',
|
||||
];
|
||||
}
|
||||
}
|
||||
36
app/Http/Requests/Reportes/ServiciosRequest.php
Normal file
36
app/Http/Requests/Reportes/ServiciosRequest.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Reportes;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ServiciosRequest 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 [
|
||||
'sucursal' => 'alpha_num|required',
|
||||
'fecha_inicio' => 'required|date_format:"Y-m-d"',
|
||||
'fecha_final' => 'required|date_format:"Y-m-d"',
|
||||
'tipo_servicio' => 'alpha_num|required',
|
||||
'estado_servicio' => 'alpha_num|required',
|
||||
'servicio' => 'alpha_num|required',
|
||||
'origen' => 'alpha_num|required',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user