mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-22 13:54:17 +00:00
removed viewCustomerBookingDetails, it was done in bookingController
This commit is contained in:
@@ -21,7 +21,7 @@ class BookingSupplierController extends Controller
|
||||
$response = [
|
||||
'supplier-booking' => $bookingsupplier
|
||||
];
|
||||
|
||||
|
||||
return response()->json($response, 200);
|
||||
}
|
||||
|
||||
@@ -32,26 +32,10 @@ class BookingSupplierController extends Controller
|
||||
$response = [
|
||||
'supplier-booking' => $bookingsupplier
|
||||
];
|
||||
|
||||
return response()->json($response, 200);
|
||||
}
|
||||
|
||||
//single booking detail : one customer bank slip
|
||||
public function viewCustomerBookingDetail (Request $request, $id )
|
||||
{
|
||||
// display all booking that is already uploaded user bankin slip
|
||||
// TODO: admin can access only
|
||||
// get current booking
|
||||
|
||||
// $booking = Booking::where("admin_id", Auth::user()->id)->where('id', $id)->first();
|
||||
if (!$booking)
|
||||
{
|
||||
return response()->json(['message'=>'Access denied'], 200);
|
||||
}
|
||||
return response()->json($booking, 200);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function store(Request $request, $id)
|
||||
{
|
||||
//Calculation part
|
||||
|
||||
Reference in New Issue
Block a user