mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 04:24:08 +00:00
new booking controller update
This commit is contained in:
@@ -25,10 +25,10 @@ class BookingController extends Controller
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return response()->json(['success' => true, 'message'=> "Success"]);
|
||||
}
|
||||
//public function create()
|
||||
//{
|
||||
// return response()->json(['success' => true, 'message'=> "Success"]);
|
||||
//}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
@@ -65,16 +65,15 @@ class BookingController extends Controller
|
||||
|
||||
//$rate = "no";
|
||||
return Response::json(array(
|
||||
'code' => 404,
|
||||
'message' => 'no term found'
|
||||
), 404);
|
||||
'code' => 422,
|
||||
'message' => 'Invalid input'
|
||||
), 422);
|
||||
break;
|
||||
}
|
||||
|
||||
//Calculation part
|
||||
// $bookings = Booking::all();
|
||||
$amount = $request->input("amount");
|
||||
;
|
||||
if ($amount >= 10000 && ($term == 'x2_cash' || $term = 'x2_cheque' || $term = 'x2_ba')) {
|
||||
$svcharge = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user