public static function getPurchase() { $vacations = Vacation::getVacations(Auth::user()->id); $destination = Vacation::getAll(); // $remaining = Vacation::remainingBalance($id); return view("account", ["vacations" => $vacations, "destination" => $destination]); }
public function viewAll() { $destinations = Vacation::getAll(); $images = DestinationImage::getAllImages(); return view("home", ["destinations" => $destinations, "images" => $images]); }