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