/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $services = Service::all();
     return view('services.index', ['services' => $services]);
 }
 /**
  * Get all service
  *
  * @return json
  */
 public function getAllServices()
 {
     return Service::all();
 }
 public function getIndex()
 {
     return view('admin.services.index', ['services' => Service::all()]);
 }
 public function trainCarService(ProductCart $productCart)
 {
     $services = Service::all();
     $sumAndCount = $this->getGeneralViewOfCart($productCart);
     if (Auth::guest()) {
         $userID = 0;
     } else {
         $userID = Auth::user()->id;
     }
     return view('purchases.servicePriceList', ['services' => $services, 'productsCount' => $sumAndCount['productsCount'], 'userID' => $userID, 'productsSum' => $sumAndCount['productsSum'], 'p' => 'purchases']);
 }