@@ -54,8 +54,6 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * Create a new authentication controller instance. |
56 | 56 | * |
57 | - * @param \Illuminate\Contracts\Auth\Guard $auth |
|
58 | - * @param \Illuminate\Contracts\Auth\Registrar $registrar |
|
59 | 57 | * |
60 | 58 | * @return void |
61 | 59 | */ |
@@ -146,7 +144,7 @@ discard block |
||
146 | 144 | * @param type User $user |
147 | 145 | * @param type RegisterRequest $request |
148 | 146 | * |
149 | - * @return type Response |
|
147 | + * @return \Illuminate\Http\RedirectResponse Response |
|
150 | 148 | */ |
151 | 149 | public function postRegister(User $user, RegisterRequest $request) |
152 | 150 | { |
@@ -217,7 +215,7 @@ discard block |
||
217 | 215 | * |
218 | 216 | * @param type $token |
219 | 217 | * |
220 | - * @return type redirect |
|
218 | + * @return \Illuminate\Http\RedirectResponse redirect |
|
221 | 219 | */ |
222 | 220 | public function accountActivate($token) |
223 | 221 | { |
@@ -240,7 +238,7 @@ discard block |
||
240 | 238 | * @param type $token |
241 | 239 | * @param type User $user |
242 | 240 | * |
243 | - * @return type Response |
|
241 | + * @return \Illuminate\Http\RedirectResponse Response |
|
244 | 242 | */ |
245 | 243 | public function getMail($token, User $user) |
246 | 244 | { |
@@ -283,7 +281,7 @@ discard block |
||
283 | 281 | * |
284 | 282 | * @param type LoginRequest $request |
285 | 283 | * |
286 | - * @return type Response |
|
284 | + * @return \Illuminate\Http\RedirectResponse Response |
|
287 | 285 | */ |
288 | 286 | public function postLogin(LoginRequest $request) |
289 | 287 | { |
@@ -462,7 +460,7 @@ discard block |
||
462 | 460 | * |
463 | 461 | * @param type IPaddress $value |
464 | 462 | * |
465 | - * @return type Response |
|
463 | + * @return integer Response |
|
466 | 464 | */ |
467 | 465 | public function confirmIPAddress($value, $field) |
468 | 466 | { |
@@ -521,7 +519,7 @@ discard block |
||
521 | 519 | * |
522 | 520 | *@param $request |
523 | 521 | * |
524 | - *@return int|string |
|
522 | + *@return \Illuminate\Http\RedirectResponse |
|
525 | 523 | */ |
526 | 524 | public function verifyOTP(LoginRequest $request) |
527 | 525 | { |
@@ -625,6 +623,9 @@ discard block |
||
625 | 623 | \Config::set("services.$provider.redirect", $url); |
626 | 624 | } |
627 | 625 | |
626 | + /** |
|
627 | + * @param string $redirect |
|
628 | + */ |
|
628 | 629 | public function setSession($provider, $redirect) |
629 | 630 | { |
630 | 631 | $url = url($redirect); |
@@ -23,7 +23,6 @@ |
||
23 | 23 | use DB; |
24 | 24 | use Hash; |
25 | 25 | use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers; |
26 | -use Input; |
|
27 | 26 | use Lang; |
28 | 27 | use Socialite; |
29 | 28 |
@@ -316,7 +316,7 @@ |
||
316 | 316 | 'email' => $this->getFailedLoginMessage(), |
317 | 317 | 'password' => $this->getFailedLoginMessage(), |
318 | 318 | ])->with(['error' => Lang::get('lang.not-registered'), |
319 | - 'referer' => $referer, ]); |
|
319 | + 'referer' => $referer, ]); |
|
320 | 320 | } |
321 | 321 | |
322 | 322 | //if user exists |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * Display the form to request a password reset link. |
48 | 48 | * |
49 | - * @return Response |
|
49 | + * @return \Illuminate\Http\RedirectResponse |
|
50 | 50 | */ |
51 | 51 | public function postEmail(Request $request) |
52 | 52 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * |
97 | 97 | * @param \Illuminate\Http\Request $request |
98 | 98 | * |
99 | - * @return \Illuminate\Http\Response |
|
99 | + * @return \Illuminate\Http\RedirectResponse |
|
100 | 100 | */ |
101 | 101 | public function reset(Request $request) |
102 | 102 | { |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $this->getResetValidationCustomAttributes() |
108 | 108 | ); |
109 | 109 | $credentials = $this->getResetCredentials($request); |
110 | - // dd($credentials); |
|
110 | + // dd($credentials); |
|
111 | 111 | $email = $credentials['email']; |
112 | 112 | $password = $credentials['password']; |
113 | 113 | $token = $credentials['token']; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * @param type User $user |
163 | 163 | * @param type Sys_userRequest $request |
164 | 164 | * |
165 | - * @return type Response |
|
165 | + * @return \Illuminate\Http\RedirectResponse Response |
|
166 | 166 | */ |
167 | 167 | public function store(User $user, Sys_userRequest $request) |
168 | 168 | { |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * @param type User $user |
238 | 238 | * @param type Sys_userUpdate $request |
239 | 239 | * |
240 | - * @return type Response |
|
240 | + * @return \Illuminate\Http\RedirectResponse Response |
|
241 | 241 | */ |
242 | 242 | public function update($id, User $user, Sys_userUpdate $request) |
243 | 243 | { |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | * @param type int $id |
318 | 318 | * @param type ProfileRequest $request |
319 | 319 | * |
320 | - * @return type Response |
|
320 | + * @return \Illuminate\Http\RedirectResponse|null Response |
|
321 | 321 | */ |
322 | 322 | public function postProfileedit(ProfileRequest $request) |
323 | 323 | { |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | * @param type int $id |
360 | 360 | * @param type ProfilePassword $request |
361 | 361 | * |
362 | - * @return type Response |
|
362 | + * @return \Illuminate\Http\RedirectResponse Response |
|
363 | 363 | */ |
364 | 364 | public function postProfilePassword($id, ProfilePassword $request) |
365 | 365 | { |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | * |
381 | 381 | * @param type $id |
382 | 382 | * |
383 | - * @return type boolean |
|
383 | + * @return integer boolean |
|
384 | 384 | */ |
385 | 385 | public function UserAssignOrg($id) |
386 | 386 | { |
@@ -81,15 +81,15 @@ discard block |
||
81 | 81 | return \Datatable::collection(User::where('role', '!=', 'admin')->where('role', '!=', 'agent')->get()) |
82 | 82 | ->searchColumns('user_name') |
83 | 83 | ->orderColumns('user_name', 'email') |
84 | - ->addColumn('user_name', function ($model) { |
|
84 | + ->addColumn('user_name', function($model) { |
|
85 | 85 | return $model->user_name; |
86 | 86 | }) |
87 | - ->addColumn('email', function ($model) { |
|
87 | + ->addColumn('email', function($model) { |
|
88 | 88 | $email = $model->email; |
89 | 89 | |
90 | 90 | return $email; |
91 | 91 | }) |
92 | - ->addColumn('phone', function ($model) { |
|
92 | + ->addColumn('phone', function($model) { |
|
93 | 93 | $phone = ''; |
94 | 94 | if ($model->phone_number) { |
95 | 95 | $phone = $model->ext.' '.$model->phone_number; |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | return $phone; |
104 | 104 | }) |
105 | - ->addColumn('status', function ($model) { |
|
105 | + ->addColumn('status', function($model) { |
|
106 | 106 | $status = $model->active; |
107 | 107 | if ($status == 1) { |
108 | 108 | $stat = '<button class="btn btn-success btn-xs">Active</button>'; |
@@ -112,12 +112,12 @@ discard block |
||
112 | 112 | |
113 | 113 | return $stat; |
114 | 114 | }) |
115 | - ->addColumn('lastlogin', function ($model) { |
|
115 | + ->addColumn('lastlogin', function($model) { |
|
116 | 116 | $t = $model->updated_at; |
117 | 117 | |
118 | 118 | return TicketController::usertimezone($t); |
119 | 119 | }) |
120 | - ->addColumn('Actions', function ($model) { |
|
120 | + ->addColumn('Actions', function($model) { |
|
121 | 121 | //return '<a href=article/delete/ ' . $model->id . ' class="btn btn-danger btn-flat" onclick="myFunction()">Delete</a> <a href=article/' . $model->id . '/edit class="btn btn-warning btn-flat">Edit</a> <a href=show/' . $model->id . ' class="btn btn-warning btn-flat">View</a>'; |
122 | 122 | //return '<form action="article/delete/ ' . $model->id . '" method="post" onclick="alert()"><button type="sumbit" value="Delete"></button></form><a href=article/' . $model->id . '/edit class="btn btn-warning btn-flat">Edit</a> <a href=show/' . $model->id . ' class="btn btn-warning btn-flat">View</a>'; |
123 | 123 | return '<span data-toggle="modal" data-target="#deletearticle'.$model->id.'"><a href="#" ><button class="btn btn-danger btn-xs"></a> '.\Lang::get('lang.delete').' </button></span> <a href="'.route('user.edit', $model->id).'" class="btn btn-warning btn-xs">'.\Lang::get('lang.edit').'</a> <a href="'.route('user.show', $model->id).'" class="btn btn-primary btn-xs">'.\Lang::get('lang.view').'</a> |
@@ -52,9 +52,8 @@ |
||
52 | 52 | /** |
53 | 53 | * reply. |
54 | 54 | * |
55 | - * @param type $value |
|
56 | 55 | * |
57 | - * @return type view |
|
56 | + * @return \Illuminate\Http\RedirectResponse view |
|
58 | 57 | */ |
59 | 58 | public function reply($id, Request $request) |
60 | 59 | { |
@@ -10,10 +10,8 @@ |
||
10 | 10 | // models |
11 | 11 | use App\Model\helpdesk\Ticket\Tickets; |
12 | 12 | use App\User; |
13 | -use Auth; |
|
14 | 13 | // classes |
15 | 14 | use Illuminate\Http\Request; |
16 | -use Input; |
|
17 | 15 | use Lang; |
18 | 16 | |
19 | 17 | /** |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $this->TicketWorkflowController = $TicketWorkflowController; |
34 | 34 | // $this->middleware('auth'); |
35 | 35 | // $this->middleware('role.user'); |
36 | - $this->middleware('board'); |
|
36 | + $this->middleware('board'); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -251,9 +251,8 @@ |
||
251 | 251 | /** |
252 | 252 | * reply. |
253 | 253 | * |
254 | - * @param type $value |
|
255 | 254 | * |
256 | - * @return type view |
|
255 | + * @return \Illuminate\Http\RedirectResponse view |
|
257 | 256 | */ |
258 | 257 | public function post_ticket_reply($id, Request $request) { |
259 | 258 | try { |
@@ -7,7 +7,6 @@ discard block |
||
7 | 7 | use App\Http\Controllers\Controller; |
8 | 8 | // requests |
9 | 9 | use App\Http\Requests\helpdesk\ClientRequest; |
10 | -use App\Model\helpdesk\Agent\Department; |
|
11 | 10 | // models |
12 | 11 | use App\Model\helpdesk\Form\Fields; |
13 | 12 | use App\Model\helpdesk\Manage\Help_topic; |
@@ -26,7 +25,6 @@ discard block |
||
26 | 25 | use Form; |
27 | 26 | use GeoIP; |
28 | 27 | use Illuminate\Http\Request; |
29 | -use Input; |
|
30 | 28 | use Lang; |
31 | 29 | use Redirect; |
32 | 30 |
@@ -104,29 +104,29 @@ discard block |
||
104 | 104 | $form_fields = explode(',', $form_data->value); |
105 | 105 | $var = ''; |
106 | 106 | foreach ($form_fields as $form_field) { |
107 | - $var .= '<option value="' . $form_field . '">' . $form_field . '</option>'; |
|
107 | + $var .= '<option value="'.$form_field.'">'.$form_field.'</option>'; |
|
108 | 108 | } |
109 | - echo '<br/><label>' . ucfirst($form_data->label) . '</label><select class="form-control" name="' . $form_data->name . '">' . $var . '</select>'; |
|
109 | + echo '<br/><label>'.ucfirst($form_data->label).'</label><select class="form-control" name="'.$form_data->name.'">'.$var.'</select>'; |
|
110 | 110 | } elseif ($form_data->type == 'radio') { |
111 | 111 | $type2 = $form_data->value; |
112 | 112 | $vals = explode(',', $type2); |
113 | - echo '<br/><label>' . ucfirst($form_data->label) . '</label><br/>'; |
|
113 | + echo '<br/><label>'.ucfirst($form_data->label).'</label><br/>'; |
|
114 | 114 | foreach ($vals as $val) { |
115 | - echo '<input type="' . $form_data->type . '" name="' . $form_data->name . '"> ' . $form_data->value . ' '; |
|
115 | + echo '<input type="'.$form_data->type.'" name="'.$form_data->name.'"> '.$form_data->value.' '; |
|
116 | 116 | } |
117 | 117 | echo '<br/>'; |
118 | 118 | } elseif ($form_data->type == 'textarea') { |
119 | 119 | $type3 = $form_data->value; |
120 | - echo '<br/><label>' . $form_data->label . '</label></br><textarea id="unique-textarea" name="' . $form_data->name . '" class="form-control" style="height:15%;"></textarea>'; |
|
120 | + echo '<br/><label>'.$form_data->label.'</label></br><textarea id="unique-textarea" name="'.$form_data->name.'" class="form-control" style="height:15%;"></textarea>'; |
|
121 | 121 | } elseif ($form_data->type == 'checkbox') { |
122 | 122 | $type4 = $form_data->value; |
123 | 123 | $checks = explode(',', $type4); |
124 | - echo '<br/><label>' . ucfirst($form_data->label) . '</label><br/>'; |
|
124 | + echo '<br/><label>'.ucfirst($form_data->label).'</label><br/>'; |
|
125 | 125 | foreach ($checks as $check) { |
126 | - echo '<input type="' . $form_data->type . '" name="' . $form_data->name . '">  ' . $check; |
|
126 | + echo '<input type="'.$form_data->type.'" name="'.$form_data->name.'">  '.$check; |
|
127 | 127 | } |
128 | 128 | } else { |
129 | - echo '<br/><label>' . ucfirst($form_data->label) . '</label><input type="' . $form_data->type . '" class="form-control" name="' . $form_data->name . '" />'; |
|
129 | + echo '<br/><label>'.ucfirst($form_data->label).'</label><input type="'.$form_data->type.'" class="form-control" name="'.$form_data->name.'" />'; |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 | echo '<br/><br/>'; |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | } |
239 | 239 | } |
240 | 240 | // dd($result); |
241 | - return Redirect::back()->with('success', Lang::get('lang.Ticket-has-been-created-successfully-your-ticket-number-is') . ' ' . $result[0] . '. ' . Lang::get('lang.Please-save-this-for-future-reference')); |
|
241 | + return Redirect::back()->with('success', Lang::get('lang.Ticket-has-been-created-successfully-your-ticket-number-is').' '.$result[0].'. '.Lang::get('lang.Please-save-this-for-future-reference')); |
|
242 | 242 | } else { |
243 | 243 | return Redirect::back()->withInput($request->except('password'))->with('fails', Lang::get('lang.failed-to-create-user-tcket-as-mobile-has-been-taken')); |
244 | 244 | } |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | $tickets = Tickets::where('id', '=', $id)->first(); |
262 | 262 | $thread = Ticket_Thread::where('ticket_id', '=', $tickets->id)->first(); |
263 | 263 | |
264 | - $subject = $thread->title . '[#' . $tickets->ticket_number . ']'; |
|
264 | + $subject = $thread->title.'[#'.$tickets->ticket_number.']'; |
|
265 | 265 | $body = $request->input('comment'); |
266 | 266 | |
267 | 267 | $user_cred = User::where('id', '=', $tickets->user_id)->first(); |
@@ -73,7 +73,6 @@ discard block |
||
73 | 73 | /** |
74 | 74 | * Save profile data. |
75 | 75 | * |
76 | - * @param type $id |
|
77 | 76 | * @param type ProfileRequest $request |
78 | 77 | * |
79 | 78 | * @return type Response |
@@ -226,10 +225,9 @@ discard block |
||
226 | 225 | /** |
227 | 226 | * Post porfile password. |
228 | 227 | * |
229 | - * @param type $id |
|
230 | 228 | * @param type ProfilePassword $request |
231 | 229 | * |
232 | - * @return type Response |
|
230 | + * @return \Illuminate\Http\RedirectResponse Response |
|
233 | 231 | */ |
234 | 232 | public function postProfilePassword(ProfilePassword $request) |
235 | 233 | { |
@@ -255,7 +253,7 @@ discard block |
||
255 | 253 | * @param type Ticket_Thread $thread |
256 | 254 | * @param type TicketRequest $request |
257 | 255 | * |
258 | - * @return type Response |
|
256 | + * @return \Illuminate\Http\RedirectResponse Response |
|
259 | 257 | */ |
260 | 258 | public function reply(Ticket_Thread $thread, TicketRequest $request) |
261 | 259 | { |
@@ -293,7 +291,7 @@ discard block |
||
293 | 291 | * @param type Tickets $ticket |
294 | 292 | * @param type Ticket_Thread $thread |
295 | 293 | * |
296 | - * @return type Response |
|
294 | + * @return \Illuminate\Http\RedirectResponse Response |
|
297 | 295 | */ |
298 | 296 | public function PostCheckTicket(Request $request) |
299 | 297 | { |
@@ -485,6 +483,9 @@ discard block |
||
485 | 483 | \Session::forget($provider.'redirect'); |
486 | 484 | } |
487 | 485 | |
486 | + /** |
|
487 | + * @param string $key |
|
488 | + */ |
|
488 | 489 | public function checkArray($key, $array) |
489 | 490 | { |
490 | 491 | $value = ''; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * @param type Tickets $ticket |
48 | 48 | * @param type Ticket_Thread $thread |
49 | 49 | * |
50 | - * @return type Response |
|
50 | + * @return \Illuminate\Http\RedirectResponse Response |
|
51 | 51 | */ |
52 | 52 | public function PostCheckTicket(Request $request) |
53 | 53 | { |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * generate random string token for ticket. |
117 | 117 | * |
118 | - * @param type $length |
|
118 | + * @param integer $length |
|
119 | 119 | * |
120 | 120 | * @return string |
121 | 121 | */ |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | /** |
165 | 165 | * Store ratings of the user. |
166 | 166 | * |
167 | - * @return type Redirect |
|
167 | + * @return \Illuminate\Http\RedirectResponse Redirect |
|
168 | 168 | */ |
169 | 169 | public function rating($id, Request $request, \App\Model\helpdesk\Ratings\RatingRef $rating_ref) |
170 | 170 | { |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | /** |
200 | 200 | * Store Client rating about reply of agent quality. |
201 | 201 | * |
202 | - * @return type Redirect |
|
202 | + * @return \Illuminate\Http\RedirectResponse Redirect |
|
203 | 203 | */ |
204 | 204 | public function ratingReply($id, Request $request, \App\Model\helpdesk\Ratings\RatingRef $rating_ref) |
205 | 205 | { |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | * |
324 | 324 | *@param string $lang //desired language's iso code |
325 | 325 | * |
326 | - *@return response |
|
326 | + *@return boolean |
|
327 | 327 | */ |
328 | 328 | public static function changeLanguage($lang) |
329 | 329 | { |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use Hash; |
19 | 19 | // classes |
20 | 20 | use Illuminate\Http\Request; |
21 | -use Input; |
|
22 | 21 | use Lang; |
23 | 22 | |
24 | 23 | /** |
@@ -348,11 +348,11 @@ discard block |
||
348 | 348 | } |
349 | 349 | |
350 | 350 | // Follow up tickets |
351 | - public function followup() |
|
352 | - { |
|
353 | - $followup = Followup::whereId('1')->first(); |
|
354 | - $condition = $followup->condition; |
|
355 | - // dd($condition); |
|
351 | + public function followup() |
|
352 | + { |
|
353 | + $followup = Followup::whereId('1')->first(); |
|
354 | + $condition = $followup->condition; |
|
355 | + // dd($condition); |
|
356 | 356 | |
357 | 357 | switch ($condition) { |
358 | 358 | case 'everyMinute': |
@@ -384,12 +384,12 @@ discard block |
||
384 | 384 | break; |
385 | 385 | } |
386 | 386 | |
387 | - if ($followup->status = 1) { |
|
388 | - $tickets = Tickets::where('id', '>=', 1)->where('status', '!=', 5)->get(); |
|
387 | + if ($followup->status = 1) { |
|
388 | + $tickets = Tickets::where('id', '>=', 1)->where('status', '!=', 5)->get(); |
|
389 | 389 | // dd( $tickets); |
390 | - // $tickets=Tickets::where('id', '>=', 1)->where('status', '!=', 5)->pluck('id'); |
|
390 | + // $tickets=Tickets::where('id', '>=', 1)->where('status', '!=', 5)->pluck('id'); |
|
391 | 391 | // dd( $tickets); |
392 | - // $id=1; |
|
392 | + // $id=1; |
|
393 | 393 | foreach ($tickets as $ticket) { |
394 | 394 | // $id=1; |
395 | 395 | // $id++; |
@@ -404,14 +404,14 @@ discard block |
||
404 | 404 | if ($current_time > $ck) { |
405 | 405 | $ticket->follow_up = 1; |
406 | 406 | $ticket->save(); |
407 | - // Tickets::where('id', '=',$id) |
|
408 | - // ->update(['follow_up' => 1]); |
|
407 | + // Tickets::where('id', '=',$id) |
|
408 | + // ->update(['follow_up' => 1]); |
|
409 | 409 | |
410 | 410 | // } |
411 | 411 | } |
412 | 412 | // if($id=2) |
413 | 413 | // {dd($ticket);} |
414 | 414 | } |
415 | - } |
|
416 | - } |
|
415 | + } |
|
416 | + } |
|
417 | 417 | } |
@@ -332,7 +332,7 @@ |
||
332 | 332 | // return Cache::get('language'); |
333 | 333 | //} else return 'false'; |
334 | 334 | // Cache::put('language',$) |
335 | - $path = base_path('resources/lang'); // Path to check available language packages |
|
335 | + $path = base_path('resources/lang'); // Path to check available language packages |
|
336 | 336 | if (array_key_exists($lang, \Config::get('languages')) && in_array($lang, scandir($path))) { |
337 | 337 | // dd(array_key_exists($lang, Config::get('languages'))); |
338 | 338 | // app()->setLocale($lang); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | /** |
186 | 186 | * send message to the mail adderess that define in the system. |
187 | 187 | * |
188 | - * @return response |
|
188 | + * @return \Illuminate\Http\RedirectResponse |
|
189 | 189 | */ |
190 | 190 | public function postContact(ContactRequest $request, Contact $contact) |
191 | 191 | { |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | * @param type Comment $comment |
229 | 229 | * @param type Id $id |
230 | 230 | * |
231 | - * @return type response |
|
231 | + * @return \Illuminate\Http\RedirectResponse response |
|
232 | 232 | */ |
233 | 233 | public function postComment($slug, Article $article, CommentRequest $request, Comment $comment) |
234 | 234 | { |
@@ -205,7 +205,7 @@ |
||
205 | 205 | $details = $request->input('message'); |
206 | 206 | //echo $message; |
207 | 207 | //echo $contact->email; |
208 | - $mail = Mail::send('themes.default1.client.kb.article-list.contact-details', ['name' => $name, 'email' => $email, 'subject' => $subject, 'details' => $details], function ($message) use ($contact) { |
|
208 | + $mail = Mail::send('themes.default1.client.kb.article-list.contact-details', ['name' => $name, 'email' => $email, 'subject' => $subject, 'details' => $details], function($message) use ($contact) { |
|
209 | 209 | $message->to($contact->email, $contact->name)->subject('Contact'); |
210 | 210 | }); |
211 | 211 | if ($mail) { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use App\Http\Controllers\Controller; |
6 | 6 | use App\Model\Api\ApiSetting; |
7 | -use App\Model\helpdesk\Ticket\Ticket_Thread; |
|
8 | 7 | use App\Model\helpdesk\Ticket\Tickets; |
9 | 8 | use DB; |
10 | 9 | use Exception; |
@@ -80,7 +80,7 @@ |
||
80 | 80 | $ticket = new Tickets(); |
81 | 81 | $ticketid = $detail->ticket_id; |
82 | 82 | $data = $ticket |
83 | - ->join('ticket_thread', function ($join) use ($ticketid) { |
|
83 | + ->join('ticket_thread', function($join) use ($ticketid) { |
|
84 | 84 | $join->on('tickets.id', '=', 'ticket_thread.ticket_id') |
85 | 85 | ->where('ticket_thread.ticket_id', '=', $ticketid); |
86 | 86 | }) |