app/Http/Controllers/pengurusController.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()
    {
         $get = sapi::all();
        $jumlah = $get->count();
        $betina = $get->where('jenis_kelamin',0)->count();
        $jantan = $get->where('jenis_kelamin',1)->count();
        $orang = anggotaadm::all();
        $total = $orang->count();
        return view('pengurus.index', compact('jumlah','betina','jantan', 'total'));
    }
public function index ( ) { $ get = sapi :: all ( ) ; $ jumlah = $ get -> count ( ) ; $ betina = $ get -> where ( 'jenis_kelamin' , 0 ) -> count ( ) ; $ jantan = $ get -> where ( 'jenis_kelamin' , 1 ) -> count ( ) ; $ orang = anggotaadm :: all ( ) ; $ total = $ orang -> count ( ) ; return view ( 'pengurus.index' , compact ( 'jumlah' , 'betina' , 'jantan' , 'total' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .