public function view($id)
 {
     $destination = Vacation::get($id);
     $images = DestinationImage::getImagesForDestination($id);
     $allImages = DestinationImage::getAllImages();
     $random = Vacation::randomVacation($id);
     array_slice($random, 0, 1);
     return view("vacation_detail", ["destination" => $destination, "images" => $images, "allImages" => $allImages, "random" => $random]);
 }
 public static function postPayment(Request $request)
 {
     $destination_id = $request->input("destination_id");
     $purchase = Vacation::get($destination_id);
     $amount = $request->input("amount");
     $user = $request->user();
     $user->addVacationPayment($purchase, $amount, $destination_id);
     return redirect("/account");
     // return redirect("account", ["purchase"=>$purchase,"destination_id"=>$destination_id]);
 }