Index: src/main/java/it/finki/charitable/controller/UserProfileController.java
===================================================================
--- src/main/java/it/finki/charitable/controller/UserProfileController.java	(revision f0d5cb7499a773ecd1cbe9fdfc714a00f3906010)
+++ src/main/java/it/finki/charitable/controller/UserProfileController.java	(revision f8007b3af10bdaf52e0717db9aecaffd1884cc32)
@@ -1,10 +1,8 @@
 package it.finki.charitable.controller;
 
-import it.finki.charitable.entities.AppUser;
-import it.finki.charitable.entities.DonationInformation;
-import it.finki.charitable.entities.DonationPost;
-import it.finki.charitable.entities.MainUser;
+import it.finki.charitable.entities.*;
 import it.finki.charitable.security.PasswordEncoder;
 import it.finki.charitable.services.DonationPostService;
+import it.finki.charitable.services.FundsCollectedService;
 import it.finki.charitable.services.UserService;
 import org.springframework.security.core.context.SecurityContextHolder;
@@ -23,8 +21,10 @@
     private final UserService userService;
     private final DonationPostService donationPostService;
+    private final FundsCollectedService fundsCollectedService;
 
-    public UserProfileController(UserService userService, DonationPostService donationPostService) {
+    public UserProfileController(UserService userService, DonationPostService donationPostService, FundsCollectedService fundsCollectedService) {
         this.userService = userService;
         this.donationPostService = donationPostService;
+        this.fundsCollectedService = fundsCollectedService;
     }
 
@@ -105,4 +105,18 @@
     }
 
+    @RequestMapping("/addFunds")
+    public String addFunds(@RequestParam Long postid,
+                           @RequestParam String type,
+                           @RequestParam float amount) {
+
+        DonationPost post = donationPostService.getById(postid);
+        FundsCollected funds = new FundsCollected(type, amount);
+        fundsCollectedService.save(funds);
+
+        post.getFundsCollected().add(funds);
+        donationPostService.save(post);
+        return "redirect:/myPosts";
+    }
+
     @ModelAttribute("user")
     public AppUser addAttributes() {
Index: src/main/resources/templates/myProfile.html
===================================================================
--- src/main/resources/templates/myProfile.html	(revision f0d5cb7499a773ecd1cbe9fdfc714a00f3906010)
+++ src/main/resources/templates/myProfile.html	(revision f8007b3af10bdaf52e0717db9aecaffd1884cc32)
@@ -241,5 +241,8 @@
                                             <a class="btn btn-sm btn-outline-secondary"
                                                th:href="@{/post(postid=${post.id})}">Open</a>
-                                            <a class="btn btn-sm btn-success" href="#">Add Collected Funds</a>
+                                            <button type="button" class="btn btn-primary" data-bs-toggle="modal"
+                                                    th:data-bs-target="'#a' + ${post.id}">
+                                                Add collected funds
+                                            </button>
                                             <a class="btn btn-sm btn-danger"
                                                th:href="@{/deletePost(postid=${post.id})}">Delete</a>
@@ -250,4 +253,35 @@
                                     <img th:src="${post.imagesPath[0]}" width="200" height="250"
                                          style="object-fit: contain">
+                                </div>
+                            </div>
+                            <div class="modal fade" th:id="'a' + ${post.id}" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
+                                 aria-labelledby="staticBackdropLabel" aria-hidden="true">
+                                <div class="modal-dialog modal-dialog-centered">
+                                    <div class="modal-content">
+                                        <div class="modal-header">
+                                            <h5 class="modal-title" id="staticBackdropLabel">Add funds</h5>
+                                            <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
+                                        </div>
+                                        <div class="modal-body">
+                                            <div class="card-body">
+                                                <form th:id="'my-form' + ${post.id}" th:action="@{/addFunds(postid=${post.id})}" method="post">
+                                                    <div class="row">
+                                                        <div class="col">
+                                                            <select class="input-group-text" name="type">
+                                                                <option value="Bank donation">Bank donation</option>
+                                                                <option value="Phone donation">Phone donation</option>
+                                                            </select>
+                                                        </div>
+                                                        <div class="col">
+                                                            <input type="number" class="input-group-text" name="amount">
+                                                        </div>
+                                                    </div>
+                                                </form>
+                                            </div>
+                                        </div>
+                                        <div class="modal-footer">
+                                            <input class="btn btn-primary" type="submit" th:form="'my-form' + ${post.id}">
+                                        </div>
+                                    </div>
                                 </div>
                             </div>
@@ -260,4 +294,6 @@
     </div>
 </div>
+
+
 <script src="/js/bootstrap.min.js"></script>
 <script th:inline="javascript">
