2026 Land Rover Defender 110 First Edition
AED 0
Key details
Make
Land Rover
Model
Defender
Trim
110 First Edition
Year
2026
Listing number
169962
City
Dubai
Technical specifications
Seller description
<?= $this->extend('front/layout') ?>
<?= $this->section('content') ?>
<?php
$validation = $validation ?? session('validation') ?? \Config\Services::validation();
$bike = $bike ?? ($row ?? []);
$images = $images ?? [];
$cities = $cities ?? [];
$makes = $makes ?? [];
$userPhone = $userPhone ?? ($bike['phone_number'] ?? '');
$bikeId = (int)($bike['id'] ?? 0);
$currentYear = (int) date('Y');
$futureYear = $currentYear + 1;
// ? Arabic page, but Make/Model values are English.
$selMake = old('make_id', $bike['make_id'] ?? '');
$selModel = old('model_id', $bike['model_id'] ?? '');
$bikeBodyTypes = [
'Sport','Cruiser','Touring','Off-road / Motocross','Adventure',
'Naked / Street','Scooter','Cafe racer','Chopper','ATV / Quad',
];
$prefix = 'ar/';
$ajaxModelsUrl = site_url($prefix . 'bikes/ajax-models'); // ? make sure this route exists
?>
<style>
.wrap{max-width:1100px;margin:0 auto;padding:24px 0 56px;direction:rtl}
.breadcrumb{font-size:12px;color:#6b7280;margin-bottom:10px}
.breadcrumb a{color:#6b7280;text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.title{font-size:26px;font-weight:900;color:#111827;margin:6px 0 18px}
.grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
@media(max-width:900px){.grid{grid-template-columns:1fr}}
.card{border-radius:18px;border:1px solid #e5e7eb;background:#fff;padding:18px;box-shadow:0 4px 10px rgba(15,23,42,.06);margin-bottom:16px}
.sticky{position:sticky;top:16px;align-self:start}
.section-title{font-size:16px;font-weight:900;color:#111827;margin:0 0 12px}
.row{margin-bottom:12px}
label{display:block;font-size:12px;color:#6b7280;margin:0 0 6px}
input,select,textarea{
width:100%;border:1px solid #e5e7eb;border-radius:12px;padding:11px 12px;font-size:14px;outline:none
}
textarea{min-height:120px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.12)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
@media(max-width:650px){.two,.three{grid-template-columns:1fr}}
.err{color:#b91c1c;font-size:12px;margin-top:6px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;padding:12px 14px;border:0;cursor:pointer;font-weight:900}
.btn-primary{background:#ef4444;color:#fff}
.btn-primary:hover{filter:brightness(.98)}
.btn-lite{background:#fff;border:1px solid #e5e7eb;color:#111827}
.btn-lite:hover{border-color:#d1d5db}
.muted{font-size:12px;color:#6b7280;line-height:1.7}
/* ? force LTR for English-only fields */
.ltr{direction:ltr;text-align:left}
.ltr select,.ltr input{direction:ltr;text-align:left}
/* Uploader box (JS will render thumbs) */
.uploader{border:2px dashed #e5e7eb;border-radius:16px;padding:14px;background:#fafafa}
.uploader-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.uploader-title{font-weight:900;color:#111827}
.thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
@media(max-width:900px){.thumbs{grid-template-columns:repeat(3,1fr)}}
@media(max-width:520px){.thumbs{grid-template-columns:repeat(2,1fr)}}
</style>
<div class="wrap" data-bikes-form="edit"
data-models-endpoint="<?= esc($ajaxModelsUrl) ?>"
data-selected-model="<?= esc((string)$selModel) ?>">
<div class="breadcrumb">
<a href="<?= site_url($prefix) ?>">????????</a> /
<a href="<?= site_url($prefix.'my-account/ads') ?>">????????</a> /
????? ????? ???????
</div>
<div class="title">????? ????? ???????</div>
<?php if (session('error')): ?>
<div class="card" style="border-color:#fecaca;background:#fff1f2;color:#7f1d1d">
<?= esc(session('error')) ?>
</div>
<?php endif; ?>
<?php if (session('success')): ?>
<div class="card" style="border-color:#bbf7d0;background:#f0fdf4;color:#14532d">
<?= esc(session('success')) ?>
</div>
<?php endif; ?>
<form id="bikeForm"
method="post"
action="<?= esc(site_url($prefix . 'bikes/update/' . $bikeId)) ?>"
enctype="multipart/form-data">
<?= csrf_field() ?>
<input type="hidden" name="_method" value="PUT">
<div class="grid">
<!-- LEFT -->
<div>
<div class="card">
<div class="section-title">????????? ????????</div>
<div class="row">
<label>????? ??????? <span style="color:#ef4444">*</span></label>
<input name="title" value="<?= esc(old('title', $bike['title'] ?? '')) ?>" placeholder="????: Yamaha R6 2019 - ????? ????">
<?php if ($validation->hasError('title')): ?><div class="err"><?= esc($validation->getError('title')) ?></div><?php endif; ?>
</div>
<div class="three">
<div class="row ltr">
<label>??????? (???????????) <span style="color:#ef4444">*</span></label>
<select name="make_id" id="make_id" required>
<option value="">Select Make</option>
<?php foreach ($makes as $m): ?>
<option value="<?= (int)$m['id'] ?>" <?= (string)$selMake === (string)$m['id'] ? 'selected' : '' ?>>
<?= esc($m['name'] ?? '') ?>
</option>
<?php endforeach; ?>
</select>
<?php if ($validation->hasError('make_id')): ?><div class="err"><?= esc($validation->getError('make_id')) ?></div><?php endif; ?>
</div>
<div class="row ltr">
<label>??????? (???????????) <span style="color:#ef4444">*</span></label>
<select name="model_id" id="model_id" required disabled>
<option value="">Select Model</option>
</select>
<input type="hidden" id="current_model_id" value="<?= esc((string)$selModel) ?>">
<?php if ($validation->hasError('model_id')): ?><div class="err"><?= esc($validation->getError('model_id')) ?></div><?php endif; ?>
</div>
<div class="row">
<label>??? ????? <span style="color:#ef4444">*</span></label>
<?php $selYear = old('year', $bike['year'] ?? ''); ?>
<select name="year" required>
<option value="">???? ?????</option>
<?php for ($y = $futureYear; $y >= 1990; $y--): ?>
<option value="<?= $y ?>" <?= (string)$selYear === (string)$y ? 'selected' : '' ?>><?= $y ?></option>
<?php endfor; ?>
</select>
<?php if ($validation->hasError('year')): ?><div class="err"><?= esc($validation->getError('year')) ?></div><?php endif; ?>
</div>
</div>
<div class="two">
<div class="row ltr">
<label>????? (????) <span style="color:#ef4444">*</span></label>
<input name="price" inputmode="decimal" value="<?= esc(old('price', $bike['price'] ?? '')) ?>" placeholder="????: 25000" required>
<?php if ($validation->hasError('price')): ?><div class="err"><?= esc($validation->getError('price')) ?></div><?php endif; ?>
</div>
<div class="row ltr">
<label>?????? (??) <span style="color:#ef4444">*</span></label>
<input name="mileage_km" inputmode="numeric" value="<?= esc(old('mileage_km', $bike['mileage'] ?? '')) ?>" placeholder="????: 18000" required>
<?php if ($validation->hasError('mileage_km')): ?><div class="err"><?= esc($validation->getError('mileage_km')) ?></div><?php endif; ?>
</div>
</div>
<div class="three">
<div class="row">
<label>??? ???????</label>
<?php $selBody = old('body_type', $bike['body_type'] ?? ''); ?>
<select name="body_type">
<option value="">???? ?????</option>
<?php foreach ($bikeBodyTypes as $bt): ?>
<option value="<?= esc($bt) ?>" <?= (string)$selBody === (string)$bt ? 'selected' : '' ?>><?= esc($bt) ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="row">
<label>??????</label>
<?php $selFuel = old('fuel_type', $bike['fuel_type'] ?? ''); ?>
<select name="fuel_type">
<option value="">???? ??????</option>
<option value="Petrol" <?= $selFuel==='Petrol'?'selected':'' ?>>?????</option>
<option value="Electric" <?= $selFuel==='Electric'?'selected':'' ?>>??????</option>
<option value="Hybrid" <?= $selFuel==='Hybrid'?'selected':'' ?>>??????</option>
<option value="Other" <?= $selFuel==='Other'?'selected':'' ?>>????</option>
</select>
</div>
<div class="row">
<label>???? ??????</label>
<?php $selTrans = old('transmission', $bike['transmission'] ?? ''); ?>
<select name="transmission">
<option value="">????</option>
<option value="Manual" <?= $selTrans==='Manual'?'selected':'' ?>>????</option>
<option value="Automatic" <?= $selTrans==='Automatic'?'selected':'' ?>>?????????</option>
</select>
</div>
</div>
</div>
<div class="card">
<div class="section-title">?????? ????</div>
<div class="three">
<div class="row ltr">
<label>??? ?????? (CC)</label>
<input name="engine_cc" inputmode="numeric" value="<?= esc(old('engine_cc', $bike['engine_cc'] ?? '')) ?>" placeholder="????: 600">
</div>
<div class="row ltr">
<label>?????? (HP)</label>
<input name="horsepower" inputmode="numeric" value="<?= esc(old('horsepower', $bike['horsepower'] ?? '')) ?>" placeholder="????: 120">
</div>
<div class="row">
<label>??????</label>
<?php
$selCond = old('condition', $bike['condition'] ?? 'used');
$selCondNorm = strtolower(trim((string)$selCond));
?>
<select name="condition">
<option value="used" <?= $selCondNorm==='used'?'selected':'' ?>>???????</option>
<option value="new" <?= $selCondNorm==='new'?'selected':'' ?>>?????</option>
<option value="almost new" <?= $selCondNorm==='almost new'?'selected':'' ?>>??? ?????</option>
</select>
</div>
</div>
</div>
<div class="card">
<div class="section-title">??????? ??????? ???????</div>
<div class="two">
<div class="row">
<label>??????? <span style="color:#ef4444">*</span></label>
<?php $selCity = old('city_id', $bike['city_id'] ?? ''); ?>
<select name="city_id" required>
<option value="">???? ???????</option>
<?php foreach ($cities as $c): ?>
<option value="<?= (int)$c['id'] ?>" <?= (string)$selCity === (string)$c['id'] ? 'selected' : '' ?>>
<?= esc($c['name'] ?? '') ?>
</option>
<?php endforeach; ?>
</select>
<?php if ($validation->hasError('city_id')): ?><div class="err"><?= esc($validation->getError('city_id')) ?></div><?php endif; ?>
</div>
<div class="row ltr">
<label>??? ?????? <span style="color:#ef4444">*</span></label>
<input type="text" name="phone_number" inputmode="tel"
value="<?= esc(old('phone_number', $bike['phone_number'] ?? ($userPhone ?? ''))) ?>"
placeholder="05XXXXXXXX" required>
<?php if ($validation->hasError('phone_number')): ?><div class="err"><?= esc($validation->getError('phone_number')) ?></div><?php endif; ?>
</div>
</div>
<?php $isFeatured = (int)old('is_featured', $bike['is_featured'] ?? 0); ?>
<div class="row" style="margin-top:10px">
<label style="display:flex;align-items:center;gap:10px;font-size:13px;color:#111827;font-weight:800">
<input type="checkbox" name="is_featured" value="1" <?= $isFeatured ? 'checked' : '' ?> style="width:auto">
???? ??????? ?????? (Featured)
</label>
</div>
</div>
<div class="card">
<div class="section-title">?????</div>
<textarea name="description" placeholder="???? ???? ???????? ???????? ????????? ???..."><?= esc(old('description', $bike['description'] ?? '')) ?></textarea>
</div>
<div class="card">
<div class="section-title">?????</div>
<div id="uploader" class="uploader"
data-existing='<?= esc(json_encode($images, JSON_UNESCAPED_SLASHES)) ?>'>
<div class="uploader-head">
<div>
<div class="uploader-title">????? ??? ???????</div>
<div class="muted">
????? ????? ????? ??????? ?????? ???????? ???? ??? ????? ?????? ??? ?????.<br>
??? ?? ??? ????? ?????? ????? ???? ??????? ??? ??.
</div>
</div>
<div style="display:flex;gap:8px;flex-wrap:wrap">
<label class="btn btn-lite" style="padding:10px 12px;border-radius:12px;cursor:pointer">
+ ????? ??? ?????
<input id="photosInput" type="file" name="photos[]" accept="image/*" multiple style="display:none">
</label>
</div>
</div>
<!-- Existing images control -->
<input type="hidden" name="existing_order" id="existing_order" value="">
<input type="hidden" name="existing_main" id="existing_main" value="">
<input type="hidden" name="existing_remove" id="existing_remove" value="[]">
<!-- New uploads control -->
<input type="hidden" name="photo_order" id="photo_order" value="">
<input type="hidden" name="photo_main" id="photo_main" value="0">
<div id="thumbs" class="thumbs"></div>
</div>
</div>
</div>
<!-- RIGHT -->
<div class="card sticky">
<div style="font-weight:900;font-size:18px;margin-bottom:8px">??? ?????????</div>
<div class="muted" style="margin-bottom:12px">
<b>?????:</b> ??? ????? + ????? ???? = ????? ????.<br>
Tip: Clear photos + clean title = more leads.
</div>
<button class="btn btn-primary" style="width:100%" type="submit">
????? ????? ???????
</button>
<a class="btn btn-lite" style="width:100%;margin-top:10px;text-decoration:none" href="<?= site_url($prefix.'my-account/ads') ?>">
?????
</a>
</div>
</div>
</form>
</div>
<?= $this->endSection() ?>
<?= $this->section('content') ?>
<?php
$validation = $validation ?? session('validation') ?? \Config\Services::validation();
$bike = $bike ?? ($row ?? []);
$images = $images ?? [];
$cities = $cities ?? [];
$makes = $makes ?? [];
$userPhone = $userPhone ?? ($bike['phone_number'] ?? '');
$bikeId = (int)($bike['id'] ?? 0);
$currentYear = (int) date('Y');
$futureYear = $currentYear + 1;
// ? Arabic page, but Make/Model values are English.
$selMake = old('make_id', $bike['make_id'] ?? '');
$selModel = old('model_id', $bike['model_id'] ?? '');
$bikeBodyTypes = [
'Sport','Cruiser','Touring','Off-road / Motocross','Adventure',
'Naked / Street','Scooter','Cafe racer','Chopper','ATV / Quad',
];
$prefix = 'ar/';
$ajaxModelsUrl = site_url($prefix . 'bikes/ajax-models'); // ? make sure this route exists
?>
<style>
.wrap{max-width:1100px;margin:0 auto;padding:24px 0 56px;direction:rtl}
.breadcrumb{font-size:12px;color:#6b7280;margin-bottom:10px}
.breadcrumb a{color:#6b7280;text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.title{font-size:26px;font-weight:900;color:#111827;margin:6px 0 18px}
.grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
@media(max-width:900px){.grid{grid-template-columns:1fr}}
.card{border-radius:18px;border:1px solid #e5e7eb;background:#fff;padding:18px;box-shadow:0 4px 10px rgba(15,23,42,.06);margin-bottom:16px}
.sticky{position:sticky;top:16px;align-self:start}
.section-title{font-size:16px;font-weight:900;color:#111827;margin:0 0 12px}
.row{margin-bottom:12px}
label{display:block;font-size:12px;color:#6b7280;margin:0 0 6px}
input,select,textarea{
width:100%;border:1px solid #e5e7eb;border-radius:12px;padding:11px 12px;font-size:14px;outline:none
}
textarea{min-height:120px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.12)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
@media(max-width:650px){.two,.three{grid-template-columns:1fr}}
.err{color:#b91c1c;font-size:12px;margin-top:6px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;padding:12px 14px;border:0;cursor:pointer;font-weight:900}
.btn-primary{background:#ef4444;color:#fff}
.btn-primary:hover{filter:brightness(.98)}
.btn-lite{background:#fff;border:1px solid #e5e7eb;color:#111827}
.btn-lite:hover{border-color:#d1d5db}
.muted{font-size:12px;color:#6b7280;line-height:1.7}
/* ? force LTR for English-only fields */
.ltr{direction:ltr;text-align:left}
.ltr select,.ltr input{direction:ltr;text-align:left}
/* Uploader box (JS will render thumbs) */
.uploader{border:2px dashed #e5e7eb;border-radius:16px;padding:14px;background:#fafafa}
.uploader-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.uploader-title{font-weight:900;color:#111827}
.thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
@media(max-width:900px){.thumbs{grid-template-columns:repeat(3,1fr)}}
@media(max-width:520px){.thumbs{grid-template-columns:repeat(2,1fr)}}
</style>
<div class="wrap" data-bikes-form="edit"
data-models-endpoint="<?= esc($ajaxModelsUrl) ?>"
data-selected-model="<?= esc((string)$selModel) ?>">
<div class="breadcrumb">
<a href="<?= site_url($prefix) ?>">????????</a> /
<a href="<?= site_url($prefix.'my-account/ads') ?>">????????</a> /
????? ????? ???????
</div>
<div class="title">????? ????? ???????</div>
<?php if (session('error')): ?>
<div class="card" style="border-color:#fecaca;background:#fff1f2;color:#7f1d1d">
<?= esc(session('error')) ?>
</div>
<?php endif; ?>
<?php if (session('success')): ?>
<div class="card" style="border-color:#bbf7d0;background:#f0fdf4;color:#14532d">
<?= esc(session('success')) ?>
</div>
<?php endif; ?>
<form id="bikeForm"
method="post"
action="<?= esc(site_url($prefix . 'bikes/update/' . $bikeId)) ?>"
enctype="multipart/form-data">
<?= csrf_field() ?>
<input type="hidden" name="_method" value="PUT">
<div class="grid">
<!-- LEFT -->
<div>
<div class="card">
<div class="section-title">????????? ????????</div>
<div class="row">
<label>????? ??????? <span style="color:#ef4444">*</span></label>
<input name="title" value="<?= esc(old('title', $bike['title'] ?? '')) ?>" placeholder="????: Yamaha R6 2019 - ????? ????">
<?php if ($validation->hasError('title')): ?><div class="err"><?= esc($validation->getError('title')) ?></div><?php endif; ?>
</div>
<div class="three">
<div class="row ltr">
<label>??????? (???????????) <span style="color:#ef4444">*</span></label>
<select name="make_id" id="make_id" required>
<option value="">Select Make</option>
<?php foreach ($makes as $m): ?>
<option value="<?= (int)$m['id'] ?>" <?= (string)$selMake === (string)$m['id'] ? 'selected' : '' ?>>
<?= esc($m['name'] ?? '') ?>
</option>
<?php endforeach; ?>
</select>
<?php if ($validation->hasError('make_id')): ?><div class="err"><?= esc($validation->getError('make_id')) ?></div><?php endif; ?>
</div>
<div class="row ltr">
<label>??????? (???????????) <span style="color:#ef4444">*</span></label>
<select name="model_id" id="model_id" required disabled>
<option value="">Select Model</option>
</select>
<input type="hidden" id="current_model_id" value="<?= esc((string)$selModel) ?>">
<?php if ($validation->hasError('model_id')): ?><div class="err"><?= esc($validation->getError('model_id')) ?></div><?php endif; ?>
</div>
<div class="row">
<label>??? ????? <span style="color:#ef4444">*</span></label>
<?php $selYear = old('year', $bike['year'] ?? ''); ?>
<select name="year" required>
<option value="">???? ?????</option>
<?php for ($y = $futureYear; $y >= 1990; $y--): ?>
<option value="<?= $y ?>" <?= (string)$selYear === (string)$y ? 'selected' : '' ?>><?= $y ?></option>
<?php endfor; ?>
</select>
<?php if ($validation->hasError('year')): ?><div class="err"><?= esc($validation->getError('year')) ?></div><?php endif; ?>
</div>
</div>
<div class="two">
<div class="row ltr">
<label>????? (????) <span style="color:#ef4444">*</span></label>
<input name="price" inputmode="decimal" value="<?= esc(old('price', $bike['price'] ?? '')) ?>" placeholder="????: 25000" required>
<?php if ($validation->hasError('price')): ?><div class="err"><?= esc($validation->getError('price')) ?></div><?php endif; ?>
</div>
<div class="row ltr">
<label>?????? (??) <span style="color:#ef4444">*</span></label>
<input name="mileage_km" inputmode="numeric" value="<?= esc(old('mileage_km', $bike['mileage'] ?? '')) ?>" placeholder="????: 18000" required>
<?php if ($validation->hasError('mileage_km')): ?><div class="err"><?= esc($validation->getError('mileage_km')) ?></div><?php endif; ?>
</div>
</div>
<div class="three">
<div class="row">
<label>??? ???????</label>
<?php $selBody = old('body_type', $bike['body_type'] ?? ''); ?>
<select name="body_type">
<option value="">???? ?????</option>
<?php foreach ($bikeBodyTypes as $bt): ?>
<option value="<?= esc($bt) ?>" <?= (string)$selBody === (string)$bt ? 'selected' : '' ?>><?= esc($bt) ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="row">
<label>??????</label>
<?php $selFuel = old('fuel_type', $bike['fuel_type'] ?? ''); ?>
<select name="fuel_type">
<option value="">???? ??????</option>
<option value="Petrol" <?= $selFuel==='Petrol'?'selected':'' ?>>?????</option>
<option value="Electric" <?= $selFuel==='Electric'?'selected':'' ?>>??????</option>
<option value="Hybrid" <?= $selFuel==='Hybrid'?'selected':'' ?>>??????</option>
<option value="Other" <?= $selFuel==='Other'?'selected':'' ?>>????</option>
</select>
</div>
<div class="row">
<label>???? ??????</label>
<?php $selTrans = old('transmission', $bike['transmission'] ?? ''); ?>
<select name="transmission">
<option value="">????</option>
<option value="Manual" <?= $selTrans==='Manual'?'selected':'' ?>>????</option>
<option value="Automatic" <?= $selTrans==='Automatic'?'selected':'' ?>>?????????</option>
</select>
</div>
</div>
</div>
<div class="card">
<div class="section-title">?????? ????</div>
<div class="three">
<div class="row ltr">
<label>??? ?????? (CC)</label>
<input name="engine_cc" inputmode="numeric" value="<?= esc(old('engine_cc', $bike['engine_cc'] ?? '')) ?>" placeholder="????: 600">
</div>
<div class="row ltr">
<label>?????? (HP)</label>
<input name="horsepower" inputmode="numeric" value="<?= esc(old('horsepower', $bike['horsepower'] ?? '')) ?>" placeholder="????: 120">
</div>
<div class="row">
<label>??????</label>
<?php
$selCond = old('condition', $bike['condition'] ?? 'used');
$selCondNorm = strtolower(trim((string)$selCond));
?>
<select name="condition">
<option value="used" <?= $selCondNorm==='used'?'selected':'' ?>>???????</option>
<option value="new" <?= $selCondNorm==='new'?'selected':'' ?>>?????</option>
<option value="almost new" <?= $selCondNorm==='almost new'?'selected':'' ?>>??? ?????</option>
</select>
</div>
</div>
</div>
<div class="card">
<div class="section-title">??????? ??????? ???????</div>
<div class="two">
<div class="row">
<label>??????? <span style="color:#ef4444">*</span></label>
<?php $selCity = old('city_id', $bike['city_id'] ?? ''); ?>
<select name="city_id" required>
<option value="">???? ???????</option>
<?php foreach ($cities as $c): ?>
<option value="<?= (int)$c['id'] ?>" <?= (string)$selCity === (string)$c['id'] ? 'selected' : '' ?>>
<?= esc($c['name'] ?? '') ?>
</option>
<?php endforeach; ?>
</select>
<?php if ($validation->hasError('city_id')): ?><div class="err"><?= esc($validation->getError('city_id')) ?></div><?php endif; ?>
</div>
<div class="row ltr">
<label>??? ?????? <span style="color:#ef4444">*</span></label>
<input type="text" name="phone_number" inputmode="tel"
value="<?= esc(old('phone_number', $bike['phone_number'] ?? ($userPhone ?? ''))) ?>"
placeholder="05XXXXXXXX" required>
<?php if ($validation->hasError('phone_number')): ?><div class="err"><?= esc($validation->getError('phone_number')) ?></div><?php endif; ?>
</div>
</div>
<?php $isFeatured = (int)old('is_featured', $bike['is_featured'] ?? 0); ?>
<div class="row" style="margin-top:10px">
<label style="display:flex;align-items:center;gap:10px;font-size:13px;color:#111827;font-weight:800">
<input type="checkbox" name="is_featured" value="1" <?= $isFeatured ? 'checked' : '' ?> style="width:auto">
???? ??????? ?????? (Featured)
</label>
</div>
</div>
<div class="card">
<div class="section-title">?????</div>
<textarea name="description" placeholder="???? ???? ???????? ???????? ????????? ???..."><?= esc(old('description', $bike['description'] ?? '')) ?></textarea>
</div>
<div class="card">
<div class="section-title">?????</div>
<div id="uploader" class="uploader"
data-existing='<?= esc(json_encode($images, JSON_UNESCAPED_SLASHES)) ?>'>
<div class="uploader-head">
<div>
<div class="uploader-title">????? ??? ???????</div>
<div class="muted">
????? ????? ????? ??????? ?????? ???????? ???? ??? ????? ?????? ??? ?????.<br>
??? ?? ??? ????? ?????? ????? ???? ??????? ??? ??.
</div>
</div>
<div style="display:flex;gap:8px;flex-wrap:wrap">
<label class="btn btn-lite" style="padding:10px 12px;border-radius:12px;cursor:pointer">
+ ????? ??? ?????
<input id="photosInput" type="file" name="photos[]" accept="image/*" multiple style="display:none">
</label>
</div>
</div>
<!-- Existing images control -->
<input type="hidden" name="existing_order" id="existing_order" value="">
<input type="hidden" name="existing_main" id="existing_main" value="">
<input type="hidden" name="existing_remove" id="existing_remove" value="[]">
<!-- New uploads control -->
<input type="hidden" name="photo_order" id="photo_order" value="">
<input type="hidden" name="photo_main" id="photo_main" value="0">
<div id="thumbs" class="thumbs"></div>
</div>
</div>
</div>
<!-- RIGHT -->
<div class="card sticky">
<div style="font-weight:900;font-size:18px;margin-bottom:8px">??? ?????????</div>
<div class="muted" style="margin-bottom:12px">
<b>?????:</b> ??? ????? + ????? ???? = ????? ????.<br>
Tip: Clear photos + clean title = more leads.
</div>
<button class="btn btn-primary" style="width:100%" type="submit">
????? ????? ???????
</button>
<a class="btn btn-lite" style="width:100%;margin-top:10px;text-decoration:none" href="<?= site_url($prefix.'my-account/ads') ?>">
?????
</a>
</div>
</div>
</form>
</div>
<?= $this->endSection() ?>
Cost of owning this car
Estimated yearly cost — adjust the values to match your usage.
You can adjust the estimates based on your expected usage.
Total yearly estimate
AED 17,120
These are estimated UAE yearly ownership costs. Actual costs may vary by driver, emirate, insurance company, usage, and vehicle condition.
Unlock phone number
Enter your details and we’ll reveal the seller’s contact.