diff --git a/app/Http/Controllers/Admin/ManageNotificationsController.php b/app/Http/Controllers/Admin/ManageNotificationsController.php index f60bcfe..7c29cc6 100644 --- a/app/Http/Controllers/Admin/ManageNotificationsController.php +++ b/app/Http/Controllers/Admin/ManageNotificationsController.php @@ -82,6 +82,7 @@ class ManageNotificationsController extends Controller */ public function store_notificaton_data(Request $request) { + dd($request); try { $request->validate([ 'image' => 'required|image|mimes:jpeg,png,jpg,gif|max:2048', diff --git a/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php b/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php index b62f82c..a2b180e 100644 --- a/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php +++ b/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php @@ -255,7 +255,7 @@ class RestaurantApiServices ->count(); if ($redeemCountState >= $stateMaxLimitation) { - return jsonResponseWithErrorMessageApi(__('auth.state_limit_reached'), 400); + return jsonResponseWithErrorMessageApi(__('auth.state_limit_reached'), 301); } // Calculate the restaurant interval start date @@ -266,7 +266,7 @@ class RestaurantApiServices ->count(); if ($redeemCountRestaurant >= $restaurantMaxLimitation) { - return jsonResponseWithErrorMessageApi(__('auth.restaurant_limit_reached'), 400); + return jsonResponseWithErrorMessageApi(__('auth.restaurant_limit_reached'), 301); } // Get the last redeem time @@ -291,13 +291,13 @@ class RestaurantApiServices $allowedRedeemTime = $lastRedeemTime->copy()->addHours($stateTimeHours); if ($currentTime < $allowedRedeemTime) { - return jsonResponseWithErrorMessageApi(__('auth.redeem_not_allowed_yet'), 400); + return jsonResponseWithErrorMessageApi(__('auth.redeem_not_allowed_yet'), 301); } $allowedRedeemTime = $lastRedeemTime->copy()->addHours($restTimeHours); if ($currentTime < $allowedRedeemTime) { - return jsonResponseWithErrorMessageApi(__('auth.redeem_not_allowed_yet'), 400); + return jsonResponseWithErrorMessageApi(__('auth.redeem_not_allowed_yet'), 301); } } diff --git a/resources/views/Admin/pages/manage_notification/manage_notifications_add.blade.php b/resources/views/Admin/pages/manage_notification/manage_notifications_add.blade.php index d71ef1b..aea8d0b 100644 --- a/resources/views/Admin/pages/manage_notification/manage_notifications_add.blade.php +++ b/resources/views/Admin/pages/manage_notification/manage_notifications_add.blade.php @@ -135,6 +135,36 @@ +