/**
  * Get index page
  * @param type Department $department
  * @return type Response
  */
 public function index(Department $department)
 {
     try {
         $departments = $department->get();
         return view('themes.default1.admin.helpdesk.agent.departments.index', compact('departments'));
     } 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');
     }
 }
Ejemplo n.º 3
0
 /**
  * Show the form for editing the specified resource.
  * @param type int $id
  * @param type Department $department
  * @param type Help_topic $help
  * @param type Emails $email
  * @param type Priority $priority
  * @param type MailboxProtocol $mailbox_protocol
  * @return type Response
  */
 public function edit($id, Department $department, Help_topic $help, Emails $email, Ticket_Priority $priority, MailboxProtocol $mailbox_protocol)
 {
     try {
         $emails = $email->whereId($id)->first();
         $departments = $department->get();
         $helps = $help->get();
         $priority = $priority->get();
         $mailbox_protocols = $mailbox_protocol->get();
         return view('themes.default1.admin.helpdesk.emails.emails.edit', compact('mailbox_protocols', 'priority', 'departments', 'helps', 'emails'));
     } catch (Exception $e) {
         return view('404');
     }
 }
 /**
  * Show the form for editing the specified resource.
  * @param type int $id
  * @param type User $user
  * @param type Assign_team_agent $team_assign_agent
  * @param type Timezones $timezone
  * @param type Groups $group
  * @param type Department $department
  * @param type Teams $team
  * @return type Response
  */
 public function edit($id, User $user, Assign_team_agent $team_assign_agent, Timezones $timezone, Groups $group, Department $department, Teams $team)
 {
     try {
         $user = $user->whereId($id)->first();
         $team = $team->get();
         $teams1 = $team->lists('name', 'id');
         $timezones = $timezone->get();
         $groups = $group->get();
         $departments = $department->get();
         $table = $team_assign_agent->where('agent_id', $id)->first();
         $teams = $team->lists('id', 'name');
         $assign = $team_assign_agent->where('agent_id', $id)->lists('team_id');
         return view('themes.default1.admin.helpdesk.agent.agents.edit', compact('teams', 'assign', 'table', 'teams1', 'selectedTeams', 'user', 'timezones', 'groups', 'departments', 'team', 'exp', 'counted'));
     } catch (Exception $e) {
         return redirect('agents')->with('fail', 'No such file');
     }
 }
Ejemplo n.º 5
0
 /**
  * get the form for System setting page
  * @param type System $system
  * @param type Department $department
  * @param type Timezones $timezone
  * @param type Date_format $date
  * @param type Date_time_format $date_time
  * @param type Time_format $time
  * @param type Logs $log
  * @return type Response
  */
 public function getsystem(System $system, Department $department, Timezones $timezone, Date_format $date, Date_time_format $date_time, Time_format $time, Logs $log)
 {
     try {
         /* fetch the values of system from system table */
         $systems = $system->whereId('1')->first();
         /* Fetch the values from Department table */
         $departments = $department->get();
         /* Fetch the values from Timezones table */
         $timezones = $timezone->get();
         /* Direct to System Settings Page */
         return view('themes.default1.admin.helpdesk.settings.system', compact('systems', 'departments', 'timezones', 'time', 'date', 'date_time', 'log'));
     } catch (Exception $e) {
         return view('404');
     }
 }