customer change

This commit is contained in:
sayliraut
2024-06-13 12:51:49 +05:30
parent 5a6fb1b509
commit 537a5ee49a
2 changed files with 24 additions and 5 deletions

View File

@@ -268,7 +268,7 @@ class ManageCustomerController extends Controller
public function manageCustomerRestaurants(Request $request, $id)
{
try {
$redeemDetails = RedeemRestaurant::with('restaurant', 'customer')->where('iam_principal_xid', $id)->where('is_redeem', 1)->get();
$redeemDetails = RedeemRestaurant::with('restaurant', 'customer')->where('iam_principal_xid', $id)->get();
return view('Admin.pages.manage_users.manage_customer.customer_restaurants', compact('redeemDetails'));
} catch (Exception $e) {
Log::error("Error getting restaurant details: " . $e->getMessage());