/**
  * display assets with map view
  * @return Response
  */
 public function map()
 {
     $assets = Asset::all();
     return View('assets.map', compact('assets'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $assets = Asset::all();
     return $assets;
 }
 public function index()
 {
     $objects = Asset::all();
     $attributes = ['Asset_ID', 'Type', 'Brand', 'Model', 'Status', 'Section', 'Warranty', 'Entry_At', 'shop_id'];
     return view('assets.index', compact('objects', 'attributes'));
 }