Пример #1
0
 /**
  * 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]);
 }
Пример #2
0
 public function rescallindex()
 {
     $openEnquiry = OpenEnquiry::All();
     return view('dashboard.rescall')->with(['openEnquiry' => $openEnquiry]);
 }
Пример #3
0
 /**
  *
  * @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]);
 }