all(); $accoun = BankAccount::findOrFail($data['id']); $accoun->sts = $data['sts']; $accoun->save(); if ($accoun->sts == 2) { $customer = Customer::find($accoun->customer_id); $this->SendMessage($customer->mobile, 'کارت بانکی شما در ' . $this->Config('name_fa') . ' تایید شد'); } return response()->json(true); } }