app/Http/Controllers/SapiadmController.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()
    {
        $sapiadms = sapiadm::all();
        $sapi = sapi::all();
        return view('sapiadm.index', ['sapiadms' => $sapiadms], ['sapis' => $sapi]);    
    }
public function index ( ) { $ sapiadms = sapiadm :: all ( ) ; $ sapi = sapi :: all ( ) ; return view ( 'sapiadm.index' , [ 'sapiadms' => $ sapiadms ] , [ 'sapis' => $ sapi ] ) ; }
Display a listing of the resource.
Display a listing of the resource .
// $sapiadms = sapiadm::select(\DB::raw('count(*) status'))->where('status', 'hidup')->groupBy('id_anggota')->get(); //$sapiadms = DB::table('sapi')->count(); //$sapiadms = sapiadm::SELECT(\DB::raw('COUNT(*)'))->whereColumn([['id_anggota', '=', 6], ['status', '=', 'qef']])->groupBy('id_anggota')->get(); // $anggotaadm = anggotaadm::all();