git add .

git commit "add profile image upload support"
This commit is contained in:
2026-08-16 11:37:20 +03:30
parent e3549b4749
commit d43e74b280
10 changed files with 406 additions and 26 deletions
+4 -4
View File
@@ -346,7 +346,7 @@
<div class="mb-4">
<label
for="image"
for="profile_image"
class="block text-sm/6 font-medium text-gray-500 dark:text-gray-300"
>
تصویر پروفایل
@@ -356,15 +356,15 @@
<input
type="file"
id="image"
name="image"
id="profile_image"
name="profile_image"
accept=".jpg,.jpeg,.png,.webp"
class="block w-full p-3 text-base outline-none text-gray-800 dark:text-gray-100 dark:bg-gray-900 bg-slate-100 border border-transparent rounded-md"
>
</div>
@error('image')
@error('profile_image')
<span class="text-red-500 text-sm">
{{ $message }}
</span>
+3 -3
View File
@@ -3,7 +3,7 @@
<!-- index.html 07:26:20 -->
<head>
<title>قالب رزرواسیون</title>
<title>airline_agency</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="{{asset('assets/css/font-awesome.css')}}"/>
@@ -15,9 +15,9 @@
<body>
@includeUnless(isset($withoutHeader),'layouts.header')
@includeUnless(isset($withoutHeader),'layouts.hero')
@includeUnless(isset($withoutHero),'layouts.hero')
@yield('content')
@includeUnless(isset($withoutHeader),'layouts.footer')
@includeUnless(isset($withoutFooter),'layouts.footer')
<script src="{{asset('assets/js/moment.js')}}"></script>
<script src="{{asset('assets/js/bootstrap.js')}}"></script>
<script src="{{asset('assets/js/owl-carousel.js')}}"></script>
+1 -6
View File
@@ -1049,15 +1049,10 @@
<ul class="dropdown-menu">
<li>
<a href="#">
<a href="{{route('users.profile.edit')}}">
پروفایل
</a>
</li>
<li>
<a href="#">
تغییر رمز عبور
</a>
</li>
<li>
<a href="#">
+231 -3
View File
@@ -1,3 +1,231 @@
<div>
<!-- It is never too late to be what you might have been. - George Eliot -->
</div>
@extends('layouts.app')
@section('content')
<div class="theme-page-section _pt-100">
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="theme-login theme-login-white">
<div class="theme-login-header">
<h1 class="theme-login-title">
ویرایش پروفایل
</h1>
<p class="theme-login-subtitle">
اطلاعات حساب کاربری خود را ویرایش کنید
</p>
</div>
<div class="theme-login-box">
<div class="theme-login-box-inner">
<form
action="{{ route('users.profile.update') }}"
method="POST"
enctype="multipart/form-data"
class="theme-login-form"
>
@csrf
@method('PUT')
<div class="mb-4">
<label>
نام
</label>
<input
type="text"
name="first_name"
value="{{ old('first_name', $user->first_name) }}"
class="form-control"
>
@error('first_name')
<span class="text-danger">
{{ $message }}
</span>
@enderror
</div>
<div class="mb-4">
<label>
نام خانوادگی
</label>
<input
type="text"
name="last_name"
value="{{ old('last_name', $user->last_name) }}"
class="form-control"
>
</div>
<div class="mb-4">
<label>
شماره موبایل
</label>
<input
type="text"
name="mobile"
value="{{ old('mobile', $user->mobile) }}"
class="form-control"
>
</div>
<div class="mb-4">
<label>
ایمیل
</label>
<input
type="email"
name="email"
value="{{ old('email', $user->email) }}"
class="form-control"
>
</div>
<div class="mb-4">
<label
for="profile_image"
class="block text-sm/6 font-medium text-gray-500 dark:text-gray-300"
>
تصویر پروفایل
</label>
<div class="mt-3">
<input
type="file"
id="profile_image"
name="profile_image"
accept=".jpg,.jpeg,.png,.webp"
class="block w-full p-3 text-base outline-none text-gray-800 dark:text-gray-100 dark:bg-gray-900 bg-slate-100 border border-transparent rounded-md"
>
</div>
@error('profile_image')
<span class="text-red-500 text-sm">
{{ $message }}
</span>
@enderror
</div>
<hr>
<h4>
تغییر رمز عبور
</h4>
<div class="mb-4">
<label>
رمز عبور فعلی
</label>
<input
type="password"
name="current_password"
class="form-control"
>
</div>
<div class="mb-4">
<label>
رمز عبور جدید
</label>
<input
type="password"
name="new_password"
class="form-control"
>
</div>
<div class="mb-4">
<label>
تکرار رمز جدید
</label>
<input
type="password"
name="new_password_confirmation"
class="form-control"
>
</div>
<button
type="submit"
class="submit-btn"
>
ذخیره تغییرات
</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection