@extends('admin.layout.app') @section('title','Create User') @section('content')

Create User

{!! Form::open(['route'=>array('user-profile.store'), 'onsubmit'=>'BtnSubmit.disabled = true','method' => 'post']) !!}
{{-- input hidden --}}
{{$errors->first('name')}}
{{$errors->first('email')}}
{{$errors->first('password')}}
{{$errors->first('m_number')}}
{!! Form::select("status", ['active'=> 'Active', 'inactive'=>'Inactive'], old("status"), ['class'=>'form-control' ,'id' => 'product_id3','required'=>'required'] ) !!}
{{-- Store keeper = Spare --}} {!! Form::select("user_role", [''=>'Select Type']+['super_admin'=>'Super Admin','admin'=> 'Admin', 'supervisor'=>'Supervisor','advisor'=>'Advisor','spares'=>'Store keeper (spares)','technician'=>'Technician','salesman'=>'Salesman','hr'=>"HR",'accountant'=>'Accountant'], old("user_role"), ['class'=>'form-control' ,'id' => 'product_id2','required'=>'required'] ) !!}
{!! Form::select("branch_id", \App\Http\Helpers\Helper::getBranchData(), old("branch_id"), ['class'=>'form-control' ,'id' => 'branch_id','required'=>'required'] ) !!}
{{$errors->first('user_code')}}
{!! Form::close() !!}
@endsection @push('footerscript') @endpush