コード例 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     //
     $newGoods = GoodsUser::where('is_gotten', false)->count();
     $newAwards = AwardUser::where('is_gotten', false)->count();
     $receivedGoods = GoodsUser::where('is_gotten', true)->count();
     $receivedAwards = AwardUser::where('is_gotten', true)->count();
     $datasets = Dataset::all();
     return view('back.index', compact('newGoods', 'newAwards', 'receivedGoods', 'receivedAwards', 'datasets'));
 }
コード例 #2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $newGoods = GoodsUser::where('is_gotten', false)->count();
     $newAwards = AwardUser::where('is_gotten', false)->count();
     return view('back.reception.index', compact('newGoods', 'newAwards'));
 }