@@ -5,25 +5,25 @@ discard block |
||
5 | 5 | |
6 | 6 | class CreateLocationRequest extends Request { |
7 | 7 | |
8 | - /** |
|
9 | - * Determine if the user is authorized to make this request. |
|
10 | - * |
|
11 | - * @return bool |
|
12 | - */ |
|
13 | - public function authorize() |
|
14 | - { |
|
15 | - return true; |
|
16 | - } |
|
8 | + /** |
|
9 | + * Determine if the user is authorized to make this request. |
|
10 | + * |
|
11 | + * @return bool |
|
12 | + */ |
|
13 | + public function authorize() |
|
14 | + { |
|
15 | + return true; |
|
16 | + } |
|
17 | 17 | |
18 | - /** |
|
19 | - * Get the validation rules that apply to the request. |
|
20 | - * |
|
21 | - * @return array |
|
22 | - */ |
|
23 | - public function rules() |
|
24 | - { |
|
25 | - return [ |
|
26 | - // |
|
18 | + /** |
|
19 | + * Get the validation rules that apply to the request. |
|
20 | + * |
|
21 | + * @return array |
|
22 | + */ |
|
23 | + public function rules() |
|
24 | + { |
|
25 | + return [ |
|
26 | + // |
|
27 | 27 | 'title' =>'required', |
28 | 28 | 'email' =>'required', |
29 | 29 | 'phone' =>'required', |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | 'department' =>'required', |
33 | 33 | |
34 | 34 | |
35 | - ]; |
|
36 | - } |
|
35 | + ]; |
|
36 | + } |
|
37 | 37 | |
38 | 38 | } |
39 | 39 | \ No newline at end of file |
@@ -5,36 +5,36 @@ |
||
5 | 5 | |
6 | 6 | class CreateProductsRequest extends Request { |
7 | 7 | |
8 | - /** |
|
9 | - * Determine if the user is authorized to make this request. |
|
10 | - * |
|
11 | - * @return bool |
|
12 | - */ |
|
13 | - public function authorize() |
|
14 | - { |
|
15 | - return true; |
|
16 | - } |
|
8 | + /** |
|
9 | + * Determine if the user is authorized to make this request. |
|
10 | + * |
|
11 | + * @return bool |
|
12 | + */ |
|
13 | + public function authorize() |
|
14 | + { |
|
15 | + return true; |
|
16 | + } |
|
17 | 17 | |
18 | - /** |
|
19 | - * Get the validation rules that apply to the request. |
|
20 | - * |
|
21 | - * @return array |
|
22 | - */ |
|
23 | - public function rules() |
|
24 | - { |
|
25 | - return [ |
|
26 | - // |
|
18 | + /** |
|
19 | + * Get the validation rules that apply to the request. |
|
20 | + * |
|
21 | + * @return array |
|
22 | + */ |
|
23 | + public function rules() |
|
24 | + { |
|
25 | + return [ |
|
26 | + // |
|
27 | 27 | 'name' => 'required', |
28 | 28 | //'asset_type' => 'required', |
29 | 29 | 'manufacturer'=>'required', |
30 | 30 | 'Product_status'=>'required', |
31 | 31 | 'mode_procurement'=>'required', |
32 | - 'department_access'=>'required', |
|
33 | - 'description'=>'required', |
|
34 | - 'status'=>'required', |
|
32 | + 'department_access'=>'required', |
|
33 | + 'description'=>'required', |
|
34 | + 'status'=>'required', |
|
35 | 35 | |
36 | 36 | |
37 | - ]; |
|
38 | - } |
|
37 | + ]; |
|
38 | + } |
|
39 | 39 | |
40 | 40 | } |
41 | 41 | \ No newline at end of file |
@@ -23,10 +23,10 @@ discard block |
||
23 | 23 | public function rules() { |
24 | 24 | return [ |
25 | 25 | |
26 | - 'name' => 'required', |
|
27 | - 'description' => 'required', |
|
28 | - 'contract_type_id' => 'required', |
|
29 | - 'product_id' => 'required', |
|
26 | + 'name' => 'required', |
|
27 | + 'description' => 'required', |
|
28 | + 'contract_type_id' => 'required', |
|
29 | + 'product_id' => 'required', |
|
30 | 30 | |
31 | 31 | ]; |
32 | 32 | } |
@@ -34,18 +34,18 @@ discard block |
||
34 | 34 | public function messages() { |
35 | 35 | return [ |
36 | 36 | |
37 | - "name.required" => "Name Required", |
|
38 | - "description.required" => "Description Required", |
|
39 | - "cost.required" => "Cost Required", |
|
40 | - "contract_type_id.required" => "Contract Type Required", |
|
41 | - "approver_id.required" => "Approver Required", |
|
42 | - "vendor_id.required" => "Vendor Required", |
|
43 | - "license_type_id.required" => "License Type Required", |
|
44 | - "licensce_count.required" => "licensce Count Required", |
|
45 | - "notify_expiry.required" => "Notify Expiry Required", |
|
46 | - "product_id.required" => "Product Required", |
|
47 | - "contract_start_date.required" => "Contract Start Date Required", |
|
48 | - "contract_end_date.required" => "Contract End Date Required", |
|
37 | + "name.required" => "Name Required", |
|
38 | + "description.required" => "Description Required", |
|
39 | + "cost.required" => "Cost Required", |
|
40 | + "contract_type_id.required" => "Contract Type Required", |
|
41 | + "approver_id.required" => "Approver Required", |
|
42 | + "vendor_id.required" => "Vendor Required", |
|
43 | + "license_type_id.required" => "License Type Required", |
|
44 | + "licensce_count.required" => "licensce Count Required", |
|
45 | + "notify_expiry.required" => "Notify Expiry Required", |
|
46 | + "product_id.required" => "Product Required", |
|
47 | + "contract_start_date.required" => "Contract Start Date Required", |
|
48 | + "contract_end_date.required" => "Contract End Date Required", |
|
49 | 49 | ]; |
50 | 50 | } |
51 | 51 |
@@ -5,27 +5,27 @@ |
||
5 | 5 | |
6 | 6 | class CreateLicensetypesRequest extends Request { |
7 | 7 | |
8 | - /** |
|
9 | - * Determine if the user is authorized to make this request. |
|
10 | - * |
|
11 | - * @return bool |
|
12 | - */ |
|
13 | - public function authorize() |
|
14 | - { |
|
15 | - return true; |
|
16 | - } |
|
8 | + /** |
|
9 | + * Determine if the user is authorized to make this request. |
|
10 | + * |
|
11 | + * @return bool |
|
12 | + */ |
|
13 | + public function authorize() |
|
14 | + { |
|
15 | + return true; |
|
16 | + } |
|
17 | 17 | |
18 | - /** |
|
19 | - * Get the validation rules that apply to the request. |
|
20 | - * |
|
21 | - * @return array |
|
22 | - */ |
|
23 | - public function rules() |
|
24 | - { |
|
18 | + /** |
|
19 | + * Get the validation rules that apply to the request. |
|
20 | + * |
|
21 | + * @return array |
|
22 | + */ |
|
23 | + public function rules() |
|
24 | + { |
|
25 | 25 | $id = $this->segment(3); |
26 | - return [ |
|
26 | + return [ |
|
27 | 27 | 'name' =>'required|unique:sd_license_types,name,'.$id |
28 | - ]; |
|
29 | - } |
|
28 | + ]; |
|
29 | + } |
|
30 | 30 | |
31 | 31 | } |
32 | 32 | \ No newline at end of file |
@@ -23,7 +23,7 @@ |
||
23 | 23 | public function rules() { |
24 | 24 | return [ |
25 | 25 | |
26 | - 'name' => 'required', |
|
26 | + 'name' => 'required', |
|
27 | 27 | 'primary_contact' => 'required', |
28 | 28 | 'email' => 'required', |
29 | 29 | // 'description' => 'required', |
@@ -421,11 +421,11 @@ |
||
421 | 421 | $forms = new Form(); |
422 | 422 | $form = $forms->find($id); |
423 | 423 | if ($form) { |
424 | - $form->delete(); |
|
424 | + $form->delete(); |
|
425 | 425 | } |
426 | 426 | return redirect()->back()->with('success', "$form->title deleted successfully"); |
427 | 427 | } catch (Exception $ex) { |
428 | - return redirect()->back()->with('fails', $ex->getMessage()); |
|
428 | + return redirect()->back()->with('fails', $ex->getMessage()); |
|
429 | 429 | } |
430 | 430 | } |
431 | 431 |
@@ -149,9 +149,9 @@ |
||
149 | 149 | $changes = new SdChanges(); |
150 | 150 | $change = $changes->find($id); |
151 | 151 | if ($change) { |
152 | - $change->status_id = 6; |
|
153 | - $change->save(); |
|
154 | - return redirect()->back()->with('success','Updated'); |
|
152 | + $change->status_id = 6; |
|
153 | + $change->save(); |
|
154 | + return redirect()->back()->with('success','Updated'); |
|
155 | 155 | } else { |
156 | 156 | throw new \Exception('Sorry we can not find your request'); |
157 | 157 | } |
@@ -46,10 +46,10 @@ |
||
46 | 46 | } |
47 | 47 | |
48 | 48 | public function seed(){ |
49 | - try{ |
|
50 | - $controller = new ServiceDeskSeeder(); |
|
51 | - $controller->run(); |
|
52 | - return 1; |
|
49 | + try{ |
|
50 | + $controller = new ServiceDeskSeeder(); |
|
51 | + $controller->run(); |
|
52 | + return 1; |
|
53 | 53 | } catch (Exception $ex) { |
54 | 54 | dd($ex); |
55 | 55 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | return "<a href=" . url('service-desk/releases/' . $model->id . '/edit') . " class='btn btn-info btn-sm'>Edit</a> " |
34 | 34 | . $delete |
35 | 35 | . " <a href=" . url('service-desk/releases/' . $model->id . '/show') . " class='btn btn-primary btn-sm'>View</a>"; |
36 | - }) |
|
36 | + }) |
|
37 | 37 | ->searchColumns('subject','description') |
38 | 38 | ->orderColumns('subject', 'reason', 'impact', 'rollout_plan', 'backout_plan', 'status_id', 'priority_id', 'change_type_id', 'impact_id', 'location_id', 'approval_id') |
39 | 39 | ->make(); |