Ejemplo n.º 1
0
 /**
  * [previousDate description]
  * @return [type] [description]
  */
 public function previousDate()
 {
     $date = PayDate::where('date', '<', date('Y-m-d'))->orderBy('date', 'desc')->first();
     $response = new Response($date->date);
     return $response;
 }
Ejemplo n.º 2
0
 /**
  * [controlPanel description]
  * @return [type] [description]
  */
 public function getCP(Request $request)
 {
     $dates = PayDate::where('date', '>=', date('Y-m-d'))->orderBy('date', 'asc')->get();
     return view('admin-cp')->with('dates', $dates);
 }