prepare($sql); $stmt->bind_param("i", $car_id); $stmt->execute(); $result = $stmt->get_result(); $car = $result->fetch_assoc(); $price = showval($car['price'], '0'); $monthly_payment = calc_monthly_payment($price, 60, 6); if (!$car) { echo "

רכב לא נמצא

"; exit; } $kms_display = $car['kilometers'] == 0 ? '0 ק"מ' : number_format($car['kilometers'] / 1000, 0) . 'k ק"מ'; // Fetch car make $make_name = ''; if ($car['car_make']) { $stmt2 = $conn->prepare("SELECT make_name FROM car_makes WHERE id = ?"); $stmt2->bind_param("i", $car['car_make']); $stmt2->execute(); $res2 = $stmt2->get_result(); if ($row2 = $res2->fetch_assoc()) $make_name = $row2['make_name']; $stmt2->close(); } // Fetch car model $model_name = ''; if ($car['car_model']) { $stmt3 = $conn->prepare("SELECT model_name FROM car_models WHERE id = ?"); $stmt3->bind_param("i", $car['car_model']); $stmt3->execute(); $res3 = $stmt3->get_result(); if ($row3 = $res3->fetch_assoc()) $model_name = $row3['model_name']; $stmt3->close(); } // Parse gallery $gallery = []; if (!empty($car['gallery'])) { $gallery = json_decode($car['gallery'], true); if (!is_array($gallery)) $gallery = []; } if (empty($gallery) && !empty($car['images'])) { $gallery = [$car['images']]; } // Default main image $main_image = !empty($gallery[0]) ? $gallery[0] : 'assets/images/default-car.jpg'; // Default values if fields are missing function showval($v, $alt = '-') { return $v ? htmlspecialchars($v) : $alt; } // in your head, after $share_title = "למכירה: " . showval($car['title']); $share_description = mb_strimwidth(strip_tags($car['description'] ?? $car['content']), 0, 155, '…'); $share_image = $main_image; // from your existing code $share_url = (isset($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?> למכירה: <?php echo htmlspecialchars($car['title']); ?> – <?= htmlspecialchars($settings['site_title'], ENT_QUOTES, 'UTF-8') ?>

חודשי החל מ:
תשלום חודשי ב־60 תשלומים

מחירים סופיים לאחר הגשת בקשה

image

תאן לוקצ'ורי מוטורס

סוכנות היוקרה שלך

ליצירת קשר 0532444445 0523800727 0532444443 נצרת עילית 52 א'

השאירו פרטים ונחזור אליכם

צרו קשר איתנו באמצעות הטופס או בטלפון ונשמח לעזור לכם בכל שאלה.

ת.א.נ רכבי יוקרה LUXURY MOTORS
נצרת, צפון, ישראל, Nazareth, Israel 16027

פרטים ליצירת קשר

טלפונים:

0532444445

0523800727

0532444443

דוא"ל:

tan.luxurymotors@gmail.com

שעות פעילות:

ראשון - שישי: 08:00 - 20:00

שבת: 10:00 - 18:00

עקבו אחרינו: