app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index()
    {
        $jumlah = Antrian::where('status', 0)->orderBy('created_at', 'DESC')->get();
        $tunggu = Antrian::where('status', 0)->orderBy('created_at', 'ASC')->first();
        $antrian = Antrian::where('status', 1)->orderBy('updated_at', 'DESC')->first();
        $terpanggil = Antrian::where('status', 1)->get();
        $tercancel = Antrian::where('status', 2)->get();
        return view('home', compact('antrian', 'jumlah', 'tunggu', 'terpanggil', 'tercancel'));
    }
public function index ( ) { $ jumlah = Antrian :: where ( 'status' , 0 ) -> orderBy ( 'created_at' , 'DESC' ) -> get ( ) ; $ tunggu = Antrian :: where ( 'status' , 0 ) -> orderBy ( 'created_at' , 'ASC' ) -> first ( ) ; $ antrian = Antrian :: where ( 'status' , 1 ) -> orderBy ( 'updated_at' , 'DESC' ) -> first ( ) ; $ terpanggil = Antrian :: where ( 'status' , 1 ) -> get ( ) ; $ tercancel = Antrian :: where ( 'status' , 2 ) -> get ( ) ; return view ( 'home' , compact ( 'antrian' , 'jumlah' , 'tunggu' , 'terpanggil' , 'tercancel' ) ) ; }
Show the application dashboard.
Show the application dashboard .
//jumlah antrian //menunggu // antrian  // antrian  // antrian 