@extends('admin.layout.app') @section('title','Profile') @section('header')

Home - User Profile

@endsection @section('content')
{{ __('Edit Profile') }}
{{ html()->form('POST', route('users.profileUpdate'))->attribute('class', 'validate')->attribute('role', 'form')->attribute('enctype', 'multipart/form-data')->open() }} @csrf {{ html()->hidden('id', Auth::user()->id) }}
{{ html()->label('Name')->for('name') }} {{ html()->text('name', Auth::user()->name)->class('form-control' . ($errors->has('name') ? ' is-invalid' : ''))->placeholder('Name')->required() }} {!! $errors->first('name', '
:message
') !!}
{{ html()->label('Email')->for('email') }} {{ html()->email('email', Auth::user()->email)->class('form-control' . ($errors->has('email') ? ' is-invalid' : ''))->placeholder('Email')->required() }} {!! $errors->first('email', '
:message
') !!}
{{ html()->label('Old password')->for('old_password') }} {{ html()->password('old_password')->class('form-control' . ($errors->has('old_password') ? ' is-invalid' : ''))->placeholder('Old Password')->id('old_password') }} {!! $errors->first('old_password', '
:message
') !!}
{{ html()->label('New password')->for('new_password') }} {{ html()->password('new_password')->class('form-control' . ($errors->has('new_password') ? ' is-invalid' : ''))->placeholder('New Password')->id('new_password') }} {!! $errors->first('new_password', '
:message
') !!}
{{ html()->label('Confirm password')->for('confirm_password') }} {{ html()->password('confirm_password')->class('form-control' . ($errors->has('confirm_password') ? ' is-invalid' : ''))->placeholder('Confirm Password') }} {!! $errors->first('confirm_password', '
:message
') !!}
{{ html()->label('Image')->for('image') }} {{ html()->file('image')->class('form-control dropify' . ($errors->has('image') ? ' is-invalid' : ''))->attribute('accept', 'image/png,image/jpg,image/jpeg')->attribute('data-default-file', auth()->user()->image)->attribute('data-height', '200') }} {!! $errors->first('image', '
:message
') !!}
{{ html()->button('Submit')->class('btn btn-primary ms-3')->attribute('type', 'submit')->attribute('onclick', 'this.form.submit()') }}
{{ html()->form()->close() }}
@endsection @section('script') @endsection