@extends('page') @section('content')

New User Profile

@if ($message = Session::get('success'))
{{ $message }}
@endif
{!! Form::open(array('route' => 'users.store','method'=>'POST','id'=>'users_form', 'files'=> true,'enctype'=>'multipart/form-data')) !!}
{!! Form::text('name', null, array('placeholder' => 'Name','class' => 'form-control form-control-sm')) !!} @error('name') {{ $message }} @enderror
@error('image')
{{ $message }}
@enderror
Contact Information
{!! Form::text('email', null, array('placeholder' => 'Email','class' => 'form-control form-control-sm' ,'id' => 'user_email_id')) !!} @error('email') {{ $message }} @enderror
{!! Form::text('phone_code', 91, array('placeholder' => 'Code','class' => 'form-control form-control-sm','maxlength'=>3)) !!}
{!! Form::text('phone', null, array('placeholder' => 'Contact Number','class' => 'form-control form-control-sm')) !!}
@error('phone_code') {{ $message }} @enderror @error('phone') {{ $message }} @enderror
Company Information
{!! Form::text('designation', null, array('placeholder' => 'Designation','class' => 'form-control form-control-sm')) !!} @error('designation') {{ $message }} @enderror
{!! Form::text('staff_code', null, array('placeholder' => 'Staff Code','class' => 'form-control form-control-sm','id' => 'staff_code')) !!} @error('designation') {{ $message }} @enderror
{!! Form::select('companies', $companies,[], array('class' => 'form-control form-control-sm', 'id'=>'company_id')) !!} @error('companies') {{ $message }} @enderror
@foreach($roles as $value) id}}>{{ Form::checkbox('roles[]', $value->id, false, array('class' => 'name','title'=>$value->name)) }} {{$value->name}}     @endforeach
@error('roles') {{ $message }} @enderror
{!! Form::close() !!}
@include('components.dashboard.vertical')
@endsection