changes
This commit is contained in:
@@ -59,7 +59,11 @@ class ManageCustomerController extends Controller
|
||||
|
||||
|
||||
try {
|
||||
$customers_data = IamPrincipal::findOrFail($id);
|
||||
$customers_data = IamPrincipal::with('state','contactMessages')->findOrFail($id);
|
||||
if ($customers_data->contactMessages->isEmpty()) {
|
||||
Log::info('No contact messages found for customer with ID: ' . $id);
|
||||
}
|
||||
// return $customers_data;
|
||||
return view('Admin.pages.manage_users.manage_customer.view_customer_details', compact('customers_data'));
|
||||
} catch (Exception $e) {
|
||||
Log::error("Manage Voucher Page Not Load " . $e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user