From 65d371748c5e403fb578bc317d7fedb3b5f3b653 Mon Sep 17 00:00:00 2001 From: sayliraut Date: Thu, 4 Jul 2024 13:04:44 +0530 Subject: [PATCH] change --- .../Admin/ManageNotificationsController.php | 1 + .../CustomerAPIs/RestaurantApiServices.php | 8 +-- .../manage_notifications_add.blade.php | 51 +++++++++++++++++++ .../add_restaurant.blade.php | 4 +- .../edit_restaurant.blade.php | 4 +- .../manage_states/manage_states.blade.php | 32 ++++++------ 6 files changed, 76 insertions(+), 24 deletions(-) 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 @@ +
+
+
Delivery Schedule
+
+
+
When should this message start sending ?
+
+ + +
+
+ + +
+
+ +
+ + +
+
+
+
+