/**
  * display assets with map view
  * @return Response
  */
 public function map()
 {
     $assets = Asset::all();
     return View('assets.map', compact('assets'));
 }
예제 #2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $assets = Asset::all();
     return $assets;
 }
예제 #3
0
 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'));
 }