app/Http/Controllers/GaleriController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Galeri  $galeri
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Galeri $galeri)
    {
      $countBerita = Berita::where('status', 2)
                  ->count();
      $countGaleri = Galeri::where('status', 2)
                  ->count();
      $countSantri = Santri::where('status', 2)
                  ->count();
      $countVideo = Video::where('status', 2)
                  ->count();
      return view('content.galeri.mine.edit.0index',compact(
                                                            'galeri',
                                                            'countBerita',
                                                            'countGaleri',
                                                            'countSantri',
                                                            'countVideo',
                                                          ));
    }
public function edit ( Galeri $ galeri ) { $ countBerita = Berita :: where ( 'status' , 2 ) -> count ( ) ; $ countGaleri = Galeri :: where ( 'status' , 2 ) -> count ( ) ; $ countSantri = Santri :: where ( 'status' , 2 ) -> count ( ) ; $ countVideo = Video :: where ( 'status' , 2 ) -> count ( ) ; return view ( 'content.galeri.mine.edit.0index' , compact ( 'galeri' , 'countBerita' , 'countGaleri' , 'countSantri' , 'countVideo' , ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .