feat: final updates
This commit is contained in:
@@ -203,6 +203,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') }}"
|
||||
>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
name="return_time"
|
||||
id="return_time_gregorian"
|
||||
value="{{ old('return_time') }}"
|
||||
>
|
||||
|
||||
@error('return_time')
|
||||
<span class="text-danger">{{ $message }}</span>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Price -->
|
||||
<div class="col-xl-6">
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -138,6 +138,7 @@
|
||||
<th>ایرلاین</th>
|
||||
<th>نوع پرواز</th>
|
||||
<th>زمان حرکت</th>
|
||||
<th>زمان برگشت</th>
|
||||
<th>مبدا</th>
|
||||
<th>مقصد</th>
|
||||
<th>قیمت</th>
|
||||
@@ -214,7 +215,11 @@
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $flight->departure_time->toJalali()->format('H:i Y-m-d') }}
|
||||
{{ $flight->departure_time->toJalali()->format('H:i Y-m-d') ?? '—' }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $flight->return_time ? $flight->return_time->toJalali()->format('H:i Y-m-d') : '—' }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user