@extends('layouts.app') @push('pg_btn') All Users @endpush @section('content')
@can('update-user') {!! Form::open(['route' => ['users.update', $user], 'method'=>'put', 'files' => true]) !!} @endcan
User information
{{ 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
{{ Form::label('role', 'Select Role', ['class' => 'form-control-label']) }} {{ Form::select('role', $roles, $user->roles, [ 'class'=> 'selectpicker form-control', 'placeholder' => 'Select role...']) }}

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::hidden('status', 0) !!} status ? 'checked' : ''}} class="custom-control-input" id="status"> {{ Form::label('status', 'Status', ['class' => 'custom-control-label']) }}
@can('update-user')
{{ Form::submit('Submit', ['class'=> 'mt-5 btn btn-primary']) }}
@endcan
@can('update-user') {!! Form::close() !!} @endcan
@endsection @push('scripts') @endpush