@extends('layouts.app') @section('content')

تعديل معلومات الحساب

{!! Form::model($user, ['route' => ['user.settings.account.update', $user], 'method' => 'PUT']) !!}
{!! Form::label('name', 'الاسم') !!} {!! Form::text('name', null, ['class' => 'form-control']) !!}
{!! Form::label('email', 'البريد الإلكتروني') !!} {!! Form::text('email', $user->email, ['class' => 'form-control', 'disabled' => true]) !!}
{!! Form::label('phone_number', 'رقم الجوال') !!} {!! Form::text('phone_number', null, ['class' => 'form-control']) !!} @if($errors->has('phone_number'))
{{ $errors->first('phone_number') }}
@endif
مثال: +966500000000
{!! Form::label('current_password', 'كلمة المرور الحالية') !!} {!! Form::password('current_password', ['class' => 'form-control']) !!} @if($errors->has('current_password'))
{{ $errors->first('current_password') }}
@endif
{!! Form::label('new_password', 'كلمة السر الجديدة') !!} {!! Form::password('new_password', ['class' => 'form-control']) !!} @if($errors->has('new_password'))
{{ $errors->first('new_password') }}
@endif
{!! Form::label('new_password_confirmation', 'تأكيد كلمة السر الجديدة') !!} {!! Form::password('new_password_confirmation', ['class' => 'form-control']) !!} @if($errors->has('new_password_confirmation'))
{{ $errors->first('new_password_confirmation') }}
@endif
{!! Form::submit('حفط', ['class' => 'btn btn-primary btn-alt-primary']) !!}
{!! Form::close() !!}
@endsection