public function Index() { $tasks = Purchase::all(); return View::make('admin.purchase')->with('tasks', $tasks); }
/** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { $purchases = Purchase::all(); $total = 0; return view('site.home', compact('purchases', 'total')); }