From 68d11dcbd5c67da651e85e2865d482984ce939d3 Mon Sep 17 00:00:00 2001 From: shahrzad011 Date: Wed, 19 Aug 2026 08:17:48 +0330 Subject: [PATCH] fix: update airport management --- app/Http/Requests/AirportStoreRequest.php | 21 ++++- resources/views/account/dashboard.blade.php | 85 ++++++++++++++++++++- 2 files changed, 102 insertions(+), 4 deletions(-) diff --git a/app/Http/Requests/AirportStoreRequest.php b/app/Http/Requests/AirportStoreRequest.php index 70fe01e..e1898ef 100644 --- a/app/Http/Requests/AirportStoreRequest.php +++ b/app/Http/Requests/AirportStoreRequest.php @@ -14,6 +14,15 @@ class AirportStoreRequest extends FormRequest { return true; } + protected function prepareForValidation(): void + { + // کد فرودگاه همیشه با حروف بزرگ ذخیره شود (IATA) + if ($this->has('code')) { + $this->merge([ + 'code' => strtoupper($this->input('code')), + ]); + } + } /** * Get the validation rules that apply to the request. @@ -35,7 +44,7 @@ class AirportStoreRequest extends FormRequest 'string', 'max:100' ], - 'country' => + 'province' => [ 'required', 'string', @@ -50,6 +59,16 @@ class AirportStoreRequest extends FormRequest ]; } + public function attributes(): array + { + return [ + 'name' => 'نام فرودگاه', + 'city' => 'شهر', + 'country' => 'کشور', + 'code' => 'کد فرودگاه', + ]; + } + // public function messages(): array // { // return [ diff --git a/resources/views/account/dashboard.blade.php b/resources/views/account/dashboard.blade.php index 38438fd..2a22e05 100644 --- a/resources/views/account/dashboard.blade.php +++ b/resources/views/account/dashboard.blade.php @@ -1,3 +1,82 @@ -
- -
+@extends('layouts.app') + +@section('title', 'حساب کاربری') + +@section('content') + +
+ +
+ +
+ +

+ حساب کاربری +

+ +
+ +
+ + + + +
+ +

+ خوش آمدید +

+ +

+ از این بخش می‌توانید رزروها و اطلاعات حساب خود را مدیریت کنید. +

+ +
+ +
+ +
+ +
+ +@endsection