@extends('layouts.app') @section('content')
{!! Form::open(['route' => ['profile.update', $user], 'files' => true]) !!}
Profile
{{ Form::label('name', 'Name', ['class' => 'form-control-label']) }} {{ Form::text('name', $user->name, ['class' => 'form-control']) }}
{{ Form::label('email', 'E-mail', ['class' => 'form-control-label']) }} {{ Form::email('email', $user->email, ['class' => 'form-control']) }}
{{ Form::label('phone_number', 'Phone number', ['class' => 'form-control-label']) }} {{ Form::text('phone_number', $user->phone_number, ['class' => 'form-control']) }}
{{ Form::label('profile_photo', 'Photo', ['class' => 'form-control-label d-block']) }}
@if ($user->profile_photo) Image placeholder @endif

Password information
{{ Form::label('password', 'Password', ['class' => 'form-control-label']) }} {{ Form::password('password', ['class' => 'form-control']) }}
{{ Form::label('password_confirmation', 'Confirm password', ['class' => 'form-control-label']) }} {{ Form::password('password_confirmation', ['class' => 'form-control']) }}

{{ Form::submit('Submit', ['class'=> 'mt-5 btn btn-primary']) }}
{!! Form::close() !!}
@endsection @push('scripts') @endpush