add verification status

This commit is contained in:
Nazri
2018-05-22 17:29:12 +08:00
parent b2fc9f8605
commit 90e88039f4
4 changed files with 67 additions and 9 deletions
+11 -3
View File
@@ -68,8 +68,15 @@ class BookingController extends Controller
//Calculation part
// $bookings = Booking::all();
$amount = $request->input("amount");
$svcharge=20.00;
$amount = $request->input("amount");
if ($amount >= 10000 && ($term == 'x2_cash' || $term = 'x2_cheque' || $term = 'x2_ba')) {
$svcharge = 0;
}
else {
$svcharge = 20.00;
}
$bia = round(($amount + ($svcharge / $rate) + 0.06), 2);
// return $bia;
@@ -145,7 +152,8 @@ class BookingController extends Controller
$book_id->save();
return response()->json(['book_id'=>$book_id],200);
}