@extends('layouts.app') @push('css') @endpush @php $name = old('name'); $email = old('email'); $phone_no = old('user_phone_no'); $role_id = old('role_id'); @endphp @section('content')

Manage Users

Add User

{!! Form::open(['name'=>'adduserfrm', 'id'=>'adduserfrm', 'route' => 'users.store', 'method' => 'post', 'files' => true]) !!} {!! Form::hidden('user_phone_no') !!}
@include('admin.includes.message')
{!! Form::label('name', 'Name *', ['for' => 'name']) !!} {!! Form::text('name',$name,['class'=>'form-control','placeholder'=>'Enter Full Name','autofocus'=>true]) !!} @if($errors->has('name')) {{ $errors->first('name') }} @else @enderror
{!! Form::label('email', 'Email *', ['for' => 'email']) !!} {!! Form::email('email',$value = $email,$attributes = ['class'=>'form-control','placeholder'=>'Enter Email Address']) !!} @if($errors->has('email')) {{ $errors->first('email') }} @else @enderror
{!! Form::label('password', 'Password *', ['for' => 'password']) !!} {!! Form::password('password',['class'=>'form-control','placeholder'=>'Enter Password']) !!} @if($errors->has('password')) {{ $errors->first('password') }} @else @enderror
{!! Form::label('password_confirmation', 'Confirm Password *', ['for' => 'password_confirmation']) !!} {!! Form::password('password_confirmation',['class'=>'form-control','placeholder'=>'Re enter password']) !!} @if($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @else @enderror
{!! Form::label('role_id', 'Role *') !!} {!! Form::select('role_id', $roles, $role_id, ['class'=>'form-control','placeholder' => 'Select Role']) !!} @if($errors->has('role_id')) {{ $errors->first('role_id') }} @else @enderror
{!! Form::label('phone_no', 'Phone Number *') !!} {!! Form::text('phone_no',$phone_no,['class'=>'form-control']) !!} @if($errors->has('user_phone_no')) {{ $errors->first('user_phone_no') }} @else @enderror (Note: Please enter phone number starts with 201)
{!! Form::close() !!}
@endsection @push('script') @endpush