/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     /*
      * car data
      * */
     $car = new CarsModel();
     $carsAll = $car->allCarsList();
     /*
      * Extra Data
      * */
     $extra = new ExtraModel();
     $extraAll = $extra->allExtradata();
     /*
      * PriceData
      * */
     $price = new PriceModel();
     $threePricePanels = $price->firstThreePricePanel();
     //Return view with data
     return view('site.index', ['cars' => $carsAll, 'extra' => $extraAll, 'threePricePanel' => $threePricePanels]);
 }
 /**
  *  Display first three price panel data
  *  @return Json
  *
  * */
 public function priceApi(PriceModel $price)
 {
     $priceData = $price->firstThreePricePanel();
     return response()->json($priceData);
 }