feature: send thankscard page

This commit is contained in:
antv
2026-07-14 16:23:04 +07:00
parent 3aa9e04bd7
commit 05605ed1eb
28 changed files with 536 additions and 297 deletions
+7 -4
View File
@@ -61,9 +61,6 @@ class UserController extends Controller
return view('user.send', compact('users'));
}
/**
* Store and execute sending thank cards to another user.
*/
public function storeThankcards(SendThankCardRequest $request): JsonResponse
{
try {
@@ -76,7 +73,13 @@ class UserController extends Controller
return response()->json(['success' => false, 'message' => $e->getMessage()], 422);
}
return response()->json(['success' => true, 'message' => __('messages.thank_card_send_success')]);
$receiverUser = \App\Models\User::where('msnv', $request->input('receiver'))->first();
return response()->json([
'success' => true,
'message' => __('messages.thank_card_send_success'),
'receiver_email' => $receiverUser ? $receiverUser->mail : '',
]);
}
/**