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, 'customer_id' => $customer->id ?? null,
'count' => $count, 'count' => $count,
'amount' => $amount, 'amount' => $amount,
'mobile' => $request->mobile, 'mobile' => $request->mobile ?? null,
'name' => $customer ? $customer->name : $request->name, 'name' => ($customer ? $customer->name : $request->name) ?? null,
'amount' => $amount, 'amount' => $amount,
'total' => $count*$amount, 'total' => $count*$amount,
'sts' => 1, 'sts' => 1,
@@ -64,7 +64,7 @@ class GiftCardController extends Controller
GiftCardCodes::insert($codes); GiftCardCodes::insert($codes);
return response()->json([ return response()->json([
'customer' => $customer, 'customer' => $customer ?? null,
'order' => $gift, 'order' => $gift,
'codes' => $gift->giftcardcodes, 'codes' => $gift->giftcardcodes,
'total' => $count*$amount, 'total' => $count*$amount,
@@ -135,8 +135,8 @@ class ReportController extends Controller
Cnt::where('key', 'goldir_closed')->update(['value' => "true"]); Cnt::where('key', 'goldir_closed')->update(['value' => "true"]);
$liman_price = 0; $liman_price = 0;
}else{ }else{
Cnt::where('key', 'app_closed')->update(['value' => "true"]); Cnt::where('key', 'app_closed')->update(['value' => "false"]);
Cnt::where('key', 'goldir_closed')->update(['value' => "true"]); Cnt::where('key', 'goldir_closed')->update(['value' => "false"]);
} }
} }