app/Http/Controllers/Frontend/IndexController.php
/**
	 * Display a listing of the resource.
	 *
	 * @return \Illuminate\Http\Response
	 */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index(Request $request) {
		$data['cekhasil'] = DB::table('hasil')->orderBy('id', 'DESC')
			->get();
		$cluster = DB::table('hasil')->select('hasil_cluster')->orderBy('id', 'DESC')
			->first();
		$data['uji'] = DB::table('uji')
			->first();
		$data['rekap'] = DB::table('rekap')
			->orderBy('kecamatan','asc')->get();
		return view('frontend.index', $data);
	}
public function index ( Request $ request ) { $ data [ 'cekhasil' ] = DB :: table ( 'hasil' ) -> orderBy ( 'id' , 'DESC' ) -> get ( ) ; $ cluster = DB :: table ( 'hasil' ) -> select ( 'hasil_cluster' ) -> orderBy ( 'id' , 'DESC' ) -> first ( ) ; $ data [ 'uji' ] = DB :: table ( 'uji' ) -> first ( ) ; $ data [ 'rekap' ] = DB :: table ( 'rekap' ) -> orderBy ( 'kecamatan' , 'asc' ) -> get ( ) ; return view ( 'frontend.index' , $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .