@extends('layouts.master') @section('page_title') @if(isset($page_title)) {{ $page_title }} @endif @endsection @section('content')
Update Client Details @include('commons.notifications')
{{-- start of content --}}

{!! Form::model($client, [ 'method' => 'PATCH', 'files' => 'true', 'url' => ['clients', $client], 'class' => 'form-horizontal form-label-left']) !!}
{!! Form::text('name', old('name'), ['class' => 'form-control ', 'placeholder'=>'Enter client name' , 'id' => 'name']) !!} {!! $errors->first('name', '

:message

') !!}
{!! Form::select('auth_user_id', $auth_users ,old('auth_user_id'), ['class' => 'form-control ', 'placeholder'=>'Enter Account Manager ' , 'id' => 'auth_user_id']) !!} {!! $errors->first('auth_user_id', '

:message

') !!}
{!! Form::text('contact_person', old('contact_person'), ['class' => 'form-control', 'placeholder'=>'Enter Contact Person' , 'id' => 'contact_person']) !!} {!! $errors->first('contact_person', '

:message

') !!}
{!! Form::text('phone', old('phone'), ['class' => 'form-control', 'placeholder'=>'Enter Phone Number' , 'id' => 'phone']) !!} {!! $errors->first('phone', '

:message

') !!}
{!! Form::text('email', old('email'), ['class' => 'form-control ', 'placeholder'=>'Enter email' , 'id' => 'email']) !!} {!! $errors->first('email', '

:message

') !!}
{!! Form::text('skype_name', old('skype_name'), ['class' => 'form-control', 'placeholder'=>'Enter Skype Name' , 'id' => 'skypeName']) !!} {!! $errors->first('skype_name', '

:message

') !!}
{!! Form::text('linkedin_name', old('linkedin_name'), ['class' => 'form-control ', 'placeholder'=>'Enter LinkedIn Name' , 'id' => 'linkedIn']) !!} {!! $errors->first('linkedin_name', '

:message

') !!}
{!! Form::select('finance_email[]', $finance_emails, $old_finance_emails, ['class' => 'form-control financeEmail', 'id' => 'financeEmail', 'multiple' => 'true']) !!} {!! $errors->first('finance_email', '

:message

') !!}
{!! Form::select('support_emails[]', $support_emails, $old_support_emails, ['class' => 'form-control supportEmail', 'id' => 'supportEmail', 'multiple' => 'true']) !!} {!! $errors->first('support_emails', '

:message

') !!}
{!! Form::select('support_phones[]', $support_phones, $old_support_phones, ['class' => 'form-control supportPhones', 'id' => 'supportPhones', 'multiple' => 'true']) !!} {!! $errors->first('support_phones', '

:message

') !!}
{!! Form::select('country', $countries, old('country'), ['class' => 'form-control ', 'placeholder'=>'Enter Country ' , 'id' => 'country']) !!} {!! $errors->first('country', '

:message

') !!}
{!! Form::select('currency', $currency ,old('currency'), ['class' => 'form-control ' , 'id' => 'currency']) !!} {!! $errors->first('currency', '

:message

') !!}
{!! Form::select('services[]', $service_type, $current_services, ['class' => 'form-control typeServices' , 'id' => 'services', 'multiple'=> 'true']) !!} {!! $errors->first('services', '

:message

') !!}
{!! Form::select('company_type', $company_types, old('company_type'), ['class' => 'form-control', 'placeholder'=>'Enter Company Type' , 'id' => 'companyType']) !!} {!! $errors->first('company_type', '

:message

') !!}
{!! Form::select('industry', $industries, old('industry'), ['class' => 'form-control', 'placeholder'=>'Enter Industry Type' , 'id' => 'industryType', 'required' => 'true']) !!} {!! $errors->first('industry', '

:message

') !!}
{!! Form::select('contract_type', $contract_types, old('contract_type'), ['class' => 'form-control ', 'placeholder'=>'Select Contract type' , 'id' => 'contractType']) !!} {!! $errors->first('contract_type', '

:message

') !!}
{!! Form::text('contract_validity', old('contract_validity'), ['class' => 'form-control', 'placeholder'=>'Enter Contract Date' , 'id' => 'contractValidity']) !!} {!! $errors->first('contract_validity', '

:message

') !!}
{!! Form::select('contract_auto_renew', ['YES' => 'YES','NO' => 'NO'], old('contract_auto_renew'), ['class' => 'form-control ' , 'id' => 'contractAutoRenew' ]) !!} {!! $errors->first('contract_auto_renew', '

:message

') !!}
{!! Form::select('connections[]', $connections_arr, json_decode($client->connections, true), ['class' => 'form-control ' , 'id' => 'connections', 'multiple' => 'true' ]) !!} {!! $errors->first('connections', '

:message

') !!}
{!! Form::select('message_types[]', $message_types_arr, json_decode($client->message_types, true), ['class' => 'form-control ' , 'id' => 'connections', 'multiple' => 'true' ]) !!} {!! $errors->first('connections', '

:message

') !!}
{!! Form::text('smpp_username', old('smpp_username'), ['class' => 'form-control' , 'id' => 'smppUsername', 'placeholder' => 'SMPP Username']) !!} {!! $errors->first('smpp_username', '

:message

') !!}
{!! Form::select('support_skype[]', $support_skype_arr, $old_support_skype_arr, ['class' => 'form-control supportSkype', 'id' => 'supportSkype', 'multiple' => 'true']) !!} {!! $errors->first('support_skype', '

:message

') !!}
{!! Form::select('rate_emails[]', $rate_emails, $old_rate_emails, ['class' => 'form-control rateEmail', 'id' => 'rateEmail', 'multiple' => 'true']) !!} {!! $errors->first('rate_emails', '

:message

') !!}
{!! Form::select('payment_mode', $payment_type, old('pay_mode'), ['class' => 'form-control' , 'id' => 'payment_mode']) !!} {!! $errors->first('payment_mode', '

:message

') !!}
{!! Form::select('how_we_got_client', $how_we_got_clients_arr, old('how_we_got_client'), ['class' => 'form-control' , 'id' => 'howWeGotClient' ]) !!} {!! $errors->first('how_we_got_client', '

:message

') !!}
{!! Form::text('how_we_got_client_other', null, ['class' => 'form-control' , 'id' => 'howWeGotClientOther', 'placeholder' => 'Specify how we got the client']) !!} {!! $errors->first('how_we_got_client_other', '

:message

') !!}
{!! Form::textarea('notes', old('notes'), ['class' => 'form-control ', 'placeholder'=>'Enter additional information here', 'rows' => '5', 'id' => 'clientNotes']) !!} {!! $errors->first('notes', '

:message

') !!}
{!! Form::text('document_one_name', 'Contract', ['class' => 'form-control' , 'id' => 'documentOneName', 'readonly' => 'true']) !!} {!! $errors->first('document_one_name', '

:message

') !!}
{!! Form::file('document_one', null, ['class' => 'form-control' , 'id' => 'documentOne', 'placeholder' => 'Select file to upload']) !!} {!! $errors->first('document_one', '

:message

') !!}
{!! Form::text('document_two_name', 'Non Disclosure', ['class' => 'form-control' , 'id' => 'documentTwoName', 'readonly' => 'true']) !!} {!! $errors->first('document_two_name', '

:message

') !!}
{!! Form::file('document_two', null, ['class' => 'form-control' , 'id' => 'documentTwo', 'placeholder' => 'Select file to upload']) !!} {!! $errors->first('document_two', '

:message

') !!}
{!! Form::text('document_three_name', 'Technical Document', ['class' => 'form-control' , 'id' => 'documentThreeName', 'readonly' => 'true']) !!} {!! $errors->first('document_three_name', '

:message

') !!}
{!! Form::file('document_three', null, ['class' => 'form-control' , 'id' => 'documentThree']) !!} {!! $errors->first('document_three', '

:message

') !!}
{!! Form::text('other_document_name', null, ['class' => 'form-control' , 'id' => 'otherdocumentName', 'placeholder' => 'Enter name of document']) !!} {!! $errors->first('document_three_name', '

:message

') !!}
{!! Form::file('other_document', null, ['class' => 'form-control' , 'id' => 'otherDocument']) !!} {!! $errors->first('other_document', '

:message

') !!}

Live: status == 'Live') ? "checked" : ""; ?> />

Prospective: status == 'Prospective') ? "checked" : ""; ?> />

Inactive status == 'Inactive') ? "checked" : ""; ?> />

@if($current_pending_stage !== 'COMPLETED')
{!! Form::select('onboarding_sub_items_progress[]', $onboarding_sub_items, $onboarding_sub_items_progress, ['class' => 'form-control' , 'id' => 'progressIndicators', 'multiple' => 'true']) !!} {!! $errors->first('onboarding_sub_items', '

:message

') !!}
@endif
{!! Form::close() !!}
{{-- end of x_content --}}
{{-- end of x_panel --}}
@endsection @section('javascript') @endsection