public function ticket_type() { $md = Masterdata::where('id', '=', $this->ticket_type_id)->get()->first(); if (!is_null($md)) { return $md->name; } }
public function viewStatus($id) { $name = Masterdata::where('id', '=', $id)->get()->first(); if (!is_null($name)) { return $name->name; } }
public static function getId($name, $type) { $id = Masterdata::where('name', '=', $name)->where('type', '=', $type)->first(); if (!is_null($id)) { return $id->id; } else { return null; } }
public function ticket($thread_id) { $data['ticket_type'] = Masterdata::where('type', '=', 'ticket_type')->get(); $data['team_type'] = Masterdata::where('type', '=', 'customer_activation_process')->get(); $data['complaints'] = Masterdata::where('type', '=', 'complaint')->get(); $data['list'] = MailSupport::where('thread_id', $thread_id)->orderBy('time', 'ASC')->get()->first(); $data['mails'] = MailSupport::where('thread_id', $thread_id)->orderBy('time', 'ASC')->get(); $data['team_list'] = Masterdata::where('type', '=', 'customer_activation_process')->get(); //return View::make('support.mailSupport.ticket', $data); return View::make('support.mailSupport.ticket1', $data); }
public function ticket_type() { $md = Masterdata::where('type', '=', 'customer_activation_process')->get(); return $md; }
public function statuslist() { $statuslist = Masterdata::where('type', '=', 'ticket_status')->get(); return $statuslist; }