sad
This commit is contained in:
parent
cdb0630e5e
commit
1c03905469
@ -38,11 +38,14 @@ $current_page = basename($_SERVER['PHP_SELF']);
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<div class="dropdown">
|
||||
<a href="../logout.php" class="d-flex align-items-center link-dark text-decoration-none">
|
||||
|
||||
<div class="mt-auto pt-3 border-top">
|
||||
<a href="../index.php" class="d-flex align-items-center link-dark text-decoration-none mb-3">
|
||||
<i class="bi bi-house-door me-2"></i> <strong>Back to Website</strong>
|
||||
</a>
|
||||
<a href="../logout.php" class="d-flex align-items-center link-danger text-decoration-none">
|
||||
<i class="bi bi-box-arrow-left me-2"></i> <strong>Logout</strong>
|
||||
</a>
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
@ -7,7 +7,6 @@
|
||||
* - Clear, large typography for a strong visual hierarchy.
|
||||
* - Comfortably large, prominent interactive elements.
|
||||
* - Tasteful soft gradients and subtle shadows.
|
||||
* - Optional glassmorphism for a liquid-glass effect.
|
||||
*/
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');
|
||||
@ -73,7 +72,7 @@ a:hover {
|
||||
|
||||
/* Navbar */
|
||||
.navbar {
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
@ -164,12 +163,11 @@ a:hover {
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translateY(-10px);
|
||||
transform: translateY(-5px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.card-img-top {
|
||||
height: 250px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
@ -259,4 +257,21 @@ a:hover {
|
||||
|
||||
.footer a:hover {
|
||||
color: var(--accent-color);
|
||||
}
|
||||
}
|
||||
|
||||
/* Carousel Tweaks */
|
||||
.carousel-caption {
|
||||
text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
|
||||
}
|
||||
|
||||
.object-fit-cover {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
/* Utilities */
|
||||
.ls-1 {
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
.hover-lift:hover {
|
||||
transform: translateY(-8px);
|
||||
}
|
||||
|
||||
266
index.php
266
index.php
@ -1,13 +1,25 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/db/config.php';
|
||||
|
||||
// Fetch Featured Cars
|
||||
$cars = [];
|
||||
$pdo = db();
|
||||
|
||||
// Fetch Data for Homepage
|
||||
try {
|
||||
$pdo = db();
|
||||
// Fetch more cars to showcase the design
|
||||
$stmt = $pdo->query("SELECT * FROM cars WHERE status = 'approved' ORDER BY created_at DESC LIMIT 8");
|
||||
$cars = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
// Stats
|
||||
$stats = [
|
||||
'total_cars' => $pdo->query("SELECT COUNT(*) FROM cars")->fetchColumn(),
|
||||
'approved_cars' => $pdo->query("SELECT COUNT(*) FROM cars WHERE status = 'approved'")->fetchColumn(),
|
||||
'cars_sold' => $pdo->query("SELECT COUNT(*) FROM bookings WHERE status = 'approved'")->fetchColumn(),
|
||||
];
|
||||
|
||||
// Recently Added (Limit 4)
|
||||
$stmt = $pdo->query("SELECT * FROM cars WHERE status = 'approved' ORDER BY created_at DESC LIMIT 4");
|
||||
$recentCars = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
// Featured (Random 5 for Carousel)
|
||||
$stmt = $pdo->query("SELECT * FROM cars WHERE status = 'approved' ORDER BY RAND() LIMIT 5");
|
||||
$featuredCars = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
} catch (Exception $e) {
|
||||
error_log("DB Error: " . $e->getMessage());
|
||||
}
|
||||
@ -16,91 +28,189 @@ $pageTitle = "Home";
|
||||
include 'partials/header.php';
|
||||
?>
|
||||
|
||||
<!-- Hero Section -->
|
||||
<header class="container-fluid vh-100 d-flex align-items-center justify-content-center text-white text-center" style="background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.pexels.com/photos/3764984/pexels-photo-3764984.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2') no-repeat center center/cover;">
|
||||
<div class="col-lg-8">
|
||||
<h1 class="display-3">Your Dream Car Awaits</h1>
|
||||
<p class="lead my-4">Discover the best deals on new and used cars in Afghanistan. Quality, trust, and transparency guaranteed.</p>
|
||||
<a href="#featured-cars" class="btn btn-primary btn-lg">Explore Cars</a>
|
||||
<a href="car_list.php" class="btn btn-secondary btn-lg">View All Listings</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Featured Cars Section -->
|
||||
<section id="featured-cars" class="section-padding py-5">
|
||||
<div class="container">
|
||||
<div class="text-center mb-5">
|
||||
<h2 class="h1">Featured Vehicles</h2>
|
||||
<p class="lead text-muted">Hand-picked selection of our finest cars available right now.</p>
|
||||
<!-- Hero Carousel -->
|
||||
<div id="heroCarousel" class="carousel slide" data-bs-ride="carousel">
|
||||
<div class="carousel-indicators">
|
||||
<?php foreach ($featuredCars as $index => $car): ?>
|
||||
<button type="button" data-bs-target="#heroCarousel" data-bs-slide-to="<?= $index ?>" class="<?= $index === 0 ? 'active' : '' ?>" aria-current="<?= $index === 0 ? 'true' : 'false' ?>" aria-label="Slide <?= $index + 1 ?>"></button>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="carousel-inner">
|
||||
<?php foreach ($featuredCars as $index => $car): ?>
|
||||
<div class="carousel-item <?= $index === 0 ? 'active' : '' ?>" style="height: 600px;">
|
||||
<div class="overlay" style="background: rgba(0,0,0,0.4); position: absolute; top:0; left:0; width:100%; height:100%;"></div>
|
||||
<img src="<?= htmlspecialchars($car['image_url'] ?: 'assets/images/placeholder.jpg') ?>" class="d-block w-100 h-100 object-fit-cover" alt="<?= htmlspecialchars($car['title']) ?>">
|
||||
<div class="carousel-caption d-none d-md-block text-start mb-5 pb-5">
|
||||
<div class="container">
|
||||
<span class="badge bg-primary mb-2 text-uppercase ls-1">Featured</span>
|
||||
<h1 class="display-3 fw-bold"><?= htmlspecialchars($car['year'] . ' ' . $car['make'] . ' ' . $car['model']) ?></h1>
|
||||
<p class="lead mb-4"><?= htmlspecialchars(substr($car['description'], 0, 100)) ?>...</p>
|
||||
<a href="car_detail.php?id=<?= $car['id'] ?>" class="btn btn-primary btn-lg px-4">View Details <i class="bi bi-arrow-right ms-2"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row g-4">
|
||||
<?php if (!empty($cars)): ?>
|
||||
<?php foreach (array_slice($cars, 0, 4) as $car): // Show only 4 featured ?>
|
||||
<div class="col-md-6 col-lg-3 d-flex align-items-stretch">
|
||||
<div class="card w-100 shadow-sm border-0">
|
||||
<div class="position-relative">
|
||||
<img src="<?php echo htmlspecialchars($car['image_url'] ?: 'https://via.placeholder.com/400x300?text=No+Image'); ?>" class="card-img-top" alt="<?php echo htmlspecialchars($car['make'] . ' ' . $car['model']); ?>" style="height: 200px; object-fit: cover;">
|
||||
<?php if ($car['status'] == 'sold'): ?>
|
||||
<div class="position-absolute top-0 start-0 w-100 h-100 d-flex align-items-center justify-content-center bg-dark bg-opacity-75 text-white">
|
||||
<h2 class="fw-bold text-uppercase">SOLD</h2>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="card-body d-flex flex-column">
|
||||
<h5 class="card-title"><?php echo htmlspecialchars($car['make'] . ' ' . $car['model']); ?></h5>
|
||||
<p class="card-text text-muted small"><?php echo htmlspecialchars($car['year']); ?> • <?php echo number_format($car['mileage']); ?> km</p>
|
||||
<h4 class="mt-auto mb-3 text-primary">$<?php echo number_format($car['price']); ?></h4>
|
||||
<a href="car_detail.php?id=<?php echo $car['id']; ?>" class="btn btn-outline-primary w-100">View Details</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<button class="carousel-control-prev" type="button" data-bs-target="#heroCarousel" data-bs-slide="prev">
|
||||
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
||||
<span class="visually-hidden">Previous</span>
|
||||
</button>
|
||||
<button class="carousel-control-next" type="button" data-bs-target="#heroCarousel" data-bs-slide="next">
|
||||
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
||||
<span class="visually-hidden">Next</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Quick Search Box -->
|
||||
<div class="container position-relative" style="margin-top: -80px; z-index: 10;">
|
||||
<div class="card shadow border-0 p-4">
|
||||
<form action="car_list.php" method="GET" class="row g-3 align-items-end">
|
||||
<div class="col-md-3">
|
||||
<label class="form-label fw-bold small text-uppercase">Make</label>
|
||||
<select name="make" class="form-select border-0 bg-light">
|
||||
<option value="">All Makes</option>
|
||||
<option value="Toyota">Toyota</option>
|
||||
<option value="Honda">Honda</option>
|
||||
<option value="Ford">Ford</option>
|
||||
<option value="Mercedes-Benz">Mercedes-Benz</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label fw-bold small text-uppercase">Province</label>
|
||||
<select name="province" class="form-select border-0 bg-light">
|
||||
<option value="">All Provinces</option>
|
||||
<option value="Kabul">Kabul</option>
|
||||
<option value="Herat">Herat</option>
|
||||
<option value="Kandahar">Kandahar</option>
|
||||
<option value="Mazar-i-Sharif">Mazar-i-Sharif</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label fw-bold small text-uppercase">Max Price</label>
|
||||
<input type="number" name="max_price" class="form-control border-0 bg-light" placeholder="e.g. 20000">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<button type="submit" class="btn btn-primary w-100 py-2"><i class="bi bi-search me-2"></i> Search Cars</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Stats Section -->
|
||||
<section class="section-padding py-5 mt-5">
|
||||
<div class="container">
|
||||
<div class="row g-4 text-center">
|
||||
<div class="col-md-4">
|
||||
<div class="p-4 border rounded-3 bg-white shadow-sm h-100">
|
||||
<i class="bi bi-car-front fs-1 text-primary mb-3"></i>
|
||||
<h2 class="fw-bold display-5"><?= number_format($stats['approved_cars']) ?>+</h2>
|
||||
<p class="text-muted mb-0">Cars Available for Sale</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="p-4 border rounded-3 bg-white shadow-sm h-100">
|
||||
<i class="bi bi-people fs-1 text-success mb-3"></i>
|
||||
<h2 class="fw-bold display-5"><?= number_format($stats['cars_sold']) ?>+</h2>
|
||||
<p class="text-muted mb-0">Happy Customers</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="p-4 border rounded-3 bg-white shadow-sm h-100">
|
||||
<i class="bi bi-check-circle fs-1 text-info mb-3"></i>
|
||||
<h2 class="fw-bold display-5">100%</h2>
|
||||
<p class="text-muted mb-0">Verified Listings</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Recently Added -->
|
||||
<section class="section-padding py-5 bg-light">
|
||||
<div class="container">
|
||||
<div class="d-flex justify-content-between align-items-center mb-5">
|
||||
<div>
|
||||
<h2 class="fw-bold">Recently Added</h2>
|
||||
<p class="text-muted mb-0">Fresh arrivals just for you</p>
|
||||
</div>
|
||||
<a href="car_list.php" class="btn btn-outline-primary">View All <i class="bi bi-arrow-right ms-1"></i></a>
|
||||
</div>
|
||||
|
||||
<div class="row g-4">
|
||||
<?php foreach ($recentCars as $car): ?>
|
||||
<div class="col-md-6 col-lg-3">
|
||||
<div class="card h-100 border-0 shadow-sm car-card hover-lift">
|
||||
<div class="position-relative">
|
||||
<img src="<?= htmlspecialchars($car['image_url'] ?: 'assets/images/placeholder.jpg') ?>" class="card-img-top" alt="<?= htmlspecialchars($car['title']) ?>" style="height: 220px; object-fit: cover;">
|
||||
<span class="badge bg-white text-dark position-absolute top-0 end-0 m-3 shadow-sm"><?= htmlspecialchars($car['year']) ?></span>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title text-truncate"><?= htmlspecialchars($car['make'] . ' ' . $car['model']) ?></h5>
|
||||
<p class="card-text text-muted small"><i class="bi bi-geo-alt-fill text-danger"></i> <?= htmlspecialchars($car['city']) ?></p>
|
||||
<div class="d-flex justify-content-between align-items-center mt-3">
|
||||
<span class="h5 mb-0 text-primary fw-bold">$<?= number_format($car['price']) ?></span>
|
||||
<a href="car_detail.php?id=<?= $car['id'] ?>" class="btn btn-sm btn-light rounded-circle"><i class="bi bi-arrow-right"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info text-center">No featured cars available at the moment. Please check back soon!</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- How It Works Section -->
|
||||
<section class="section-padding py-5 bg-light">
|
||||
<div class="container">
|
||||
<div class="text-center mb-5">
|
||||
<h2 class="h1">How It Works</h2>
|
||||
<p class="lead text-muted">A simple, transparent, and secure process.</p>
|
||||
<!-- Testimonials -->
|
||||
<section class="section-padding py-5">
|
||||
<div class="container">
|
||||
<div class="text-center mb-5">
|
||||
<h2 class="fw-bold">What Our Users Say</h2>
|
||||
<p class="text-muted">Trusted by thousands of sellers and buyers across Afghanistan.</p>
|
||||
</div>
|
||||
<div class="row g-4">
|
||||
<div class="col-md-4">
|
||||
<div class="card border-0 shadow-sm p-4 h-100 text-center">
|
||||
<div class="mb-3">
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
</div>
|
||||
<p class="fst-italic text-muted">"Sold my Corolla in just 2 days! The process was super smooth and the admin support was helpful."</p>
|
||||
<h6 class="fw-bold mt-auto">- Ahmad Wali, Kabul</h6>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row g-4 text-center">
|
||||
<div class="col-md-4">
|
||||
<div class="card p-4 h-100 border-0 shadow-sm">
|
||||
<i class="bi bi-search fs-1 text-primary mb-3"></i>
|
||||
<h3>1. Find Your Car</h3>
|
||||
<p>Browse our curated selection of high-quality vehicles. Use filters to narrow down your perfect match.</p>
|
||||
<div class="col-md-4">
|
||||
<div class="card border-0 shadow-sm p-4 h-100 text-center">
|
||||
<div class="mb-3">
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
<i class="bi bi-star-half text-warning"></i>
|
||||
</div>
|
||||
<p class="fst-italic text-muted">"Found a great deal on a Ford Ranger. The car was exactly as described. Highly recommended!"</p>
|
||||
<h6 class="fw-bold mt-auto">- Fatima Noor, Herat</h6>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="card p-4 h-100 border-0 shadow-sm">
|
||||
<i class="bi bi-journal-check fs-1 text-primary mb-3"></i>
|
||||
<h3>2. Request Purchase</h3>
|
||||
<p>Found a car you like? Request to purchase it directly through our platform safely.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="card p-4 h-100 border-0 shadow-sm">
|
||||
<i class="bi bi-patch-check-fill fs-1 text-primary mb-3"></i>
|
||||
<h3>3. Secure Your Deal</h3>
|
||||
<p>Finalize your purchase with our secure payment system and drive away in your new car.</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="card border-0 shadow-sm p-4 h-100 text-center">
|
||||
<div class="mb-3">
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
<i class="bi bi-star-fill text-warning"></i>
|
||||
</div>
|
||||
<p class="fst-italic text-muted">"Best platform for cars in Afghanistan. Secure, fast, and easy to use."</p>
|
||||
<h6 class="fw-bold mt-auto">- Mustafa Khan, Mazar</h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</main> <!-- End Main -->
|
||||
|
||||
<?php include 'partials/footer.php'; ?>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<?php include 'partials/footer.php'; ?>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
288
install.php
288
install.php
@ -22,14 +22,11 @@ try {
|
||||
echo "<div class='step success'>✅ Connected to Database Server.</div>";
|
||||
|
||||
// 2. Create Database (if it doesn't exist)
|
||||
// Note: On some hosting/VMs, the user might not have permission to create databases, only tables.
|
||||
// We try to create it if we are 'root' or similar, but otherwise assume it exists if connection worked.
|
||||
$dbName = DB_NAME;
|
||||
try {
|
||||
$pdo->exec("CREATE DATABASE IF NOT EXISTS `$dbName` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci");
|
||||
echo "<div class='step success'>✅ Database `$dbName` checked/created.</div>";
|
||||
} catch (PDOException $e) {
|
||||
// Ignore if we can't create DB (might already be connected to it)
|
||||
echo "<div class='step'>ℹ️ Note: Could not create database (might already exist or permission denied). Proceeding...</div>";
|
||||
}
|
||||
|
||||
@ -120,7 +117,9 @@ try {
|
||||
echo "<div class='step success'>✅ Admin user created.<br> Username: <b>$adminUser</b><br> Email: <b>$adminEmail</b><br> Password: <b>$adminPass</b></div>";
|
||||
|
||||
// 6. Insert Sample Data (Cars)
|
||||
// 35 Total Cars (15 original + 20 new)
|
||||
$carsData = [
|
||||
// Original 15
|
||||
[
|
||||
'title' => 'Toyota Corolla 2020 Clean',
|
||||
'make' => 'Toyota',
|
||||
@ -330,6 +329,287 @@ try {
|
||||
'province' => 'Kabul',
|
||||
'city' => 'Kabul',
|
||||
'image_url' => 'https://images.pexels.com/photos/4173163/pexels-photo-4173163.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
// New 20 Cars
|
||||
[
|
||||
'title' => 'Tesla Model 3 2022 Long Range',
|
||||
'make' => 'Tesla',
|
||||
'model' => 'Model 3',
|
||||
'year' => 2022,
|
||||
'mileage' => 8000,
|
||||
'price' => 45000.00,
|
||||
'description' => 'Electric future. Autopilot included. Mint condition.',
|
||||
'status' => 'approved',
|
||||
'color' => 'White',
|
||||
'province' => 'Kabul',
|
||||
'city' => 'Kabul',
|
||||
'image_url' => 'https://images.pexels.com/photos/11139552/pexels-photo-11139552.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Ford Mustang 2018 GT',
|
||||
'make' => 'Ford',
|
||||
'model' => 'Mustang',
|
||||
'year' => 2018,
|
||||
'mileage' => 32000,
|
||||
'price' => 38000.00,
|
||||
'description' => 'V8 Muscle car. Sounds amazing.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Yellow',
|
||||
'province' => 'Herat',
|
||||
'city' => 'Herat',
|
||||
'image_url' => 'https://images.pexels.com/photos/3311574/pexels-photo-3311574.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Audi Q7 2019 Quattro',
|
||||
'make' => 'Audi',
|
||||
'model' => 'Q7',
|
||||
'year' => 2019,
|
||||
'mileage' => 41000,
|
||||
'price' => 52000.00,
|
||||
'description' => '7 seater luxury SUV. Smooth ride.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Black',
|
||||
'province' => 'Kabul',
|
||||
'city' => 'Kabul',
|
||||
'image_url' => 'https://images.pexels.com/photos/1035108/pexels-photo-1035108.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Jeep Wrangler 2020 Rubicon',
|
||||
'make' => 'Jeep',
|
||||
'model' => 'Wrangler',
|
||||
'year' => 2020,
|
||||
'mileage' => 15000,
|
||||
'price' => 48000.00,
|
||||
'description' => 'Ultimate off-road machine. Convertible top.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Red',
|
||||
'province' => 'Jalalabad',
|
||||
'city' => 'Jalalabad',
|
||||
'image_url' => 'https://images.pexels.com/photos/2933243/pexels-photo-2933243.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Hyundai Tucson 2022',
|
||||
'make' => 'Hyundai',
|
||||
'model' => 'Tucson',
|
||||
'year' => 2022,
|
||||
'mileage' => 5000,
|
||||
'price' => 31000.00,
|
||||
'description' => 'Modern design, very comfortable.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Grey',
|
||||
'province' => 'Mazar-i-Sharif',
|
||||
'city' => 'Mazar',
|
||||
'image_url' => 'https://images.pexels.com/photos/13622998/pexels-photo-13622998.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Range Rover Sport 2017',
|
||||
'make' => 'Land Rover',
|
||||
'model' => 'Range Rover',
|
||||
'year' => 2017,
|
||||
'mileage' => 60000,
|
||||
'price' => 65000.00,
|
||||
'description' => 'British luxury. Powerful engine.',
|
||||
'status' => 'approved',
|
||||
'color' => 'White',
|
||||
'province' => 'Kabul',
|
||||
'city' => 'Kabul',
|
||||
'image_url' => 'https://images.pexels.com/photos/116675/pexels-photo-116675.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Volkswagen Golf 2016 GTI',
|
||||
'make' => 'Volkswagen',
|
||||
'model' => 'Golf',
|
||||
'year' => 2016,
|
||||
'mileage' => 70000,
|
||||
'price' => 18000.00,
|
||||
'description' => 'Hot hatch. Fast and fun.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Red',
|
||||
'province' => 'Kandahar',
|
||||
'city' => 'Kandahar',
|
||||
'image_url' => 'https://images.pexels.com/photos/10771143/pexels-photo-10771143.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Subaru Forester 2018',
|
||||
'make' => 'Subaru',
|
||||
'model' => 'Forester',
|
||||
'year' => 2018,
|
||||
'mileage' => 55000,
|
||||
'price' => 22000.00,
|
||||
'description' => 'Reliable AWD. Great for snow.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Green',
|
||||
'province' => 'Bamyan',
|
||||
'city' => 'Bamyan',
|
||||
'image_url' => 'https://images.pexels.com/photos/15671190/pexels-photo-15671190.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Porsche Cayenne 2015',
|
||||
'make' => 'Porsche',
|
||||
'model' => 'Cayenne',
|
||||
'year' => 2015,
|
||||
'mileage' => 85000,
|
||||
'price' => 35000.00,
|
||||
'description' => 'Sporty SUV. High performance.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Black',
|
||||
'province' => 'Kabul',
|
||||
'city' => 'Kabul',
|
||||
'image_url' => 'https://images.pexels.com/photos/9661271/pexels-photo-9661271.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Toyota RAV4 2021',
|
||||
'make' => 'Toyota',
|
||||
'model' => 'RAV4',
|
||||
'year' => 2021,
|
||||
'mileage' => 12000,
|
||||
'price' => 29000.00,
|
||||
'description' => 'Best selling SUV. Reliable.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Blue',
|
||||
'province' => 'Herat',
|
||||
'city' => 'Herat',
|
||||
'image_url' => 'https://images.pexels.com/photos/14532256/pexels-photo-14532256.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Nissan Patrol 2019',
|
||||
'make' => 'Nissan',
|
||||
'model' => 'Patrol',
|
||||
'year' => 2019,
|
||||
'mileage' => 45000,
|
||||
'price' => 58000.00,
|
||||
'description' => 'King of the desert. Spacious.',
|
||||
'status' => 'approved',
|
||||
'color' => 'White',
|
||||
'province' => 'Kandahar',
|
||||
'city' => 'Kandahar',
|
||||
'image_url' => 'https://images.pexels.com/photos/1592384/pexels-photo-1592384.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Chevrolet Camaro 2017',
|
||||
'make' => 'Chevrolet',
|
||||
'model' => 'Camaro',
|
||||
'year' => 2017,
|
||||
'mileage' => 38000,
|
||||
'price' => 27000.00,
|
||||
'description' => 'American icon. Fast.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Yellow',
|
||||
'province' => 'Kabul',
|
||||
'city' => 'Kabul',
|
||||
'image_url' => 'https://images.pexels.com/photos/2036544/pexels-photo-2036544.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Mercedes-Benz G-Wagon 2018',
|
||||
'make' => 'Mercedes-Benz',
|
||||
'model' => 'G-Class',
|
||||
'year' => 2018,
|
||||
'mileage' => 30000,
|
||||
'price' => 120000.00,
|
||||
'description' => 'Status symbol. Built like a tank.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Black',
|
||||
'province' => 'Kabul',
|
||||
'city' => 'Kabul',
|
||||
'image_url' => 'https://images.pexels.com/photos/1429775/pexels-photo-1429775.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Kia Sorento 2021',
|
||||
'make' => 'Kia',
|
||||
'model' => 'Sorento',
|
||||
'year' => 2021,
|
||||
'mileage' => 10000,
|
||||
'price' => 34000.00,
|
||||
'description' => 'Family SUV with 3 rows.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Grey',
|
||||
'province' => 'Mazar-i-Sharif',
|
||||
'city' => 'Mazar',
|
||||
'image_url' => 'https://images.pexels.com/photos/9714349/pexels-photo-9714349.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Lexus RX350 2016',
|
||||
'make' => 'Lexus',
|
||||
'model' => 'RX350',
|
||||
'year' => 2016,
|
||||
'mileage' => 65000,
|
||||
'price' => 32000.00,
|
||||
'description' => 'Comfortable luxury crossover.',
|
||||
'status' => 'approved',
|
||||
'color' => 'White',
|
||||
'province' => 'Herat',
|
||||
'city' => 'Herat',
|
||||
'image_url' => 'https://images.pexels.com/photos/6560298/pexels-photo-6560298.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Hyundai Elantra 2019',
|
||||
'make' => 'Hyundai',
|
||||
'model' => 'Elantra',
|
||||
'year' => 2019,
|
||||
'mileage' => 40000,
|
||||
'price' => 14000.00,
|
||||
'description' => 'Compact sedan, good value.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Blue',
|
||||
'province' => 'Jalalabad',
|
||||
'city' => 'Jalalabad',
|
||||
'image_url' => 'https://images.pexels.com/photos/16834162/pexels-photo-16834162.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Toyota Prius 2017',
|
||||
'make' => 'Toyota',
|
||||
'model' => 'Prius',
|
||||
'year' => 2017,
|
||||
'mileage' => 75000,
|
||||
'price' => 15500.00,
|
||||
'description' => 'Hybrid pioneer. Excellent mpg.',
|
||||
'status' => 'approved',
|
||||
'color' => 'White',
|
||||
'province' => 'Kabul',
|
||||
'city' => 'Kabul',
|
||||
'image_url' => 'https://images.pexels.com/photos/17604374/pexels-photo-17604374.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Ford F-150 2020',
|
||||
'make' => 'Ford',
|
||||
'model' => 'F-150',
|
||||
'year' => 2020,
|
||||
'mileage' => 25000,
|
||||
'price' => 40000.00,
|
||||
'description' => 'America\'s best selling truck.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Blue',
|
||||
'province' => 'Kandahar',
|
||||
'city' => 'Kandahar',
|
||||
'image_url' => 'https://images.pexels.com/photos/1637859/pexels-photo-1637859.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'BMW 3 Series 2018',
|
||||
'make' => 'BMW',
|
||||
'model' => '320i',
|
||||
'year' => 2018,
|
||||
'mileage' => 42000,
|
||||
'price' => 25000.00,
|
||||
'description' => 'Sports sedan. Driving pleasure.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Silver',
|
||||
'province' => 'Kabul',
|
||||
'city' => 'Kabul',
|
||||
'image_url' => 'https://images.pexels.com/photos/3689532/pexels-photo-3689532.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
],
|
||||
[
|
||||
'title' => 'Audi A6 2017',
|
||||
'make' => 'Audi',
|
||||
'model' => 'A6',
|
||||
'year' => 2017,
|
||||
'mileage' => 58000,
|
||||
'price' => 26000.00,
|
||||
'description' => 'Executive sedan. High tech.',
|
||||
'status' => 'approved',
|
||||
'color' => 'Black',
|
||||
'province' => 'Herat',
|
||||
'city' => 'Herat',
|
||||
'image_url' => 'https://images.pexels.com/photos/119435/pexels-photo-119435.jpeg?auto=compress&cs=tinysrgb&w=600'
|
||||
]
|
||||
];
|
||||
|
||||
@ -349,4 +629,4 @@ try {
|
||||
echo "<div class='step error'>❌ Installation Failed: " . htmlspecialchars($e->getMessage()) . "</div>";
|
||||
}
|
||||
echo "</body></html>";
|
||||
?>
|
||||
?>
|
||||
Loading…
x
Reference in New Issue
Block a user