removed viewCustomerBookingDetails, it was done in bookingController

This commit is contained in:
Jack Goh
2018-06-27 10:12:35 +08:00
parent f078be408d
commit 5f053577df
2 changed files with 3 additions and 20 deletions
@@ -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