# Forms

## User Profile


<!-- panels:start -->
<!-- div:title-panel -->
### Update Profile
<!-- div:left-panel -->
Update user profile.

<!-- div:right-panel -->

<!-- tabs:start -->

#### **Code**

```php
<form method="POST" action="{{ route('front.my-profile.update') }}">
	@csrf
	<!-- input -->
	<div class="row">
			<div class="col-6">
					<!-- input -->
					<div class="mb-3">
							<label class="form-label">{{ __('Ad') }}</label>
							<input type="text" name="name" class="form-control" value="{{ Auth::user()->name }}" minlength="2" required>
					</div>
			</div>
			<div class="col-6">
					<!-- input -->
					<div class="mb-3">
							<label class="form-label">{{ __('Soyad') }}</label>
							<input type="text" name="surname" class="form-control" value="{{ Auth::user()->surname }}" minlength="2" required>
					</div>
			</div>
	</div>

	<!-- input -->
	<div class="mb-3">
			<label class="form-label">{{ __('E-Posta Adresi') }}</label>
			<input type="email" name="email" class="form-control" value="{{ Auth::user()->email }}" required>
	</div>

	<!-- input -->
	<div class="mb-3">
			<label class="form-label">{{ __('Telefon Numarası') }}</label>
			<input type="tel" name="phone" class="form-control" value="{{ Auth::user()->phone }}" required>
			<small>Telefon numarasının başına ülke kodu ve alan kodu ile birlikte yazınız. Örn: +905301234567</small>
	</div>
	<!-- button -->
	<div class="mb-3">
			<button type="submit" class="btn btn-primary">{{ __('Kaydet') }}</button>
	</div>
</form>
```

<!-- tabs:end -->
<!-- panels:end -->


<!-- panels:start -->
<!-- div:title-panel -->
### Change Password
<!-- div:left-panel -->

Change user password.

<!-- div:right-panel -->

<!-- tabs:start -->

#### **Code**

```php
<form action="{{ route('front.my-profile.update.password') }}" method="POST" class="row">
		@csrf
		<!-- input -->
		<div class="mb-3 col-lg-4">
				<label class="form-label">Eski Şifre</label>
				<input type="password" name="old_password" class="form-control" minlength="6" placeholder="**********">
		</div>
		<!-- input -->
		<div class="mb-3 col-lg-4">
				<label class="form-label">Yeni Şifre</label>
				<input type="password" name="password" class="form-control" minlength="6" placeholder="**********">
		</div>
		<!-- input -->
		<div class="mb-3 col-lg-4">
				<label class="form-label">Yeni Şifre Tekrar</label>
				<input type="password" name="password_confirmation" class="form-control" minlength="6" placeholder="**********">
		</div>
		<!-- input -->
		<div class="col-12">
				<p class="mb-4">Mevcut şifrenizi hatırlamıyor musunuz?
						<a href="#"> Şifrenizi Yenileyin.</a>
				</p>
				<button type="submit" class="btn btn-primary">{{ __('Şifreyi Güncelle') }}</button>
		</div>
</form>
```

<!-- tabs:end -->
<!-- panels:end -->


--------------------------------------


--------------------------------------
