Index: src/main/java/com/example/domify/model/exceptions/PropertyIdNotFoundException.java
===================================================================
--- src/main/java/com/example/domify/model/exceptions/PropertyIdNotFoundException.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/model/exceptions/PropertyIdNotFoundException.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,7 @@
+package com.example.domify.model.exceptions;
+
+public class PropertyIdNotFoundException extends RuntimeException {
+    public PropertyIdNotFoundException(){
+        super("Property with that Id was not found in the database!");
+    }
+}
Index: src/main/java/com/example/domify/repository/InterestedRepository.java
===================================================================
--- src/main/java/com/example/domify/repository/InterestedRepository.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/repository/InterestedRepository.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,18 @@
+package com.example.domify.repository;
+
+import com.example.domify.model.Interested;
+import com.example.domify.model.InterestedId;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.Query;
+import org.springframework.data.repository.query.Param;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface InterestedRepository extends JpaRepository<Interested, InterestedId> {
+    @Query("SELECT i FROM Interested i WHERE i.listing.id = :listingId")
+    List<Interested> findByListingId(@Param("listingId") Long listingId);
+
+    boolean existsByListingIdAndTenantProfileUserId(Long listingId, Long userId);
+}
Index: src/main/java/com/example/domify/repository/LandlordProfileRepository.java
===================================================================
--- src/main/java/com/example/domify/repository/LandlordProfileRepository.java	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/java/com/example/domify/repository/LandlordProfileRepository.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -6,5 +6,8 @@
 import org.springframework.stereotype.Repository;
 
+import java.util.Optional;
+
 @Repository
 public interface LandlordProfileRepository extends JpaRepository<LandlordProfile,Long> {
+    Optional<LandlordProfile> findByUserId(Long id);
 }
Index: src/main/java/com/example/domify/repository/LeaseRepository.java
===================================================================
--- src/main/java/com/example/domify/repository/LeaseRepository.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/repository/LeaseRepository.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,17 @@
+package com.example.domify.repository;
+
+import com.example.domify.model.Lease;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.Query;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface LeaseRepository extends JpaRepository<Lease, Long> {
+    @Query("SELECT l FROM Lease l WHERE l.landlord.id = :landlordId")
+    List<Lease> findByLandlordId(Long landlordId);
+
+    @Query("SELECT l FROM Lease l WHERE l.tenant.id = :tenantId")
+    List<Lease> findByTenantId(Long tenantId);
+}
Index: src/main/java/com/example/domify/repository/TenantProfileRepository.java
===================================================================
--- src/main/java/com/example/domify/repository/TenantProfileRepository.java	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/java/com/example/domify/repository/TenantProfileRepository.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -5,5 +5,8 @@
 import org.springframework.stereotype.Repository;
 
+import java.util.Optional;
+
 @Repository
 public interface TenantProfileRepository extends JpaRepository<TenantProfile,Long> {
+    Optional<TenantProfile> findByUserId(Long userId);
 }
Index: src/main/java/com/example/domify/repository/UnitImageRepository.java
===================================================================
--- src/main/java/com/example/domify/repository/UnitImageRepository.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/repository/UnitImageRepository.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,9 @@
+package com.example.domify.repository;
+
+import com.example.domify.model.UnitImage;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface UnitImageRepository extends JpaRepository<UnitImage, Long> {
+}
Index: src/main/java/com/example/domify/service/InterestedService.java
===================================================================
--- src/main/java/com/example/domify/service/InterestedService.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/service/InterestedService.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,12 @@
+package com.example.domify.service;
+
+import com.example.domify.model.Interested;
+
+import java.util.List;
+
+public interface InterestedService {
+    List<Interested> findByListingId(Long id);
+    Interested save(Interested interested);
+    boolean existsByListingAndTenant(Long listingId, Long userId);
+
+}
Index: src/main/java/com/example/domify/service/LandlordProfileService.java
===================================================================
--- src/main/java/com/example/domify/service/LandlordProfileService.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/service/LandlordProfileService.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,7 @@
+package com.example.domify.service;
+
+import com.example.domify.model.LandlordProfile;
+
+public interface LandlordProfileService {
+    LandlordProfile findByUserId(Long userId);
+}
Index: src/main/java/com/example/domify/service/LeaseService.java
===================================================================
--- src/main/java/com/example/domify/service/LeaseService.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/service/LeaseService.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,14 @@
+package com.example.domify.service;
+
+import com.example.domify.model.LandlordProfile;
+import com.example.domify.model.Lease;
+
+import java.util.List;
+
+public interface LeaseService {
+    Lease save(Lease lease);
+    List<Lease> findByLandlord(Long landlordId);
+    List<Lease> findByTenant(Long tenantId);
+    Lease findById(Long leaseId);
+    void rateUser(Long leaseId, Long raterId, Integer rating, boolean isRatingTenant);
+}
Index: src/main/java/com/example/domify/service/ListingService.java
===================================================================
--- src/main/java/com/example/domify/service/ListingService.java	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/java/com/example/domify/service/ListingService.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -2,9 +2,12 @@
 
 import com.example.domify.model.Listing;
+import org.springframework.web.multipart.MultipartFile;
 
+import java.io.IOException;
 import java.util.List;
 
 public interface ListingService {
-
     List<Listing> findAll();
+    Listing save(Listing listing);
+    Listing findById(Long id);
 }
Index: src/main/java/com/example/domify/service/PropertiesService.java
===================================================================
--- src/main/java/com/example/domify/service/PropertiesService.java	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/java/com/example/domify/service/PropertiesService.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -18,3 +18,4 @@
                                       String city, String country, MultipartFile[] images,
                                       UserD owner) throws IOException;
+    Property findById(Long id);
 }
Index: src/main/java/com/example/domify/service/TenantProfileService.java
===================================================================
--- src/main/java/com/example/domify/service/TenantProfileService.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/service/TenantProfileService.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,7 @@
+package com.example.domify.service;
+
+import com.example.domify.model.TenantProfile;
+
+public interface TenantProfileService {
+    TenantProfile findByUserId(Long userId);
+}
Index: src/main/java/com/example/domify/service/UnitService.java
===================================================================
--- src/main/java/com/example/domify/service/UnitService.java	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/java/com/example/domify/service/UnitService.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -2,10 +2,12 @@
 
 import com.example.domify.model.Unit;
+import org.springframework.web.multipart.MultipartFile;
 
+import java.io.IOException;
 import java.util.Optional;
 
 public interface UnitService {
-
     Optional<Unit> findDetails(Long unitDetails);
-
+    Unit save(Unit unit, MultipartFile[] images) throws IOException;
+    Unit findById(Long id);
 }
Index: src/main/java/com/example/domify/service/UserService.java
===================================================================
--- src/main/java/com/example/domify/service/UserService.java	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/java/com/example/domify/service/UserService.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -4,4 +4,5 @@
 import com.example.domify.model.UserD;
 
+import java.math.BigDecimal;
 import java.time.LocalDate;
 
@@ -21,3 +22,5 @@
 
     Boolean isLandlord(Long userId);
+    UserD findById(Long userId);
+    void updateUserRating(Long userId, BigDecimal newRating);
 }
Index: src/main/java/com/example/domify/service/impl/InterestedServiceImpl.java
===================================================================
--- src/main/java/com/example/domify/service/impl/InterestedServiceImpl.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/service/impl/InterestedServiceImpl.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,30 @@
+package com.example.domify.service.impl;
+
+import com.example.domify.model.Interested;
+import com.example.domify.repository.InterestedRepository;
+import com.example.domify.service.InterestedService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class InterestedServiceImpl implements InterestedService {
+    private final InterestedRepository interestedRepository;
+
+    public InterestedServiceImpl(InterestedRepository interestedRepository) {
+        this.interestedRepository = interestedRepository;
+    }
+
+    @Override
+    public List<Interested> findByListingId(Long id) {
+        return interestedRepository.findByListingId(id);
+    }
+
+    public Interested save(Interested interested) {
+        return interestedRepository.save(interested);
+    }
+
+    public boolean existsByListingAndTenant(Long listingId, Long userId) {
+        return interestedRepository.existsByListingIdAndTenantProfileUserId(listingId, userId);
+    }
+}
Index: src/main/java/com/example/domify/service/impl/LandlordProfileServiceImpl.java
===================================================================
--- src/main/java/com/example/domify/service/impl/LandlordProfileServiceImpl.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/service/impl/LandlordProfileServiceImpl.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,20 @@
+package com.example.domify.service.impl;
+
+import com.example.domify.model.LandlordProfile;
+import com.example.domify.repository.LandlordProfileRepository;
+import com.example.domify.service.LandlordProfileService;
+import org.springframework.stereotype.Service;
+
+@Service
+public class LandlordProfileServiceImpl implements LandlordProfileService {
+    private final LandlordProfileRepository landlordProfileRepository;
+
+    public LandlordProfileServiceImpl(LandlordProfileRepository landlordProfileRepository) {
+        this.landlordProfileRepository = landlordProfileRepository;
+    }
+
+    @Override
+    public LandlordProfile findByUserId(Long userId) {
+        return landlordProfileRepository.findByUserId(userId).orElseThrow(RuntimeException::new);
+    }
+}
Index: src/main/java/com/example/domify/service/impl/LeaseServiceImpl.java
===================================================================
--- src/main/java/com/example/domify/service/impl/LeaseServiceImpl.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/service/impl/LeaseServiceImpl.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,67 @@
+package com.example.domify.service.impl;
+
+import com.example.domify.model.Lease;
+import com.example.domify.model.UserD;
+import com.example.domify.repository.LeaseRepository;
+import com.example.domify.service.LeaseService;
+import com.example.domify.service.ListingService;
+import com.example.domify.service.UserService;
+import jakarta.transaction.Transactional;
+import org.springframework.stereotype.Service;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+@Service
+public class LeaseServiceImpl implements LeaseService {
+    private final LeaseRepository leaseRepository;
+    private final ListingService listingService;
+    private final UserService userService;
+    public LeaseServiceImpl(LeaseRepository leaseRepository, ListingService listingService, UserService userService) {
+        this.leaseRepository = leaseRepository;
+        this.listingService = listingService;
+        this.userService = userService;
+    }
+
+    @Transactional
+    public Lease save(Lease lease) {
+        return leaseRepository.save(lease);
+    }
+
+    public List<Lease> findByLandlord(Long landlordId) {
+        return leaseRepository.findByLandlordId(landlordId);
+    }
+
+    public List<Lease> findByTenant(Long tenantId) {
+        return leaseRepository.findByTenantId(tenantId);
+    }
+
+    @Override
+    public Lease findById(Long leaseId) {
+        return leaseRepository.findById(leaseId).orElseThrow(RuntimeException::new);
+    }
+
+    @Transactional
+    public void rateUser(Long leaseId, Long raterId, Integer rating, boolean isRatingTenant) {
+        Lease lease = leaseRepository.findById(leaseId)
+                .orElseThrow(() -> new IllegalArgumentException("Lease not found"));
+
+        boolean isRaterLandlord = lease.getLandlord().getId().equals(raterId);
+        boolean isRaterTenant = lease.getTenant().getId().equals(raterId);
+
+        if (!isRaterLandlord && !isRaterTenant) {
+            throw new IllegalArgumentException("User is not part of this lease");
+        }
+
+        if (isRatingTenant && !isRaterLandlord) {
+            throw new IllegalArgumentException("Only landlord can rate tenant");
+        }
+
+        if (!isRatingTenant && !isRaterTenant) {
+            throw new IllegalArgumentException("Only tenant can rate landlord");
+        }
+
+        UserD userToRate = isRatingTenant ? lease.getTenant().getUser() : lease.getLandlord().getUser();
+        userService.updateUserRating(userToRate.getId(), BigDecimal.valueOf(rating));
+    }
+}
Index: src/main/java/com/example/domify/service/impl/ListingServiceImpl.java
===================================================================
--- src/main/java/com/example/domify/service/impl/ListingServiceImpl.java	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/java/com/example/domify/service/impl/ListingServiceImpl.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -5,5 +5,7 @@
 import com.example.domify.service.ListingService;
 import org.springframework.stereotype.Service;
+import org.springframework.web.multipart.MultipartFile;
 
+import java.io.IOException;
 import java.util.List;
 
@@ -21,3 +23,13 @@
         return listingRepository.findAll();
     }
+
+    @Override
+    public Listing save(Listing listing) {
+        return listingRepository.save(listing);
+    }
+
+    @Override
+    public Listing findById(Long id) {
+        return listingRepository.findById(id).orElseThrow(RuntimeException::new);
+    }
 }
Index: src/main/java/com/example/domify/service/impl/PropertiesServiceImpl.java
===================================================================
--- src/main/java/com/example/domify/service/impl/PropertiesServiceImpl.java	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/java/com/example/domify/service/impl/PropertiesServiceImpl.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -5,4 +5,5 @@
 import com.example.domify.model.PropertyImage;
 import com.example.domify.model.UserD;
+import com.example.domify.model.exceptions.PropertyIdNotFoundException;
 import com.example.domify.repository.AddressRepository;
 import com.example.domify.repository.PropertyImageRepository;
@@ -80,4 +81,9 @@
     }
 
+    @Override
+    public Property findById(Long id) {
+        return propertyRepository.findById(id).orElseThrow(PropertyIdNotFoundException::new);
+    }
+
     private void processImageUploads(MultipartFile[] images, Property property) throws IOException {
         String uploadDir = "uploads/properties/";
Index: src/main/java/com/example/domify/service/impl/TenantProfileServiceImpl.java
===================================================================
--- src/main/java/com/example/domify/service/impl/TenantProfileServiceImpl.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/service/impl/TenantProfileServiceImpl.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,19 @@
+package com.example.domify.service.impl;
+
+import com.example.domify.model.TenantProfile;
+import com.example.domify.repository.TenantProfileRepository;
+import com.example.domify.service.TenantProfileService;
+import org.springframework.stereotype.Service;
+
+@Service
+public class TenantProfileServiceImpl implements TenantProfileService {
+    private final TenantProfileRepository tenantProfileRepository;
+
+    public TenantProfileServiceImpl(TenantProfileRepository tenantProfileRepository) {
+        this.tenantProfileRepository = tenantProfileRepository;
+    }
+
+    public TenantProfile findByUserId(Long userId) {
+        return tenantProfileRepository.findByUserId(userId).orElseThrow(RuntimeException::new);
+    }
+}
Index: src/main/java/com/example/domify/service/impl/UnitServiceImpl.java
===================================================================
--- src/main/java/com/example/domify/service/impl/UnitServiceImpl.java	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/java/com/example/domify/service/impl/UnitServiceImpl.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -1,7 +1,20 @@
 package com.example.domify.service.impl;
+import com.example.domify.model.Property;
+import com.example.domify.model.PropertyImage;
 import com.example.domify.model.Unit;
+import com.example.domify.model.UnitImage;
+import com.example.domify.repository.UnitImageRepository;
 import com.example.domify.repository.UnitRepository;
 import com.example.domify.service.UnitService;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.List;
 import java.util.Optional;
 
@@ -9,6 +22,13 @@
 public class UnitServiceImpl implements UnitService {
     private final UnitRepository unitRepository;
-    public UnitServiceImpl(UnitRepository unitRepository) {
+    private final UnitImageRepository unitImageRepository;
+
+    @Value("${app.upload.dir:static/uploads/properties/}")
+    private String uploadDir;
+    private static final List<String> ALLOWED_EXTENSIONS = Arrays.asList("jpg", "jpeg", "png", "gif", "webp");
+    private static final long MAX_FILE_SIZE = 5 * 1024 * 1024;
+    public UnitServiceImpl(UnitRepository unitRepository, UnitImageRepository unitImageRepository) {
         this.unitRepository = unitRepository;
+        this.unitImageRepository = unitImageRepository;
     }
     @Override
@@ -17,3 +37,75 @@
     }
 
+    @Override
+    public Unit save(Unit unit, MultipartFile[] images) throws IOException {
+        Unit savedUnit = unitRepository.save(unit);
+        if (images != null && images.length > 0) {
+            processImageUploads(images, unit);
+        }
+
+        return savedUnit;
+    }
+
+    @Override
+    public Unit findById(Long id) {
+        return unitRepository.findById(id).orElseThrow(RuntimeException::new);
+    }
+
+    private void processImageUploads(MultipartFile[] images, Unit unit) throws IOException {
+        String uploadDir = "uploads/units/";
+        Path uploadPath = Paths.get(uploadDir);
+
+        if (!Files.exists(uploadPath)) {
+            Files.createDirectories(uploadPath);
+        }
+
+        for (int i = 0; i < images.length; i++) {
+            MultipartFile image = images[i];
+            if (image.isEmpty()) {
+                continue;
+            }
+            validateImageFile(image);
+            String originalFilename = image.getOriginalFilename();
+            String extension = getFileExtension(originalFilename);
+            String filename = String.format("property_%d_img_%03d.%s",
+                    unit.getId(), i + 1, extension);
+
+            Path destinationPath = uploadPath.resolve(filename);
+            Files.copy(image.getInputStream(), destinationPath);
+
+            String imagePath = "/uploads/units/" + filename;
+            UnitImage propertyImage = new UnitImage(imagePath, unit);
+            unitImageRepository.save(propertyImage);
+        }
+
+    }
+
+    private void validateImageFile(MultipartFile file) throws IOException {
+        if (file.getSize() > MAX_FILE_SIZE) {
+            throw new IOException("File size exceeds maximum allowed size of 5MB");
+        }
+
+        String filename = file.getOriginalFilename();
+        if (filename == null || filename.isEmpty()) {
+            throw new IOException("Invalid filename");
+        }
+
+        String extension = getFileExtension(filename).toLowerCase();
+        if (!ALLOWED_EXTENSIONS.contains(extension)) {
+            throw new IOException("File type not allowed. Allowed types: " + ALLOWED_EXTENSIONS);
+        }
+        String contentType = file.getContentType();
+        if (contentType == null || !contentType.startsWith("image/")) {
+            throw new IOException("File is not a valid image");
+        }
+    }
+
+    private String getFileExtension(String filename) {
+        if (filename == null || filename.isEmpty()) {
+            return "";
+        }
+        int lastDot = filename.lastIndexOf('.');
+        return lastDot == -1 ? "" : filename.substring(lastDot + 1);
+    }
+
 }
Index: src/main/java/com/example/domify/service/impl/UserServiceImpl.java
===================================================================
--- src/main/java/com/example/domify/service/impl/UserServiceImpl.java	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/java/com/example/domify/service/impl/UserServiceImpl.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -6,8 +6,10 @@
 import com.example.domify.repository.*;
 import com.example.domify.service.UserService;
+import jakarta.transaction.Transactional;
 import org.springframework.security.crypto.password.PasswordEncoder;
 import org.springframework.stereotype.Service;
 
 import java.math.BigDecimal;
+import java.math.RoundingMode;
 import java.time.LocalDate;
 
@@ -83,3 +85,26 @@
         return landlordProfileRepository.findById(userId).isPresent();
     }
+
+    @Override
+    public UserD findById(Long userId) {
+        return userRepository.findById(userId).orElseThrow(RuntimeException::new);
+    }
+
+    @Transactional
+    public void updateUserRating(Long userId, BigDecimal newRating) {
+        UserD user = userRepository.findById(userId)
+                .orElseThrow(() -> new IllegalArgumentException("User not found"));
+
+        // Calculate new average rating (you might want more sophisticated logic)
+        if (user.getRating().compareTo(BigDecimal.ZERO) == 0) {
+            user.setRating(newRating);
+        } else {
+            BigDecimal average = user.getRating()
+                    .add(newRating)
+                    .divide(BigDecimal.valueOf(2), 2, RoundingMode.HALF_UP);
+            user.setRating(average);
+        }
+
+        userRepository.save(user);
+    }
 }
Index: src/main/java/com/example/domify/web/LeaseController.java
===================================================================
--- src/main/java/com/example/domify/web/LeaseController.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/java/com/example/domify/web/LeaseController.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,166 @@
+package com.example.domify.web;
+
+import com.example.domify.model.*;
+import com.example.domify.service.*;
+import jakarta.servlet.http.HttpServletRequest;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.*;
+
+import java.math.BigDecimal;
+import java.time.LocalDate;
+import java.util.List;
+
+@Controller
+@RequestMapping("/lease")
+public class LeaseController {
+    private final LeaseService leaseService;
+    private final ListingService listingService;
+    private final TenantProfileService tenantProfileService;
+    private final LandlordProfileService landlordProfileService;
+    private final UserService userService;
+
+    public LeaseController(LeaseService leaseService,
+                           ListingService listingService,
+                           TenantProfileService tenantProfileService,
+                           LandlordProfileService landlordProfileService,
+                           UserService userService) {
+        this.leaseService = leaseService;
+        this.listingService = listingService;
+        this.tenantProfileService = tenantProfileService;
+        this.landlordProfileService = landlordProfileService;
+        this.userService = userService;
+    }
+
+    @GetMapping("/create")
+    public String showCreateForm(@RequestParam Long listingId,
+                                 @RequestParam Long tenantId,
+                                 Model model,
+                                 HttpServletRequest request) {
+        UserD user = (UserD) request.getSession().getAttribute("user");
+        if (user == null || !userService.isLandlord(user.getId())) {
+            return "redirect:/login";
+        }
+
+        model.addAttribute("listingId", listingId);
+        model.addAttribute("tenantId", tenantId);
+        return "create-lease";
+    }
+
+    @PostMapping("/create")
+    public String createLease(@RequestParam Long listingId,
+                              @RequestParam Long tenantId,
+                              @RequestParam LocalDate startDate,
+                              @RequestParam LocalDate endDate,
+                              @RequestParam BigDecimal rentAmount,
+                              @RequestParam BigDecimal depositAmount,
+                              HttpServletRequest request) {
+
+        try {
+            UserD landlordUser = (UserD) request.getSession().getAttribute("user");
+            if (landlordUser == null || !userService.isLandlord(landlordUser.getId())) {
+                return "redirect:/login";
+            }
+
+            Listing listing = listingService.findById(listingId);
+
+            TenantProfile tenant = tenantProfileService.findByUserId(tenantId);
+            System.out.println("TENANT: " + tenant.getId());
+            System.out.println("LANDLORD: " + landlordUser.getId());
+            LandlordProfile landlord = landlordProfileService.findByUserId(landlordUser.getId());
+
+            Lease lease = new Lease(
+                    startDate,
+                    endDate,
+                    rentAmount,
+                    depositAmount,
+                    listing,
+                    tenant,
+                    landlord
+            );
+
+            leaseService.save(lease);
+
+            listing.setStatus("изнајмено");
+            listingService.save(listing);
+
+            return "redirect:/properties/" + listing.getUnit().getProperty().getId();
+
+        } catch (Exception e) {
+            return "redirect:/lease/create?listingId=" + listingId + "&tenantId=" + tenantId;
+        }
+    }
+
+    @GetMapping
+    public String getUserLeases(Model model, HttpServletRequest request) {
+        UserD user = (UserD) request.getSession().getAttribute("user");
+        if (user == null) {
+            return "redirect:/login";
+        }
+
+        List<Lease> leases;
+        if (userService.isLandlord(user.getId())) {
+            leases = leaseService.findByLandlord(user.getId());
+        } else {
+            leases = leaseService.findByTenant(user.getId());
+        }
+
+        model.addAttribute("user", user);
+        model.addAttribute("leases", leases);
+        return "leases";
+    }
+
+    @GetMapping("/{id}/details")
+    public String getLeaseDetails(@PathVariable Long id,
+                                  Model model,
+                                  HttpServletRequest request) {
+        UserD user = (UserD) request.getSession().getAttribute("user");
+        if (user == null) {
+            return "redirect:/login";
+        }
+
+        Lease lease = leaseService.findById(id);
+
+        model.addAttribute("lease", lease);
+        model.addAttribute("user", user);
+        return "lease-details";
+    }
+
+    @PostMapping("/{id}/rate-landlord")
+    @ResponseBody
+    public String rateLandlord(@PathVariable Long id,
+                               @RequestParam Integer rating,
+                               HttpServletRequest request) {
+        UserD user = (UserD) request.getSession().getAttribute("user");
+        if (user == null) {
+            return "{\"status\":\"error\",\"message\":\"Not authenticated\"}";
+        }
+
+        try {
+            // Tenant rates landlord
+            leaseService.rateUser(id, user.getId(), rating, false);
+            return "{\"status\":\"success\",\"message\":\"Landlord rating saved\"}";
+        } catch (Exception e) {
+            return "{\"status\":\"error\",\"message\":\"" + e.getMessage() + "\"}";
+        }
+    }
+
+    @PostMapping("/{id}/rate-tenant")
+    @ResponseBody
+    public String rateTenant(@PathVariable Long id,
+                             @RequestParam Integer rating,
+                             HttpServletRequest request) {
+        UserD user = (UserD) request.getSession().getAttribute("user");
+        if (user == null) {
+            return "{\"status\":\"error\",\"message\":\"Not authenticated\"}";
+        }
+
+        try {
+            // Landlord rates tenant
+            leaseService.rateUser(id, user.getId(), rating, true);
+            return "{\"status\":\"success\",\"message\":\"Tenant rating saved\"}";
+        } catch (Exception e) {
+            return "{\"status\":\"error\",\"message\":\"" + e.getMessage() + "\"}";
+        }
+    }
+}
Index: src/main/java/com/example/domify/web/ListingController.java
===================================================================
--- src/main/java/com/example/domify/web/ListingController.java	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/java/com/example/domify/web/ListingController.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -1,15 +1,13 @@
 package com.example.domify.web;
 
-import com.example.domify.model.UserD;
-import com.example.domify.service.AddressService;
-import com.example.domify.service.ListingService;
-import com.example.domify.service.UserService;
+import com.example.domify.model.*;
+import com.example.domify.service.*;
 import jakarta.servlet.http.HttpServletRequest;
 import org.springframework.stereotype.Controller;
 import org.springframework.ui.Model;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.*;
+
+import java.time.LocalDate;
+import java.util.List;
 
 @Controller
@@ -18,11 +16,16 @@
     private final AddressService addressService;
     private final ListingService listingService;
+    private final UserService userService;
+    private final UnitService unitService;
+    private final InterestedService interestedService;
+    private final TenantProfileService tenantProfileService;
 
-    private final UserService userService;
-
-    public ListingController(AddressService addressService, ListingService listingService, UserService userService) {
+    public ListingController(AddressService addressService, ListingService listingService, UserService userService, UnitService unitService, InterestedService interestedService, TenantProfileService tenantProfileService) {
         this.addressService = addressService;
         this.listingService = listingService;
         this.userService = userService;
+        this.unitService = unitService;
+        this.interestedService = interestedService;
+        this.tenantProfileService = tenantProfileService;
     }
 
@@ -42,3 +45,96 @@
         return "index";
     }
+
+    @GetMapping("/create")
+    public String showCreateForm(@RequestParam Long unitId, Model model) {
+        model.addAttribute("unitId", unitId);
+        return "create-listing";
+    }
+
+    @PostMapping("/save")
+    public String saveListing(
+            @RequestParam String title,
+            @RequestParam String status,
+            @RequestParam LocalDate availableFrom,
+            @RequestParam LocalDate availableTo,
+            @RequestParam(required = false) String description,
+            @RequestParam Long unitId,
+            HttpServletRequest request) {
+
+        try {
+            UserD user = (UserD) request.getSession().getAttribute("user");
+            if (user == null || !userService.isLandlord(user.getId())) {
+                return "redirect:/listings";
+            }
+
+            Unit unit = unitService.findById(unitId);
+
+            Listing listing = new Listing(
+                    title,
+                    availableFrom,
+                    availableTo,
+                    status,
+                    description,
+                    unit
+            );
+
+            listingService.save(listing);
+
+            return "redirect:/properties/" + unit.getProperty().getId();
+
+        } catch (Exception e) {
+            return "redirect:/listings/create?unitId=" + unitId;
+        }
+    }
+
+    @GetMapping("/listings/{id}")
+    public String getListingDetails(@PathVariable Long id,
+                                    Model model,
+                                    HttpServletRequest request) {
+        UserD user = (UserD) request.getSession().getAttribute("user");
+        boolean isLandlord = userService.isLandlord(user.getId());
+        Listing listing = listingService.findById(id);
+        model.addAttribute("listing", listing);
+        model.addAttribute("isLandlord", isLandlord);
+        return "listing";
+    }
+
+    @GetMapping("/{id}/applications")
+    public String getInterestedTenants(@PathVariable Long id, Model model) {
+        Listing listing = listingService.findById(id);
+
+        List<Interested> interestedList = interestedService.findByListingId(id);
+
+        model.addAttribute("listing", listing);
+        model.addAttribute("interestedList", interestedList);
+        return "interested";
+    }
+
+    @GetMapping("/{id}/apply")
+    public String submitApplication(@PathVariable Long id,
+                                    HttpServletRequest request) {
+        UserD user = (UserD) request.getSession().getAttribute("user");
+        if (user == null) {
+            return "redirect:/login";
+        }
+
+        try {
+            Listing listing = listingService.findById(id);
+
+            TenantProfile tenantProfile = tenantProfileService.findByUserId(user.getId());
+
+            if (interestedService.existsByListingAndTenant(id, user.getId())) {
+                return "redirect:/listings/" + id;
+            }
+
+            Interested application = new Interested(listing, tenantProfile);
+            interestedService.save(application);
+
+            return "redirect:/listings/" + id;
+
+        } catch (Exception e) {
+            return "redirect:/listings/" + id + "/apply";
+        }
+    }
+
 }
Index: src/main/java/com/example/domify/web/UnitController.java
===================================================================
--- src/main/java/com/example/domify/web/UnitController.java	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/java/com/example/domify/web/UnitController.java	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -2,5 +2,8 @@
 
 
+import com.example.domify.model.Property;
+import com.example.domify.model.Unit;
 import com.example.domify.model.UserD;
+import com.example.domify.service.PropertiesService;
 import com.example.domify.service.UnitService;
 import com.example.domify.service.UserService;
@@ -8,7 +11,8 @@
 import org.springframework.stereotype.Controller;
 import org.springframework.ui.Model;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.math.BigDecimal;
 
 @Controller
@@ -17,8 +21,10 @@
     private final UserService userService;
     private final UnitService unitService;
+    private final PropertiesService propertiesService;
 
-    public UnitController(UserService userService, UnitService unitService) {
+    public UnitController(UserService userService, UnitService unitService, PropertiesService propertiesService) {
         this.userService = userService;
         this.unitService = unitService;
+        this.propertiesService = propertiesService;
     }
 
@@ -36,3 +42,34 @@
         return "unit";
     }
+
+    @GetMapping("/add")
+    public String getAddPage(@RequestParam Long propertyId, Model model) {
+        model.addAttribute("propertyId", propertyId);
+        return "create-unit";
+    }
+
+    @PostMapping("/save")
+    public String saveUnitForm(
+            @RequestParam String unitNumber,
+            @RequestParam Integer floor,
+            @RequestParam Integer bedrooms,
+            @RequestParam Integer bathrooms,
+            @RequestParam Double area,
+            @RequestParam Double rent,
+            @RequestParam Long propertyId,
+            @RequestParam(value = "images", required = false) MultipartFile[] images) {
+
+        try {
+            BigDecimal areaSqM = BigDecimal.valueOf(area);
+            BigDecimal rentAmount = BigDecimal.valueOf(rent);
+
+            Property property = propertiesService.findById(propertyId);
+
+            Unit unit = new Unit(unitNumber, floor, bedrooms, bathrooms, areaSqM, rentAmount, property);
+            unitService.save(unit, images);
+            return "redirect:/properties/" + propertyId + "/details";
+        } catch (Exception e) {
+            return "redirect:/units/add?propertyId=" + propertyId;
+        }
+    }
 }
Index: src/main/resources/application.properties
===================================================================
--- src/main/resources/application.properties	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/resources/application.properties	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -7,4 +7,6 @@
 spring.datasource.driver-class-name=org.postgresql.Driver
 
+
+spring.jpa.properties.hibernate.default_schema=domify
 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
 spring.web.resources.add-mappings=true
Index: src/main/resources/templates/create-lease.html
===================================================================
--- src/main/resources/templates/create-lease.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/resources/templates/create-lease.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,104 @@
+<!DOCTYPE html>
+<html lang="mk">
+<head>
+  <meta charset="UTF-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <title>Domify - Додади имот</title>
+  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
+  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"
+        integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous">
+  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
+
+  <style>
+    body {
+      font-family: 'Inter', sans-serif;
+      background: linear-gradient(135deg, #f5fafd 0%, #e3f0ff 100%);
+    }
+
+    .header-gradient {
+      background: linear-gradient(90deg, #1976d2 0%, #64b5f6 100%);
+    }
+    .form-label {
+      font-weight: 600;
+      color: #1976d2;
+    }
+  </style>
+</head>
+<body>
+<header class="header-gradient text-white py-3 rounded-bottom-4 shadow-sm">
+  <div class="container-fluid">
+    <div class="row align-items-center">
+      <div class="col-md-6 d-flex align-items-center">
+        <img src="/logo.png" class="ms-5 rounded-pill" style="width: 50px; height: 50px; object-fit: cover;">
+        <h1 class="h2 mb-0 ms-3 me-4">Domify</h1>
+        <button class="btn btn-outline-light">Мои изнајмувања</button>
+      </div>
+      <div class="col-md-6 d-flex justify-content-end align-items-center">
+        <div class="dropdown d-inline-block me-5">
+          <button class="btn btn-outline-light dropdown-toggle" type="button" id="userDropdown"
+                  data-bs-toggle="dropdown" aria-expanded="false">
+            <i class="bi bi-person-circle me-2"></i>Стефан Николов
+          </button>
+          <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="userDropdown">
+            <li><a class="dropdown-item" href="#">Профил</a></li>
+            <li><a class="dropdown-item" href="#">Мои изнајмувања</a></li>
+            <li><a class="dropdown-item" href="#">Направи оглас</a></li>
+            <li><a class="dropdown-item" href="#">Мои имоти</a></li>
+            <li>
+              <hr class="dropdown-divider">
+            </li>
+            <li><a class="dropdown-item" href="#">Одјави се</a></li>
+          </ul>
+        </div>
+      </div>
+    </div>
+  </div>
+</header>
+
+<div class="container my-5">
+  <div class="row justify-content-center">
+    <div class="w-50">
+      <a th:href="@{/listings/{id}/applications(id=${listingId})}" class="btn btn-outline-primary mb-3">
+        <i class="bi bi-arrow-left me-2"></i> Назад
+      </a>
+      <div class="p-4 bg-light-subtle rounded-5">
+        <h3 class="my-3 text-primary fw-bold">Креирај изнајмување</h3>
+        <form class="mt-4" th:action="@{/lease/create}" method="post">
+          <input type="hidden" name="listingId" th:value="${listingId}">
+          <input type="hidden" name="tenantId" th:value="${tenantId}">
+
+          <div class="mb-3">
+            <label for="startDate" class="form-label">Почетен датум</label>
+            <input type="date" class="form-control" id="startDate" name="startDate" required>
+          </div>
+
+          <div class="mb-3">
+            <label for="endDate" class="form-label">Краен датум</label>
+            <input type="date" class="form-control" id="endDate" name="endDate" required>
+          </div>
+
+          <div class="mb-3">
+            <label for="rent" class="form-label">Кирија (денари)</label>
+            <input type="number" class="form-control" id="rent" name="rentAmount"
+                   step="0.01" min="0" placeholder="15000.00" required>
+          </div>
+
+          <div class="mb-3">
+            <label for="deposit" class="form-label">Депозит (денари)</label>
+            <input type="number" class="form-control" id="deposit" name="depositAmount"
+                   step="0.01" min="0" placeholder="30000.00" required>
+          </div>
+
+          <div class="d-flex justify-content-center mt-4">
+            <button type="submit" class="btn header-gradient text-white w-75">Креирај изнајмување</button>
+          </div>
+        </form>
+      </div>
+    </div>
+  </div>
+</div>
+
+<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js"
+        integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous"></script>
+</body>
+</html>
Index: src/main/resources/templates/create-listing.html
===================================================================
--- src/main/resources/templates/create-listing.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/resources/templates/create-listing.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,130 @@
+<!DOCTYPE html>
+<html lang="mk">
+<head>
+  <meta charset="UTF-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <title>Domify - Додади единица</title>
+  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
+  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"
+        integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous">
+  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
+
+  <style>
+    body {
+      font-family: 'Inter', sans-serif;
+      background: linear-gradient(135deg, #f5fafd 0%, #e3f0ff 100%);
+    }
+
+    .header-gradient {
+      background: linear-gradient(90deg, #1976d2 0%, #64b5f6 100%);
+    }
+
+    .form-section {
+      background-color: white;
+      border-radius: 1rem;
+      box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
+    }
+
+    .form-label {
+      font-weight: 600;
+      color: #1976d2;
+    }
+  </style>
+</head>
+<body>
+<header class="header-gradient text-white py-3 rounded-bottom-4 shadow-sm">
+  <div class="container-fluid">
+    <div class="row align-items-center">
+      <div class="col-md-6 d-flex align-items-center">
+        <img src="/logo.png" class="ms-5 rounded-pill" style="width: 50px; height: 50px; object-fit: cover;">
+        <h1 class="h2 mb-0 ms-3 me-4">Domify</h1>
+        <button class="btn btn-outline-light">Мои изнајмувања</button>
+      </div>
+      <div class="col-md-6 d-flex justify-content-end align-items-center">
+        <div class="dropdown d-inline-block me-5">
+          <button class="btn btn-outline-light dropdown-toggle" type="button" id="userDropdown"
+                  data-bs-toggle="dropdown" aria-expanded="false">
+            <i class="bi bi-person-circle me-2"></i>Стефан Николов
+          </button>
+          <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="userDropdown">
+            <li><a class="dropdown-item" href="#">Профил</a></li>
+            <li><a class="dropdown-item" href="#">Мои изнајмувања</a></li>
+            <li><a class="dropdown-item" href="#">Направи оглас</a></li>
+            <li><a class="dropdown-item" href="#">Мои имоти</a></li>
+            <li>
+              <hr class="dropdown-divider">
+            </li>
+            <li><a class="dropdown-item" href="#">Одјави се</a></li>
+          </ul>
+        </div>
+      </div>
+    </div>
+  </div>
+</header>
+
+<div class="container my-5">
+  <div class="row justify-content-center">
+    <div class="col-lg-10">
+      <div class="d-flex justify-content-between align-items-center mb-4">
+        <h2 class="text-primary fw-bold mb-0">Додади нов оглас</h2>
+        <a th:href="@{/properties/{id}(id=${unitId})}" class="btn btn-outline-primary">
+          <i class="bi bi-arrow-left me-2"></i> Назад
+        </a>
+      </div>
+
+      <form th:action="@{/listings/save}" method="post" enctype="multipart/form-data">
+        <input type="hidden" name="unitId" th:value="${unitId}">
+
+        <div class="form-section p-4 mb-4">
+          <h4 class="text-primary mb-4 border-bottom pb-2">Основни информации</h4>
+
+          <div class="row g-3">
+            <div class="col-md-8">
+              <label for="title" class="form-label">Наслов на оглас</label>
+              <input type="text" class="form-control" id="title" name="title"
+                     placeholder="Пример Стан во Тафталиџе" required>
+            </div>
+
+            <div class="col-md-4">
+              <label for="status" class="form-label">Статус</label>
+              <select class="form-select" id="status" name="status" required>
+                <option value="available">Слободно</option>
+                <option value="reserved">Резервирано</option>
+                <option value="rented">Изнајмено</option>
+              </select>
+            </div>
+
+            <div class="col-md-6">
+              <label for="availableFrom" class="form-label">Достапно од</label>
+              <input type="date" class="form-control" id="availableFrom" name="availableFrom" required>
+            </div>
+
+            <div class="col-md-6">
+              <label for="availableTo" class="form-label">Достапно до</label>
+              <input type="date" class="form-control" id="availableTo" name="availableTo" required>
+            </div>
+          </div>
+        </div>
+
+        <div class="form-section p-4 mb-4">
+          <h4 class="text-primary mb-4 border-bottom pb-2">Опис</h4>
+          <div class="mb-3">
+            <label for="description" class="form-label">Релевантни информации за единицата</label>
+            <textarea class="form-control" id="description" name="description"
+                      rows="4" placeholder="Опис на огласот..."></textarea>
+          </div>
+        </div>
+
+        <div class="d-flex justify-content-end gap-3 mb-5">
+          <button type="submit" class="btn header-gradient text-white px-4">Направи оглас</button>
+        </div>
+      </form>
+    </div>
+  </div>
+</div>
+
+
+<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js"
+        integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous"></script>
+</body>
+</html>
Index: src/main/resources/templates/create-unit.html
===================================================================
--- src/main/resources/templates/create-unit.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/resources/templates/create-unit.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,140 @@
+<!DOCTYPE html>
+<html lang="mk">
+<head>
+  <meta charset="UTF-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <title>Domify - Додади единица</title>
+  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
+  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"
+        integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous">
+  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
+
+  <style>
+    body {
+      font-family: 'Inter', sans-serif;
+      background: linear-gradient(135deg, #f5fafd 0%, #e3f0ff 100%);
+    }
+
+    .header-gradient {
+      background: linear-gradient(90deg, #1976d2 0%, #64b5f6 100%);
+    }
+
+    .form-section {
+      background-color: white;
+      border-radius: 1rem;
+      box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
+    }
+
+    .form-label {
+      font-weight: 600;
+      color: #1976d2;
+    }
+  </style>
+</head>
+<body>
+<header class="header-gradient text-white py-3 rounded-bottom-4 shadow-sm">
+  <div class="container-fluid">
+    <div class="row align-items-center">
+      <div class="col-md-6 d-flex align-items-center">
+        <img src="/logo.png" class="ms-5 rounded-pill" style="width: 50px; height: 50px; object-fit: cover;">
+        <h1 class="h2 mb-0 ms-3 me-4">Domify</h1>
+        <button class="btn btn-outline-light">Мои изнајмувања</button>
+      </div>
+      <div class="col-md-6 d-flex justify-content-end align-items-center">
+        <div class="dropdown d-inline-block me-5">
+          <button class="btn btn-outline-light dropdown-toggle" type="button" id="userDropdown"
+                  data-bs-toggle="dropdown" aria-expanded="false">
+            <i class="bi bi-person-circle me-2"></i>Стефан Николов
+          </button>
+          <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="userDropdown">
+            <li><a class="dropdown-item" href="#">Профил</a></li>
+            <li><a class="dropdown-item" href="#">Мои изнајмувања</a></li>
+            <li><a class="dropdown-item" href="#">Направи оглас</a></li>
+            <li><a class="dropdown-item" href="#">Мои имоти</a></li>
+            <li>
+              <hr class="dropdown-divider">
+            </li>
+            <li><a class="dropdown-item" href="#">Одјави се</a></li>
+          </ul>
+        </div>
+      </div>
+    </div>
+  </div>
+</header>
+
+<div class="container my-5">
+  <div class="row justify-content-center">
+    <div class="col-lg-10">
+      <!-- Title and back button remain the same -->
+
+      <form th:action="@{/units/save}" method="post" enctype="multipart/form-data">
+        <!-- Hidden field for propertyId -->
+        <input type="hidden" name="propertyId" th:value="${propertyId}">
+
+        <div class="form-section p-4 mb-4">
+          <h4 class="text-primary mb-4 border-bottom pb-2">Основни информации</h4>
+
+          <div class="row g-3">
+            <div class="col-md-4">
+              <label for="unitNumber" class="form-label">Идентификатор на единица</label>
+              <input type="text" class="form-control" id="unitNumber" name="unitNumber" placeholder="Пример 12A" required>
+            </div>
+
+            <div class="col-md-4">
+              <label for="floor" class="form-label">Кат</label>
+              <input type="number" class="form-control" id="floor" name="floor" placeholder="Пример 3" required>
+            </div>
+
+            <div class="col-md-4">
+              <label for="bedrooms" class="form-label">Број на спални соби</label>
+              <input type="number" class="form-control" id="bedrooms" name="bedrooms" placeholder="Пример 2" required>
+            </div>
+
+            <div class="col-md-4">
+              <label for="bathrooms" class="form-label">Број на купатила</label>
+              <input type="number" class="form-control" id="bathrooms" name="bathrooms" placeholder="Пример 1" required>
+            </div>
+
+            <div class="col-md-4">
+              <label for="area" class="form-label">Површина (m²)</label>
+              <input type="number" step="0.01" class="form-control" id="area" name="area" placeholder="Пример 65.50" required>
+            </div>
+
+            <div class="col-md-4">
+              <label for="rent" class="form-label">Кирија (ден)</label>
+              <div class="input-group">
+                <span class="input-group-text">MKD</span>
+                <input type="number" class="form-control" id="rent" name="rent" placeholder="Пример 15000" required>
+              </div>
+            </div>
+          </div>
+        </div>
+
+        <div class="form-section p-4 mb-4">
+          <h4 class="text-primary mb-4 border-bottom pb-2">Слики од единицата</h4>
+
+          <div class="border rounded-3 p-4 text-center">
+            <i class="bi bi-cloud-arrow-up fs-1 text-muted"></i>
+            <p class="text-muted mt-2">Влечете и пуштете ги сликите овдека или изберете ги посебно</p>
+            <input type="file" id="images" name="images" multiple accept="image/*" style="display: none;">
+            <button type="button" class="btn btn-outline-primary" onclick="document.getElementById('images').click()">Избери слики</button>
+          </div>
+
+          <div class="mt-3">
+            <small class="text-muted">Максимална големина на слика: 5MB</small>
+          </div>
+        </div>
+
+        <div class="d-flex justify-content-end gap-3 mb-5">
+          <button type="button" class="btn btn-outline-secondary" onclick="history.back()">Откажи</button>
+          <button type="submit" class="btn header-gradient text-white px-4">Зачувај единица</button>
+        </div>
+      </form>
+    </div>
+  </div>
+</div>
+
+<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js"
+        integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous"></script>
+</body>
+</html>
Index: src/main/resources/templates/index.html
===================================================================
--- src/main/resources/templates/index.html	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/resources/templates/index.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -150,5 +150,5 @@
             <span class="badge bg-primary fs-6 py-2 px-3"
                   th:text="${list.unit.rentAmount + ' ден/месечно'}">ЦЕНА</span>
-            <a href="#" class="btn btn-primary">Детали</a>
+            <a th:href="@{'/listings/' + ${list.id}}" class="btn btn-primary">Детали</a>
           </div>
         </div>
Index: src/main/resources/templates/interested.html
===================================================================
--- src/main/resources/templates/interested.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/resources/templates/interested.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,86 @@
+<!DOCTYPE html>
+<html lang="mk" xmlns:th="http://www.thymeleaf.org">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Domify - Пријавени изнајмувачи</title>
+    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
+    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"
+          integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous">
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
+
+    <style>
+        body {
+            font-family: 'Inter', sans-serif;
+            background: linear-gradient(135deg, #f5fafd 0%, #e3f0ff 100%);
+        }
+        .header-gradient {
+            background: linear-gradient(90deg, #1976d2 0%, #64b5f6 100%);
+        }
+    </style>
+</head>
+<body>
+<header class="header-gradient text-white py-3 rounded-bottom-4 shadow-sm">
+    <div class="container-fluid">
+        <div class="row align-items-center">
+            <div class="col-md-6 d-flex align-items-center">
+                <img src="/images/logo.png" class="ms-5 rounded-pill"
+                     style="width: 50px; height: 50px; object-fit: cover;">
+                <h1 class="h2 mb-0 ms-3 me-4">Domify</h1>
+                <button class="btn btn-outline-light">Мои изнајмувања</button>
+            </div>
+
+            <div class="col-md-6 d-flex justify-content-end align-items-center">
+                <div class="dropdown d-inline-block me-5">
+                    <button class="btn btn-outline-light dropdown-toggle" type="button" id="userDropdown"
+                            data-bs-toggle="dropdown" aria-expanded="false">
+                        <i class="bi bi-person-circle me-2"></i>Стефан Николов
+                    </button>
+                    <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="userDropdown">
+                        <li><a class="dropdown-item" href="#">Профил</a></li>
+                        <li><a class="dropdown-item" href="#">Мои изнајмувања</a></li>
+                        <li><a class="dropdown-item" href="#">Направи оглас</a></li>
+                        <li><a class="dropdown-item" href="#">Мои имоти</a></li>
+                        <li>
+                            <hr class="dropdown-divider">
+                        </li>
+                        <li><a class="dropdown-item" href="#">Одјави се</a></li>
+                    </ul>
+                </div>
+            </div>
+        </div>
+    </div>
+</header>
+
+<div class="container-fluid">
+    <div class="row">
+        <div class="m-auto mt-5 w-75">
+            <a th:href="@{/listings/{id}(id=${listing.id})}" class="btn btn-outline-primary mb-3">
+                <i class="bi bi-arrow-left me-2"></i> Назад
+            </a>
+            <div class="p-4 bg-light-subtle rounded-5">
+                <h2 class="my-3" style="color:#1976d2;">Пријавени изнајмувачи за: <span th:text="${listing.title}">Еднособен стан</span></h2>
+
+                <div th:each="interested : ${interestedList}" class="d-flex justify-content-between align-items-center px-3 py-2 bg-light rounded-3 mb-3">
+                    <div class="py-2 ms-3">
+                        <h5 class="fw-bold text-primary mt-1" th:text="${interested.tenantProfile.user.firstName + ' ' + interested.tenantProfile.user.lastName}">Stefan Nikolov</h5>
+                        <p class="mb-0" th:text="${interested.tenantProfile.user.email}">stefan.nikolov@gmail.com</p>
+                        <p class="mb-0 fw-bold text-success">Рејтинг:
+                            <span th:text="${interested.tenantProfile.user.rating + '/5'}">3/5</span>
+                        </p>                    </div>
+                    <div class="me-3">
+                        <a th:href="@{/lease/create(listingId=${listing.id}, tenantId=${interested.tenantProfile.id})}"
+                           class="btn header-gradient text-white">
+                            Изнајми
+                        </a>
+                    </div>
+                </div>
+
+            </div>
+        </div>
+    </div>
+</div>
+
+<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js"></script>
+</body>
+</html>
Index: src/main/resources/templates/leases.html
===================================================================
--- src/main/resources/templates/leases.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/resources/templates/leases.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,150 @@
+<!DOCTYPE html>
+<html lang="mk" xmlns:th="http://www.thymeleaf.org">
+<head>
+  <meta charset="UTF-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <title>Domify - Изнајмувања</title>
+  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
+  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"
+        integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous">
+  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
+
+  <style>
+    body {
+      font-family: 'Inter', sans-serif;
+      background: linear-gradient(135deg, #f5fafd 0%, #e3f0ff 100%);
+    }
+    .header-gradient {
+      background: linear-gradient(90deg, #1976d2 0%, #64b5f6 100%);
+    }
+    .star-rating i {
+      cursor: pointer;
+      transition: color 0.2s;
+      margin-right: 4px;
+    }
+  </style>
+</head>
+<body>
+<header class="header-gradient text-white py-3 rounded-bottom-4 shadow-sm">
+  <div class="container-fluid">
+    <div class="row align-items-center">
+      <div class="col-md-6 d-flex align-items-center">
+        <img th:src="@{/images/logo.png}" class="ms-5 rounded-pill" style="width: 50px; height: 50px; object-fit: cover;">
+        <h1 class="h2 mb-0 ms-3 me-4">Domify</h1>
+        <button class="btn btn-outline-light">Мои изнајмувања</button>
+      </div>
+      <div class="col-md-6 text-end">
+        <span class="btn btn-outline-light me-2">
+          <i class="bi bi-person-circle me-2"></i>
+          <span th:text="${user.firstName + ' ' + user.lastName}">Стефан Николов</span>
+        </span>
+        <a th:href="@{/logout}" class="btn btn-outline-light">Одјави се</a>
+      </div>
+    </div>
+  </div>
+</header>
+
+<div class="m-auto w-75">
+  <h2 class="mt-5" style="color:#1976d2;">Мои изнајмувања</h2>
+  <div class="table-responsive rounded-4 shadow-sm">
+    <table class="table table-hover align-middle mb-0">
+      <thead class="table-primary" style="background-color: #e3f2fd;">
+      <tr>
+        <th class="py-3 px-4">Име на оглас</th>
+        <th class="py-3 px-4">Износ (ден.)</th>
+        <th class="py-3 px-4">Од</th>
+        <th class="py-3 px-4">До</th>
+        <th class="py-3 px-4">Оценка</th>
+        <th class="py-3 px-4">Детали</th>
+      </tr>
+      </thead>
+      <tbody>
+      <tr th:each="lease : ${leases}">
+        <td class="py-3 px-4" th:text="${lease.listing.title}">Удобен еднособен стан</td>
+        <td class="py-3 px-4 fw-bold text-primary" th:text="${#numbers.formatDecimal(lease.rentAmount, 0, 'COMMA', 2, 'POINT')}">16,800</td>
+        <td class="py-3 px-4" th:text="${#temporals.format(lease.startDate, 'yyyy-MM-dd')}">2025-01-01</td>
+        <td class="py-3 px-4" th:text="${#temporals.format(lease.endDate, 'yyyy-MM-dd')}">2025-12-31</td>
+
+        <td class="py-3 px-4">
+          <div th:if="${userService.isLandlord(user.id)}">
+            <div class="star-rating" th:attr="data-lease-id=${lease.id},data-rate-type='tenant'">
+              <i th:each="star : ${#numbers.sequence(1, 5)}"
+                 th:classappend="${lease.tenant.user.rating >= star} ? 'bi-star-fill' : 'bi-star'"
+                 class="bi fs-4 text-warning"
+                 th:attr="data-value=${star}"></i>
+            </div>
+          </div>
+          <div th:unless="${userService.isLandlord(user.id)}">
+            <div class="star-rating" th:attr="data-lease-id=${lease.id},data-rate-type='landlord'">
+              <i th:each="star : ${#numbers.sequence(1, 5)}"
+                 th:classappend="${lease.landlord.user.rating >= star} ? 'bi-star-fill' : 'bi-star'"
+                 class="bi fs-4 text-warning"
+                 th:attr="data-value=${star}"></i>
+            </div>
+          </div>
+        </td>
+
+        <td class="py-3 px-4">
+          <a th:href="@{/leases/{id}/details(id=${lease.id})}"
+             class="btn btn-sm btn-outline-primary rounded-pill px-3">
+            Види детали
+          </a>
+        </td>
+      </tr>
+      </tbody>
+    </table>
+  </div>
+</div>
+
+<script th:inline="javascript">
+  document.querySelectorAll('.star-rating').forEach(container => {
+    const stars = container.querySelectorAll('i');
+    let currentRating = 0;
+    const leaseId = container.dataset.leaseId;
+
+    function setStars(rating) {
+      stars.forEach(star => {
+        star.classList.toggle('bi-star-fill', star.dataset.value <= rating);
+        star.classList.toggle('bi-star', star.dataset.value > rating);
+      });
+    }
+
+    stars.forEach(star => {
+      star.addEventListener('mouseenter', () => {
+        setStars(star.dataset.value);
+      });
+
+      star.addEventListener('mouseleave', () => {
+        setStars(currentRating);
+      });
+
+      star.addEventListener('click', () => {
+        currentRating = star.dataset.value;
+        setStars(currentRating);
+
+        fetch('/api/leases/' + leaseId + '/rate', {
+          method: 'POST',
+          headers: {
+            'Content-Type': 'application/json',
+          },
+          body: JSON.stringify({ rating: currentRating }),
+        })
+                .then(response => {
+                  if (!response.ok) throw new Error('Грешка при испраќање на оценката');
+                  return response.json();
+                })
+                .then(data => {
+                  console.log('Rating saved:', data);
+                })
+                .catch(err => {
+                  alert('Грешка при испраќање на оценката');
+                  console.error(err);
+                  setStars(currentRating);
+                });
+      });
+    });
+  });
+</script>
+
+</body>
+</html>
Index: src/main/resources/templates/listing.html
===================================================================
--- src/main/resources/templates/listing.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
+++ src/main/resources/templates/listing.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -0,0 +1,94 @@
+<!DOCTYPE html>
+<html lang="mk" xmlns:th="http://www.thymeleaf.org">
+<head>
+  <meta charset="UTF-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <title>Domify - Заинтересирани</title>
+  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
+  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"
+        integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous">
+  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
+
+  <style>
+    body {
+      background: linear-gradient(135deg, #f5fafd 0%, #e3f0ff 100%)
+    }
+
+    .header-gradient {
+      background: linear-gradient(90deg, #1976d2 0%, #64b5f6 100%);
+    }
+  </style>
+</head>
+<body>
+<header class="header-gradient text-white py-3 rounded-bottom-4 shadow-sm">
+  <div class="container-fluid">
+    <div class="row align-items-center">
+      <div class="col-md-6 d-flex align-items-center">
+        <img src="logo.png" class="ms-5 rounded-pill" style="width: 50px; height: 50px; object-fit: cover;">
+        <h1 class="h2 mb-0 ms-3 me-4">Domify</h1>
+        <button class="btn btn-outline-light">Мои изнајмувања</button>
+      </div>
+      <div class="col-md-6 text-end">
+        <button class="btn btn-outline-light me-2">
+          <i class="bi bi-person-circle me-2"></i>Стефан Николов
+        </button>
+        <button class="btn btn-outline-light">Одјави се</button>
+      </div>
+    </div>
+  </div>
+</header>
+
+<div class="mt-4 bg-light-subtle rounded-4 shadow-sm p-4 m-auto mb-4" style="width: 85%;">
+  <a th:href="@{/listings}" class="btn btn-outline-primary">
+    <i class="bi bi-arrow-left me-2"></i> Назад
+  </a>
+
+  <div class="d-flex justify-content-between align-items-start gap-4">
+    <div class="m-auto">
+      <h2 class="text-primary mb-4 fw-bold" th:text="${listing.title}">Удобен еднособен стан</h2>
+
+      <div class="border-top border-bottom py-3">
+        <div class="d-flex justify-content-between py-2">
+          <span class="text-primary fw-medium">Достапно од:</span>
+          <span class="text-dark" th:text="${#temporals.format(listing.availableFrom, 'yyyy-MM-dd')}">2024-07-01</span>
+        </div>
+
+        <div class="d-flex justify-content-between py-2">
+          <span class="text-primary fw-medium">Достапно до:</span>
+          <span class="text-dark" th:text="${#temporals.format(listing.availableTo, 'yyyy-MM-dd')}">2025-07-01</span>
+        </div>
+      </div>
+
+      <div class="pt-3">
+        <div class="d-flex justify-content-between py-2">
+          <span class="text-primary fw-medium">Износ на наем:</span>
+          <span class="text-dark fw-bold" th:text="${listing.unit.rentAmount} + ' ден.'">16.800 <small>ден.</small></span>
+        </div>
+
+        <div class="d-flex justify-content-between py-2">
+          <span class="text-primary fw-medium">Депозит:</span>
+          <span class="text-dark fw-bold" th:text="${listing.unit.rentAmount * 2} + ' ден.'">33.600 <small>ден.</small></span>
+        </div>
+      </div>
+      <div class="d-flex justify-content-between">
+        <a th:if="${isLandlord}" th:href="@{/listings/{id}/applications(id=${listing.id})}" class="mt-3 btn header-gradient text-white">Преглед на пријавени</a>
+        <a th:if="${!isLandlord}" th:href="@{/listings/{id}/apply(id=${listing.id})}" class="mt-3 btn header-gradient text-white">Аплицирај за наем</a>
+        <a th:href="@{/units/{id}(id=${listing.unit.id})}" class="mt-3 btn header-gradient text-white">Детали</a>
+      </div>
+    </div>
+
+    <div style="width: 55%;">
+      <img th:src="${listing.unit.images[0].image}"
+           class="img-fluid rounded-3 shadow-sm"
+           style="object-fit: cover;">
+    </div>
+  </div>
+
+  <div class="bg-light mt-3 p-4 rounded-4 shadow-sm">
+    <h4>Опис на огласот:</h4>
+    <p th:text="${listing.description}">Пространа едносемејна куќа во мирна станбена област може да се договараме и за останатите работи, јавете се на 072334345 и ќе видиме како што. Без студенти и без агенти!</p>
+  </div>
+</div>
+
+</body>
+</html>
Index: src/main/resources/templates/property.html
===================================================================
--- src/main/resources/templates/property.html	(revision 88d3f17d30c6ece2fa0d6f45a1155f2c748eb549)
+++ src/main/resources/templates/property.html	(revision 8c091e231d61e8a97aafa544e98c1b75fec85a96)
@@ -98,5 +98,4 @@
       </div>
       <div class="d-flex justify-content-between">
-        <button class="mt-3 btn header-gradient text-white">Преглед на пријавени</button>
         <button class="mt-3 btn header-gradient text-white">Детали</button>
       </div>
