feat: final updates

This commit is contained in:
2026-08-22 11:11:28 -07:00
parent 618a3d4cd9
commit d4bb1b9414
43 changed files with 1136 additions and 375 deletions
@@ -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">
+30 -1
View File
@@ -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>