@extends('Admin/layout/master') @section('title', 'User Edit') @section('content')
User Edit
{!! Form::open(['route' => ['user.update', $user->id], 'method' => 'post']) !!}
{!! Form::label('name', 'Name', ['class' => 'form-label']) !!} {!! Form::text('name', $user->name, ['class' => 'form-control', 'placeholder' => 'Enter Name']) !!} {!! $errors->first('name', ':message') !!}
{!! Form::label('email', 'Email', ['class' => 'form-label']) !!} {!! Form::email('email', $user->email, ['class' => 'form-control', 'placeholder' => 'Enter Email']) !!} {!! $errors->first('email', ':message') !!}
{{--
{!! Form::label('password', 'Password', ['class' => 'form-label']) !!} {!! Form::text('password', null, ['class' => 'form-control', 'placeholder' => 'Enter Password']) !!} {!! $errors->first('password', ':message') !!}
--}}
{!! Form::label('mobile', 'Mobile', ['class' => 'form-label']) !!} {!! Form::text('mobile', $user->mobile, ['class' => 'form-control', 'placeholder' => 'Enter Mobile No']) !!} {!! $errors->first('mobile', ':message') !!}
{{--
{!! Form::label('role_id', 'Select Role') !!} {!! Form::select($roles, $roles,null, ['class' => 'form-control']) !!} {!! Form::select($roles->pluck('name'), $roles, $user->roles->pluck('id')->toArray(), ['class' => 'form-control']) !!} --}} {{--
--}}
{!! Form::submit('Update', ['class' => 'btn btn-primary btn-sm my-2']) !!} Back
{!! Form::close() !!}
@endsection