public function rejectPayment()
 {
     $_confirmPay = new Reservation();
     $dataId = Input::get('id');
     $_confirmPay->rejectReserv($dataId);
     $reservation = $_confirmPay->getReserv($dataId);
     $users = new User();
     $user = $users->getUserDetailById($reservation->created_by);
     $data = array('refNumber' => str_pad($dataId, 10, "0", STR_PAD_LEFT), 'package' => $reservation->pack_name, 'amount' => '₱' . number_format($reservation->total_amount, 2), 'paymentMethod' => $reservation->payment_method, 'status' => 4, 'email' => $user->user_email, 'name' => $user->user_fname . ' ' . $user->user_lname);
     try {
         Mail::send('emails.user.transactionReservation', $data, function ($message) use($data) {
             $message->from('*****@*****.**', 'El Sitio Filipino');
             $message->to($data['email'], $data['name'])->subject('El Sitio Filipino Transaction Details');
         });
     } catch (Exception $ex) {
     }
     return json_encode(['success' => $_confirmPay]);
 }