<?php
require_once 'includes/User.php';

$me = User::getCurrentUser();
$lg = User::isLoggedIn();
?>

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Allura Dry Clean</title>
  <?php include 'includes/header.php'; ?>
</head>
<body>
  <div class="container">
    <div class="content">
      <h1>Welcome to Allura Dry Clean</h1>
      <h2>Best Laundry Services</h2>
      <p>Try our services today. We provide laundry and dry cleaning services.</p>
      
      <?php if (!$lg): ?>
        <a href="login.php" class="btn">Login</a>
      <?php else: ?>
        <a href="php/profile.php" class="btn">My Account</a>
      <?php endif; ?>
    </div>
    <div class="image">
      <img src="img/graphic1.png">
    </div>
  </div>
  
  <div class="why-choose-us">
    <div class="why-choose-container">
      <h2>Why Choose Us</h2>
      <div class="features-grid">
        <div class="feature-item">
          <div class="feature-icon">
            <i class="fas fa-clock"></i>
          </div>
          <h3>Fast Service</h3>
          <p>Quick and reliable laundry with on-time delivery</p>
        </div>
        
        <div class="feature-item">
          <div class="feature-icon">
            <i class="fas fa-dollar-sign"></i>
          </div>
          <h3>Affordable Prices</h3>
          <p>Competitive pricing that suits everyone</p>
        </div>
        
        <div class="feature-item">
          <div class="feature-icon">
            <i class="fas fa-leaf"></i>
          </div>
          <h3>Eco-Friendly</h3>
          <p>Environmentally safe cleaning technologies</p>
        </div>
        
        <div class="feature-item">
          <div class="feature-icon">
            <i class="fas fa-star"></i>
          </div>
          <h3>High Quality</h3>
          <p>Premium cleaning with a satisfaction guarantee</p>
        </div>
      </div>
    </div>
  </div>
  <?php include 'includes/footer.php'; ?>
</body>
</html>