/** * Returns the dashboard with new calls and open enquiries * * @return $this */ public function index() { $data = DataIn::all(); $openEnquiry = OpenEnquiry::All(); return view('dashboard.index')->with(['newCalls' => $data, 'openEnquiry' => $openEnquiry]); }
public function rescallindex() { $openEnquiry = OpenEnquiry::All(); return view('dashboard.rescall')->with(['openEnquiry' => $openEnquiry]); }
/** * * @param $status * @param $id * @return $this */ public function info($status, $id) { /* * TODO: * 1. Pass data to view * 2. display enquiry info button in dashboard && view-enquiry */ if ($status == 'o') { $enquiry = OpenEnquiry::findOrFail($id); } else { $enquiry = ClosedEnquiry::findOrFail($id); } return view('dashboard.info')->with(['data' => $enquiry, 'status' => $status]); }