public function admin()
 {
     $pint_count = Pinturas::count_pinturas();
     $sec_count = Secciones::count_secciones();
     $cat_count = Categorias::count_categorias();
     $art_count = Articulos::count_articulos();
     return view('admin.index', compact('art_count', 'pint_count', 'sec_count', 'cat_count'));
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $secc = Secciones::find($id);
     $secc->delete();
     return Response()->json(["mensaje" => "borrado"]);
 }
 /** 
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $secc = Secciones::all();
     return view('categorias.create', compact('secc'));
 }