feat: final updates
This commit is contained in:
@@ -172,7 +172,7 @@
|
||||
data-jdp-target-value-type="gregorian"
|
||||
autocomplete="off"
|
||||
placeholder="مثلاً 1403/05/29 14:30"
|
||||
value="{{ old('departure_time_jalali', $flight->departure_time ? verta($flight->departure_time)->format('Y/m/d H:i') : '') }}"
|
||||
value="{{ old('departure_time_jalali', $flight->departure_time->toJalali()->format('Y/m/d H:i')) }}"
|
||||
>
|
||||
|
||||
<input
|
||||
@@ -187,6 +187,35 @@
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<!-- Return Time -->
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">زمان برگشت (اختیاری)</label>
|
||||
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
name="return_time_jalali"
|
||||
id="return_time_jalali"
|
||||
data-jdp
|
||||
data-jdp-target-value-input="#return_time_gregorian"
|
||||
data-jdp-target-value-type="gregorian"
|
||||
autocomplete="off"
|
||||
placeholder="مثلاً 1403/06/02 18:00"
|
||||
value="{{ old('return_time_jalali', $flight->return_time ? $flight->return_time->toJalali()->format('Y/m/d H:i') : '') }}"
|
||||
>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
name="return_time"
|
||||
id="return_time_gregorian"
|
||||
value="{{ old('return_time', optional($flight->return_time)->format('Y-m-d H:i:s')) }}"
|
||||
>
|
||||
|
||||
@error('return_time')
|
||||
<span class="text-danger">{{ $message }}</span>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<!-- Price -->
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">قیمت</label>
|
||||
|
||||
Reference in New Issue
Block a user