NASER customer name and mobile is not requiered for gift card and fix close app issue

This commit is contained in:
gholak tala
2026-05-04 16:47:28 +00:00
parent 4d85237284
commit ad4fa1bcba
2 changed files with 5 additions and 5 deletions
@@ -34,8 +34,8 @@ class GiftCardController extends Controller
'customer_id' => $customer->id ?? null,
'count' => $count,
'amount' => $amount,
'mobile' => $request->mobile,
'name' => $customer ? $customer->name : $request->name,
'mobile' => $request->mobile ?? null,
'name' => ($customer ? $customer->name : $request->name) ?? null,
'amount' => $amount,
'total' => $count*$amount,
'sts' => 1,
@@ -64,7 +64,7 @@ class GiftCardController extends Controller
GiftCardCodes::insert($codes);
return response()->json([
'customer' => $customer,
'customer' => $customer ?? null,
'order' => $gift,
'codes' => $gift->giftcardcodes,
'total' => $count*$amount,