feat: add Jalali Calendar in flight create and edit for user side

This commit is contained in:
2026-08-20 08:39:08 -07:00
parent 5cbbb11ee6
commit 303dc2d686
4 changed files with 14 additions and 6 deletions
@@ -107,6 +107,7 @@ class FlightController extends Controller
'departure_time' => [
'required',
'date',
'after_or_equal:today',
],
'departure_airport_id' => [
@@ -201,7 +202,7 @@ class FlightController extends Controller
return redirect()
->route('admin.flights.index')
->with('success', 'پرواز با موفقیت ایجاد شد');
->withErrors(['success' => 'پرواز با موفقیت ایجاد شد']);
}
public function edit(Flight $flight)
@@ -252,6 +253,7 @@ class FlightController extends Controller
'departure_time' => [
'required',
'date',
'after_or_equal:today',
],
'departure_airport_id' => [
@@ -345,7 +347,7 @@ class FlightController extends Controller
return redirect()
->route('admin.flights.index')
->with('success', 'پرواز با موفقیت ویرایش شد');
->withErrors(['success'=> 'پرواز با موفقیت ویرایش شد']);
}
public function destroy(Flight $flight)