@extends('layout.app') @section('title','Create User') @push('headerscript') @endpush @section('content')
{!! Form::open(['route' => ['user.store'], 'method' => 'post','autocomplete'=>'off']) !!}
{!! Form::select('role', [''=>'--Select--','admin'=>'Admin','user'=>'User'], old('role'), ['class'=>'form-control','id'=>'role','required']) !!}
{{$errors->first('role')}}
{{$errors->first('name')}}
{{$errors->first('mobile_no')}}
{!! Form::select('branch', [''=>'--Select--','All Branches'=>'All Branches','Multiple Branch'=>'Multiple Branch']+$branch, old('branch'), ['class'=>'form-control select2','id'=>'branch','required']) !!}
{{$errors->first('role')}}
{{$errors->first('branch')}}
{!! Form::select('status', [''=>'--Select--','active'=>'Active','inactive'=>'Inactive'], old('status'), ['class'=>'form-control','id'=>'status','required']) !!}
{{$errors->first('status')}}
{{$errors->first('email')}}
{{$errors->first('password')}}
{{$errors->first('password_confirmation')}}
{!! Form::close() !!}
@endsection @push('footerscript') @endpush