feat: final debug

This commit is contained in:
2026-08-22 08:40:01 +03:30
parent 6a180bd24e
commit 7fa3230339
5 changed files with 9 additions and 48 deletions
@@ -22,11 +22,12 @@ class FlightController extends Controller
'destinationAirport',
])
->latest('id')
->paginate(10);
->paginate(5);
foreach ($flights as $flight) {
$flight->start_date_fa = $flight->start_time
? $flight->start_time->toJalali()->format('Y/m/d')
: null;
$flight->start_date_fa = $flight->start_time ? $flight->start_time->toJalali()->format('Y/m/d') : null;
$flight->end_date_fa = $flight->end_time
? $flight->end_time->toJalali()->format('Y/m/d')
@@ -40,6 +40,7 @@ class FlightPostRequest extends FormRequest
],
'end_time' => [
'required',
],
'price' => [
'required',
@@ -72,8 +72,7 @@
<div class="form-group">
<label>رمز عبور</label>
<input
type="password" name="password" class="form-control"
placeholder="رمز عبور"
type="password" name="password" class="form-control" placeholder="رمز عبور"
>
@error('password')
<span class="text-danger">{{ $message }}</span>
@@ -84,10 +83,8 @@
<div class="col-md-6">
<div class="form-group">
<label>تکرار رمز عبور</label>
<input
type="password" name="password_confirmation" class="form-control"
placeholder="تکرار رمز عبور"
>
<input type="password" name="password_confirmation" class="form-control"
placeholder="تکرار رمز عبور">
</div>
</div>
@@ -155,9 +155,6 @@
<i class="far fa-check"></i>
</button>
<a href="{{ route('admin.tours.index') }}" class="theme-btn">
بازگشت
</a>
</div>
</div>
@@ -146,41 +146,6 @@
</a>
</li>
<li class="profile-menu">
<a href="#profile-menu"
data-bs-toggle="collapse"
aria-expanded="false"
aria-controls="profile-menu">
<i class="far fa-plus-circle"></i>
افزودن لیست
<i class="far fa-angle-down profile-menu-angle"></i>
</a>
<div class="collapse" id="profile-menu">
<ul class="profile-menu-list">
<li>
<a href="flight-add.html">
اضافه کردن پرواز
</a>
</li>
<li>
<a href="tour-add.html">
اضافه کردن تور
</a>
</li>
</ul>
</div>
</li>
<li>
<a class="{{ request()->routeIs('favorites.index') ? 'active' : '' }}"
href="{{ route('favorites.index') }}">