@@ -11,14 +11,14 @@ discard block |
||
11 | 11 | if ($problem->getGeneralByIdentifier('root-cause')) { |
12 | 12 | $root = $problem->getGeneralByIdentifier('root-cause')->value; |
13 | 13 | |
14 | - $delete_root_url = url('service-desk/general/' . $owner . '/root-cause/delete'); |
|
14 | + $delete_root_url = url('service-desk/general/'.$owner.'/root-cause/delete'); |
|
15 | 15 | $popid = "root-cause$problem->id"; |
16 | 16 | $title = "Delete Root Cause"; |
17 | 17 | $delete_root_popup = \App\Itil\Controllers\UtilityController::deletePopUp($popid, $delete_root_url, $title, "fa fa-remove", " "); |
18 | 18 | } |
19 | 19 | if ($problem->getGeneralByIdentifier('symptoms')) { |
20 | 20 | $symptom = $problem->getGeneralByIdentifier('symptoms')->value; |
21 | - $delete_symptoms_url = url('service-desk/general/' . $owner . '/symptoms/delete'); |
|
21 | + $delete_symptoms_url = url('service-desk/general/'.$owner.'/symptoms/delete'); |
|
22 | 22 | $popid = "symptoms$problem->id"; |
23 | 23 | $title = "Delete symptoms"; |
24 | 24 | $delete_symptoms_popup = \App\Itil\Controllers\UtilityController::deletePopUp($popid, $delete_symptoms_url, $title, "fa fa-remove", " "); |
@@ -29,14 +29,14 @@ discard block |
||
29 | 29 | } |
30 | 30 | if ($problem->getGeneralByIdentifier('solution')) { |
31 | 31 | $solution = $problem->getGeneralByIdentifier('solution')->value; |
32 | - $delete_solution_url = url('service-desk/general/' . $owner . '/solution/delete'); |
|
32 | + $delete_solution_url = url('service-desk/general/'.$owner.'/solution/delete'); |
|
33 | 33 | $popid = "solution$problem->id"; |
34 | 34 | $title = "Delete solution"; |
35 | 35 | $delete_solution_popup = \App\Itil\Controllers\UtilityController::deletePopUp($popid, $delete_solution_url, $title, "fa fa-remove", " "); |
36 | 36 | } |
37 | 37 | if ($problem->getGeneralByIdentifier('impact')) { |
38 | 38 | $impact = $problem->getGeneralByIdentifier('impact')->value; |
39 | - $delete_impact_url = url('service-desk/general/' . $owner . '/impact/delete'); |
|
39 | + $delete_impact_url = url('service-desk/general/'.$owner.'/impact/delete'); |
|
40 | 40 | $popid = "impact$problem->id"; |
41 | 41 | $title = "Delete impact"; |
42 | 42 | $delete_impact_popup = \App\Itil\Controllers\UtilityController::deletePopUp($popid, $delete_impact_url, $title, "fa fa-remove", " "); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | @foreach($problem->generalAttachments('root-cause') as $attachment) |
85 | 85 | <?php |
86 | 86 | $deleteid = $attachment->id; |
87 | - $deleteurl = url('service-desk/delete/' . $attachment->id . '/' . $attachment->owner . '/attachment'); |
|
87 | + $deleteurl = url('service-desk/delete/'.$attachment->id.'/'.$attachment->owner.'/attachment'); |
|
88 | 88 | ?> |
89 | 89 | @include('itil::interface.agent.popup.delete') |
90 | 90 | <div class="col-md-3"> |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | @foreach($problem->generalAttachments('impact') as $attachment) |
150 | 150 | <?php |
151 | 151 | $deleteid = $attachment->id; |
152 | - $deleteurl = url('service-desk/delete/' . $attachment->id . '/' . $attachment->owner . '/attachment'); |
|
152 | + $deleteurl = url('service-desk/delete/'.$attachment->id.'/'.$attachment->owner.'/attachment'); |
|
153 | 153 | ?> |
154 | 154 | @include('itil::interface.agent.popup.delete') |
155 | 155 | <div class="col-md-3"> |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | @foreach($problem->generalAttachments('symptom') as $attachment) |
213 | 213 | <?php |
214 | 214 | $deleteid = $attachment->id; |
215 | - $deleteurl = url('service-desk/delete/' . $attachment->id . '/' . $attachment->owner . '/attachment'); |
|
215 | + $deleteurl = url('service-desk/delete/'.$attachment->id.'/'.$attachment->owner.'/attachment'); |
|
216 | 216 | ?> |
217 | 217 | @include('itil::interface.agent.popup.delete') |
218 | 218 | <div class="col-md-3"> |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | @foreach($problem->generalAttachments('solution') as $attachment) |
282 | 282 | <?php |
283 | 283 | $deleteid = $attachment->id; |
284 | - $deleteurl = url('service-desk/delete/' . $attachment->id . '/' . $attachment->owner . '/attachment'); |
|
284 | + $deleteurl = url('service-desk/delete/'.$attachment->id.'/'.$attachment->owner.'/attachment'); |
|
285 | 285 | ?> |
286 | 286 | @include('itil::interface.agent.popup.delete') |
287 | 287 | <div class="col-md-3"> |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | @foreach($problem->attachments() as $attachment) |
347 | 347 | <?php |
348 | 348 | $deleteid = $attachment->id; |
349 | - $deleteurl = url('service-desk/delete/' . $attachment->id . '/' . $attachment->owner . '/attachment'); |
|
349 | + $deleteurl = url('service-desk/delete/'.$attachment->id.'/'.$attachment->owner.'/attachment'); |
|
350 | 350 | ?> |
351 | 351 | @include('itil::interface.agent.popup.delete') |
352 | 352 | <div class="col-md-3"> |
@@ -32,7 +32,7 @@ |
||
32 | 32 | <td>{{str_limit($ticket->title,20)}}</td> |
33 | 33 | <td><a href="{{url('thread/'.$ticket->id)}}" class="btn btn-info">View</a></td> |
34 | 34 | </tr> |
35 | - <?php $i++;?> |
|
35 | + <?php $i++; ?> |
|
36 | 36 | @empty |
37 | 37 | <tr><td>No Tickets Associated</td></tr> |
38 | 38 | @endforelse |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | //$info = $problem->general(); |
3 | -$title =""; |
|
3 | +$title = ""; |
|
4 | 4 | $solution = ""; |
5 | 5 | if ($problem->getGeneralByIdentifier('solution-title')) { |
6 | 6 | $title = $problem->getGeneralByIdentifier('solution-title')->value; |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | //$info = $problem->general(); |
3 | -$root =""; |
|
3 | +$root = ""; |
|
4 | 4 | if ($problem->getGeneralByIdentifier('root-cause')) { |
5 | 5 | $root = $problem->getGeneralByIdentifier('root-cause')->value; |
6 | 6 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | //$info = $problem->general(); |
3 | -$symptom =""; |
|
3 | +$symptom = ""; |
|
4 | 4 | if ($problem->getGeneralByIdentifier('symptoms')) { |
5 | 5 | $symptom = $problem->getGeneralByIdentifier('symptoms')->value; |
6 | 6 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | //$info = $problem->general(); |
3 | -$impact =""; |
|
3 | +$impact = ""; |
|
4 | 4 | if ($problem->getGeneralByIdentifier('impact')) { |
5 | 5 | $impact = $problem->getGeneralByIdentifier('impact')->value; |
6 | 6 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | public function rules() { |
24 | 24 | $id = $this->segment(3); |
25 | 25 | return [ |
26 | - 'name' => 'required|max:15|unique:sd_location_categories,name,' . $id |
|
26 | + 'name' => 'required|max:15|unique:sd_location_categories,name,'.$id |
|
27 | 27 | ]; |
28 | 28 | } |
29 | 29 |
@@ -57,11 +57,11 @@ discard block |
||
57 | 57 | return $ticket_status_name; |
58 | 58 | }) |
59 | 59 | ->addColumn('Action', function($model) { |
60 | - $url = url('service-desk/problem/' . $model->id . '/delete'); |
|
60 | + $url = url('service-desk/problem/'.$model->id.'/delete'); |
|
61 | 61 | $delete = \App\Itil\Controllers\UtilityController::deletePopUp($model->id, $url, "Delete $model->subject"); |
62 | - return "<a href=" . url('service-desk/problem/' . $model->id . '/edit') . " class='btn btn-info btn-sm'>Edit</a> " |
|
62 | + return "<a href=".url('service-desk/problem/'.$model->id.'/edit')." class='btn btn-info btn-sm'>Edit</a> " |
|
63 | 63 | . $delete |
64 | - . " <a href=" . url('service-desk/problem/' . $model->id . '/show') . " class='btn btn-primary btn-sm'>View</a>"; |
|
64 | + . " <a href=".url('service-desk/problem/'.$model->id.'/show')." class='btn btn-primary btn-sm'>View</a>"; |
|
65 | 65 | }) |
66 | 66 | ->searchColumns('description') |
67 | 67 | ->orderColumns('department', 'ticket_type', 'priority_id', 'location_type_id', 'agent_id') |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | public function marbleHtml($ticketid, $problemid, $subject, $content) { |
252 | 252 | $subject_trim = str_limit($subject, 20); |
253 | 253 | $content_trim = str_limit($content, 20); |
254 | - $url = url('service-desk/problem/detach/' . $ticketid . '/' . $problemid); |
|
254 | + $url = url('service-desk/problem/detach/'.$ticketid.'/'.$problemid); |
|
255 | 255 | $detach_popup = \App\Itil\Controllers\UtilityController::deletePopUp($problemid, $url, "Delete", " ", "Delete", true); |
256 | 256 | return "<div class='box box-primary'>" |
257 | 257 | . "<div class='box-header'>" |
@@ -261,10 +261,10 @@ discard block |
||
261 | 261 | . "<div class='col-md-12'>" |
262 | 262 | . "<table class='table'>" |
263 | 263 | . "<tr>" |
264 | - . "<th>" . ucfirst($subject_trim) . "</th>" |
|
265 | - . "<th>" . ucfirst($content_trim) . "</th>" |
|
266 | - . "<th>" . $detach_popup |
|
267 | - . " | <a href=" . url('service-desk/problem/' . $problemid . '/show') . ">View</a></th>" |
|
264 | + . "<th>".ucfirst($subject_trim)."</th>" |
|
265 | + . "<th>".ucfirst($content_trim)."</th>" |
|
266 | + . "<th>".$detach_popup |
|
267 | + . " | <a href=".url('service-desk/problem/'.$problemid.'/show').">View</a></th>" |
|
268 | 268 | . "</table>" |
269 | 269 | . "</div>" |
270 | 270 | . "</div>" |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | $changes = $change->select('id', 'subject')->get(); |
319 | 319 | return \Datatable::Collection($changes) |
320 | 320 | ->addColumn('id', function($model) { |
321 | - return "<input type='radio' name='change' value='" . $model->id . "'>"; |
|
321 | + return "<input type='radio' name='change' value='".$model->id."'>"; |
|
322 | 322 | }) |
323 | 323 | ->addColumn('subject', function($model) { |
324 | 324 | return str_limit($model->subject, 20); |
@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | use App\Http\Controllers\Controller; |
5 | 5 | |
6 | -class BaseServiceDeskController extends Controller{ |
|
6 | +class BaseServiceDeskController extends Controller { |
|
7 | 7 | |
8 | 8 | public function __construct() { |
9 | 9 | \Event::fire('service.desk.activate', array()); |