@extends('layouts.iconbar') @section('title') Upate Customer @endsection @section('breadcrumbs') {{ Breadcrumbs::render(\Request::route()->getName(), $user) }} @endsection @section('content')
{!! Form::model($user, ['method' => 'PUT', 'route' => ['admin.customers.update', $user->id]]) !!}
{!! Form::select('customer_group_id', $customer_groups, old('customer_group_id'), ['class' => 'form-control select2','id' => 'customer_group_id']) !!} {!! Form::label('customer_group_id', trans('global.users.fields.customer_group').'*', ['class' => 'floating-label']) !!}
Please select customer group.
@if($errors->has('customer_group_id'))

{{ $errors->first('customer_group_id') }}

@endif
{!! Form::select('account_manager_id', $global_admin, old('account_manager_id'), ['class' => 'form-control select2','id' => 'account_manager']) !!} {!! Form::label('account_manager_id', trans('global.users.fields.account_manager').'*', ['class' => 'floating-label']) !!}
Please select account manager.
@if($errors->has('account_manager_id'))

{{ $errors->first('account_manager_id') }}

@endif
{!! Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => '', 'required' => '']) !!} {!! Form::label('name', trans('global.users.fields.name').'*', ['class' => 'floating-label']) !!}
Please enter first name.
@if($errors->has('name'))

{{ $errors->first('name') }}

@endif
{!! Form::text('last_name', old('last_name'), ['class' => 'form-control', 'placeholder' => '', 'required' => '']) !!} {!! Form::label('last_name', trans('global.users.fields.last-name').'*', ['class' => 'floating-label']) !!}
Please enter last name.
@if($errors->has('last_name'))

{{ $errors->first('last_name') }}

@endif
{!! Form::text('xero_id', old('xero_id'), ['class' => 'form-control', 'readonly' => true, 'placeholder' => '', 'required' => '']) !!} {!! Form::label('xero_id', 'Xero Id', ['class' => 'floating-label']) !!}
{!! Form::text('company_name', old('company_name'), ['class' => 'form-control', 'placeholder' => '', 'required' => '']) !!} {!! Form::label('company_name', trans('global.users.fields.company-name').'*', ['class' => 'floating-label']) !!}
Please enter company name.
@if($errors->has('company_name'))

{{ $errors->first('company_name') }}

@endif
{!! Form::text('owner', old('owner'), ['class' => 'form-control', 'placeholder' => '', 'required' => '']) !!} {!! Form::label('owner', trans('global.users.fields.owner').'*', ['class' => 'floating-label']) !!}
Please enter owner name.
@if($errors->has('owner'))

{{ $errors->first('owner') }}

@endif
{!! Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => '', 'required' => '']) !!} {!! Form::label('email', trans('global.users.fields.email').'*', ['class' => 'floating-label']) !!}
Please enter a valid email address.
@if($errors->has('email'))

{{ $errors->first('email') }}

@endif
{!! Form::text('phone', old('phone'), ['class' => 'form-control', 'placeholder' => '', 'pattern' => "[0-9]{10}" ] ) !!} {!! Form::label('phone', trans('global.users.fields.phone').'', ['class' => 'floating-label']) !!}
Please enter valid phone number. Must be 10 digits.
@if($errors->has('phone'))

{{ $errors->first('phone') }}

@endif
{!! Form::text('mobile', old('mobile'), ['class' => 'form-control', 'placeholder' => '', 'required'=>'', 'pattern' => "[0-9]{10}"]) !!} {!! Form::label('mobile', trans('global.users.fields.mobile').'*', ['class' => 'floating-label']) !!}
Please enter valid mobile number. Must be 10 digits.
@if($errors->has('mobile'))

{{ $errors->first('mobile') }}

@endif
{!! Form::text('address_address', old('address_address'), ['class' => 'form-control map-input', 'id' => 'address-input', 'placeholder' => '']) !!} {!! Form::label('address_address', trans('global.users.fields.address').'', ['class' => 'floating-label']) !!} {!! Form::hidden('address_latitude', 0 , ['id' => 'address-latitude']) !!} {!! Form::hidden('address_longitude', 0 , ['id' => 'address-longitude']) !!}
Please enter address.
@if($errors->has('address'))

{{ $errors->first('address') }}

@endif
@if(!env('GOOGLE_MAPS_API_KEY')) 'GOOGLE_MAPS_API_KEY' is not set in the .env @endif {{--
--}} {{--
--}} {{--{!! Form::label('progress_sms_notfications', trans('global.users.fields.progress-sms-notfications').'', ['class' => 'floating-label']) !!}--}} {{--

--}} {{--@if($errors->has('progress_sms_notfications'))--}} {{--

--}} {{--{{ $errors->first('progress_sms_notfications') }}--}} {{--

--}} {{--@endif--}} {{--
--}} {{----}} {{----}} {{--
--}} {{--
--}} {{--
--}} {{--{!! Form::label('progress_email_notfications', trans('global.users.fields.progress-email-notfications').'', ['class' => 'floating-label']) !!}--}} {{--

--}} {{--@if($errors->has('progress_email_notfications'))--}} {{--

--}} {{--{{ $errors->first('progress_email_notfications') }}--}} {{--

--}} {{--@endif--}} {{--
--}} {{----}} {{----}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--{!! Form::label('job_email_notfications', trans('global.users.fields.job-email-notfications').'', ['class' => 'floating-label']) !!}--}} {{--

--}} {{--@if($errors->has('job_email_notfications'))--}} {{--

--}} {{--{{ $errors->first('job_email_notfications') }}--}} {{--

--}} {{--@endif--}} {{--
--}} {{----}} {{----}} {{--
--}} {{--
--}} {{--
--}} {{--{!! Form::label('job_sms_notfications', trans('global.users.fields.job-sms-notfications').'', ['class' => 'floating-label']) !!}--}} {{--

--}} {{--@if($errors->has('job_sms_notfications'))--}} {{--

--}} {{--{{ $errors->first('job_sms_notfications') }}--}} {{--

--}} {{--@endif--}} {{--
--}} {{----}} {{----}} {{--
--}} {{--
--}} {{--
--}}

Enter (up to) three emails / phone numbers you would like notifications sent to

{!! Form::email('email2', old('email2'), ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('email2', trans('global.users.fields.email').'', ['class' => 'floating-label']) !!}
Please enter valid email.
@if($errors->has('email2'))

{{ $errors->first('email2') }}

@endif
{!! Form::text('mobile2', old('mobile2'), ['class' => 'form-control', 'placeholder' => '', 'pattern' => "[0-9]{10}"]) !!} {!! Form::label('mobile2', trans('global.users.fields.mobile').'', ['class' => 'floating-label']) !!}
Please enter valid mobile number upto 10 digits.
@if($errors->has('mobile2'))

{{ $errors->first('mobile2') }}

@endif
{!! Form::email('email3', old('email3'), ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('email3', trans('global.users.fields.email').'', ['class' => 'floating-label']) !!}
Please enter valid number upto 10 digits.
@if($errors->has('email3'))

{{ $errors->first('email3') }}

@endif
{!! Form::text('mobile3', old('mobile3'), ['class' => 'form-control', 'placeholder' => '', 'pattern' => "[0-9]{10}"]) !!} {!! Form::label('mobile3', trans('global.users.fields.mobile').'', ['class' => 'floating-label']) !!}
Please enter valid number upto 10 digits.
@if($errors->has('mobile3'))

{{ $errors->first('mobile3') }}

@endif
{!! Form::email('email4', old('email4'), ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('email4', trans('global.users.fields.email').'', ['class' => 'floating-label']) !!}
Please enter email.
@if($errors->has('email4'))

{{ $errors->first('email4') }}

@endif
{!! Form::text('mobile4', old('mobile4'), ['class' => 'form-control', 'placeholder' => '', 'pattern' => "[0-9]{10}"]) !!} {!! Form::label('mobile4', trans('global.users.fields.mobile').'', ['class' => 'floating-label']) !!}
Please enter number upto 10 digits.
@if($errors->has('mobile4'))

{{ $errors->first('mobile4') }}

@endif
{!! Form::hidden('role[]', 3, old('role'), ['class' => 'form-control', 'required' => '']) !!} {!! Form::button(trans('global.app_update'), ['class' => 'btn btn-info', 'type' => 'submit']) !!} {!! Form::close() !!}
@stop @section('javascript') @parent @stop