@extends('layouts.default')
@section('title', 'Create new user')
@section('new_button')
Users List
@endsection
@section('content')
{!! Form::model($user, ['url'=>['users', $user->id], 'method'=>'PUT', 'id'=>'createForm']) !!}
Marketing Information
{!! Form::textGroup('name', 'Name', $user->name, ['required'=>'required']) !!}
{!! Form::emailGroup('email', 'Email', $user->email, ['required'=>'required', 'readonly']) !!}
{!! Form::fileGroup('profile_pic', 'Profile pic') !!}
{{ Form::selectGroup('country_id', 'Country', $countries, $user->country_id, ['data-live-search'=>'true', 'onchange'=>'getStates(1)', 'id'=>'country_1']) }}
{{ Form::selectGroup('state_id', 'State', $states, $user->state_id, ['data-live-search'=>'true', 'onchange'=>'getCities(1)', 'id'=>'state_1']) }}
{{ Form::selectGroup('city_id', 'City', $cities, $user->city_id, ['data-live-search'=>'true', 'id'=>'city_1']) }}
{{-- Personal Info --}}
Personal Information
{{ Form::textGroup('mark_name', 'Name', $user->profile->name, []) }}
{{ Form::textGroup('mark_email', 'Email', $user->profile->email, []) }}
{{ Form::selectGroup('mark_country_id', 'Country', $countries, $user->profile->country_id, ['data-live-search'=>'true', 'id'=>'country_2', 'onchange'=>'getStates(2)']) }}
{{ Form::selectGroup('mark_state_id', 'State', $states, $user->profile->state_id, ['data-live-search'=>'true', 'id'=>'state_2', 'onchange'=>'getCities(2)']) }}
{{ Form::selectGroup('mark_city_id', 'City', $cities, $user->profile->city_id, ['data-live-search'=>'true', 'id'=>'city_2']) }}
{{-- Role & Department --}}
User Information
{!! Form::selectGroup('company_id', 'Country', $companies, null, ['class'=>'selectpicker','data-live-search'=>'true' ,'required'=>'required', 'id'=>'companySelect']) !!}
{!! Form::selectGroup('department_id', 'Department', $departments, null, ['class'=>'selectpicker','data-live-search'=>'true', 'title'=>'Select Department']) !!}
Select Role
Reporting Person {{ redStar() }}
Cancel
{!! Form::submit('Save', ['type' => 'submit', 'class' =>
'btn btn-primary waves-effect waves-light']) !!}
{!! Form::close() !!}
@endsection