/** * Display a listing of the resource. * @param type Sla_plan $sla * @return type Response */ public function index(Sla_plan $sla) { try { /* Declare a Variable $slas to store all Values From Sla_plan Table */ $slas = $sla->get(); /* Listing the values From Sla_plan Table */ return view('themes.default1.admin.helpdesk.manage.sla.index', compact('slas')); } catch (Exception $e) { return view('404'); } }
/** * Display a listing of the resource. * @param type Sla_plan $sla * @return type Response */ public function index(Sla_plan $sla) { try { /* Declare a Variable $slas to store all Values From Sla_plan Table */ $slas = $sla->get(); /* Listing the values From Sla_plan Table */ return view('themes.default1.admin.helpdesk.manage.sla.index', compact('slas')); } catch (Exception $e) { return redirect()->back()->with('fails', $e->errorInfo[2]); } }
/** * get the form for Ticket setting page * @param type Ticket $ticket * @param type Sla_plan $sla * @param type Help_topic $topic * @param type Priority $priority * @return type Response */ public function getticket(Ticket $ticket, Sla_plan $sla, Help_topic $topic, Ticket_Priority $priority) { try { /* fetch the values of ticket from ticket table */ $tickets = $ticket->whereId('1')->first(); /* Fetch the values from SLA Plan table */ $slas = $sla->get(); /* Fetch the values from Help_topic table */ $topics = $topic->get(); /* Direct to Ticket Settings Page */ return view('themes.default1.admin.helpdesk.settings.ticket', compact('tickets', 'slas', 'topics', 'priority')); } catch (Exception $e) { return view('404'); } }
/** * Show the form for editing the specified resource. * @param type $id * @param type Priority $priority * @param type Department $department * @param type Help_topic $topic * @param type Form_name $form * @param type Agents $agent * @param type Sla_plan $sla * @return type Response */ public function edit($id, Ticket_Priority $priority, Department $department, Help_topic $topic, Forms $form, Sla_plan $sla) { try { $agents = User::where('role', '=', 'agent')->get(); $departments = $department->get(); $topics = $topic->whereId($id)->first(); $forms = $form->get(); $slas = $sla->get(); $priority = $priority->get(); return view('themes.default1.admin.helpdesk.manage.helptopic.edit', compact('priority', 'departments', 'topics', 'forms', 'agents', 'slas')); } catch (Exception $e) { return view('404'); } }
/** * Show the form for editing the specified resource. * @param type int $id * @param type User $user * @param type Group_assign_department $group_assign_department * @param type Template $template * @param type Teams $team * @param type Department $department * @param type Sla_plan $sla * @param type Emails $email * @param type Groups $group * @return type Response */ public function edit($id, User $user, Group_assign_department $group_assign_department, Template $template, Teams $team, Department $department, Sla_plan $sla, Emails $email, Groups $group) { try { $slas = $sla->get(); $user = $user->where('role', 'agent')->get(); $emails = $email->get(); $templates = $template->get(); $departments = $department->whereId($id)->first(); $groups = $group->lists('id', 'name'); $assign = $group_assign_department->where('department_id', $id)->lists('group_id'); return view('themes.default1.admin.helpdesk.agent.departments.edit', compact('assign', 'team', 'templates', 'departments', 'slas', 'user', 'emails', 'groups')); } catch (Exception $e) { return view('404'); } }