feat: final debug
This commit is contained in:
@@ -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') }}">
|
||||
|
||||
Reference in New Issue
Block a user