diff --git a/app/Api/v1/ApiController.php b/app/Api/v1/ApiController.php index a07db822e..2408d5e58 100644 --- a/app/Api/v1/ApiController.php +++ b/app/Api/v1/ApiController.php @@ -989,6 +989,7 @@ class ApiController extends Controller ->distinct() ->paginate(10) ->toArray(); + return response($inbox); } catch (\Exception $ex) { $error = $ex->getMessage(); diff --git a/app/Http/ViewComposers/AgentLayout.php b/app/Http/ViewComposers/AgentLayout.php index 764c75439..41eacc42b 100644 --- a/app/Http/ViewComposers/AgentLayout.php +++ b/app/Http/ViewComposers/AgentLayout.php @@ -50,16 +50,16 @@ class AgentLayout { $notifications = \App\Http\Controllers\Common\NotificationController::getNotifications(); $view->with([ - 'company' => $this->company, - 'notifications' => $notifications, - 'myticket' => $this->myTicket(), - 'unassigned' => $this->unassigned(), - 'followup_ticket' => $this->followupTicket(), - 'deleted' => $this->deleted(), - 'tickets' => $this->inbox(), - 'department' => $this->departments(), - 'overdues' => $this->overdues(), - 'due_today' => $this->getDueToday(), + 'company' => $this->company, + 'notifications' => $notifications, + 'myticket' => $this->myTicket(), + 'unassigned' => $this->unassigned(), + 'followup_ticket' => $this->followupTicket(), + 'deleted' => $this->deleted(), + 'tickets' => $this->inbox(), + 'department' => $this->departments(), + 'overdues' => $this->overdues(), + 'due_today' => $this->getDueToday(), 'is_mail_conigured' => $this->getEmailConfig(), ]); } @@ -201,7 +201,7 @@ class AgentLayout /** * @category function to check configured mails * - * @var $emails + * @var * * @return bool true/false */