@extends('layouts.contentLayoutMaster') @section('title') Edit user: {{$user->fullName}} @endsection @php $breadcrumbs = [ [ 'link'=>route('users'), 'name' =>'Users' ] ] @endphp @section('vendor-style') @endsection @section('pageStyles') @endsection @section('content') @include('elements.messages-error') {!! Form::model($user, ['route' => ['user-update', $user->id], 'method' => 'post', 'class' => 'form form-vertical', 'novalidate']) !!} @csrf Personal Details {!! Form::label('first_name', 'First Name *') !!} {!! Form::text('first_name', old('first_name'), [ 'id' => 'first_name', 'class' => 'form-control', ] + $validationRules['first_name']) !!} {!! Form::label('last_name', 'Last Name *') !!} {!! Form::text('last_name', old('last_name'), [ 'id' => 'last_name', 'class' => 'form-control', ] + $validationRules['last_name']) !!} {!! Form::label('email', 'Email *') !!} {!! Form::text('email', old('email'), [ 'id' => 'email', 'class' => 'form-control', ] + $validationRules['email']) !!} {!! Form::label('telephone', 'Telephone') !!} {!! Form::text('telephone', old('telephone'), [ 'id' => 'telephone', 'class' => 'form-control', ] + $validationRules['telephone']) !!} {!! Form::label('mobile', 'Mobile') !!} {!! Form::text('mobile', old('mobile'), [ 'id' => 'mobile', 'class' => 'form-control', ] + $validationRules['mobile']) !!} Employment Details {!! Form::label('job_title', 'Job Title') !!} {!! Form::text('job_title', old('job_title'), [ 'id' => 'job_title', 'class' => 'form-control', ] + $validationRules['job_title']) !!} {!! Form::label('employee_type_ids', 'Employee Type *') !!} {!! Form::select('employee_type_ids[]', $employeeTypes['options'], old('employee_type_ids', $user->types), [ 'id' => 'employee_type_ids', 'class' => 'select2 form-control', 'multiple' => 'multiple' ] + $validationRules['employee_type_ids'], $employeeTypes['optionAttributes']) !!} Save Cancel {{ Form::close() }} @endsection @section('vendor-script') @endsection @section('page-script') {{-- Page js files --}} @endsection