@if(@$data->close_status==2)
LOST
@endif
{{ __('auth.Date') }}:
{!! Form::text('date',!empty(@$data->date)?date("d-m-Y",strtotime(@$data->date)):null, ['placeholder' => __('auth.Date'), 'class' => 'form-control date_picker','required']) !!}
{{ __('auth.product_pricing') }}:
{!! Form::text('name',null, ['placeholder' => 'e.g. Product Pricing', 'class' => 'form-control']) !!}
{{ __('auth.probability') }}:
{!! Form::text('probability',null, ['placeholder' => __('auth.number'), 'class' => 'form-control number-only']) !!}
{{ __('auth.sale_person') }}:
{!! Form::select('saleperson_id',getSalemember(),!empty($data->saleperson_id)?@$data->saleperson_id:auth()->user()->id, ['placeholder' => __('auth.Please Select'), 'class' => 'form-control select2']) !!}
{{ __('auth.expected_closing') }}:
{!! Form::text('date_expected_closing',!empty(@$data->date_expected_closing)?date("d-m-Y",strtotime(@$data->date_expected_closing)):null, ['placeholder' => __('auth.Date'), 'class' => 'form-control date_picker']) !!}
{{ __('auth.priority') }}:
{!! Form::select('priority',getPriority(),!empty(@$data->priority)?@$data->priority:1, ['placeholder' => __('auth.Please Select'), 'class' => 'form-select select2']) !!}
{{ __('auth.tags') }}:
{!! Form::select('tag_id[]',getTags(),!empty(@$data->getPipelineTabes)?@$data->getPipelineTabes->pluck("tags_id")->toArray():null, ['class' => 'form-control select2 class_input_create','multiple']) !!}
{{-- Internal Note --}}
{{-- contact of customer --}}
{!! Form::textarea('internal_notes',null, ['placeholder' => __('auth.note'), 'class' => 'form-control','rows'=>'5']) !!}
{{-- Customer Info --}}
{{ __('auth.name') }}:
KH
{!! Form::text('customer_name_kh',@$data->getCustomer->name, ['placeholder' => __('auth.name'), 'class' => 'form-control','required']) !!}
{{ __('auth.name') }}:
EN
{!! Form::text('customer_name_en',@$data->getCustomer->name_en, ['placeholder' => __('auth.name'), 'class' => 'form-control']) !!}
{{ __('auth.type') }}:
{!! Form::select('customer_type',getCustomerType(),@$data->getCustomer->type, ['class' => 'form-select select2']) !!}
{{ __('auth.phone') }}:
{!! Form::text('contact',@$data->getCustomer->contact, ['placeholder' => __('auth.phone'), 'class' => 'form-control','required']) !!}
{{ __('auth.email') }}:
{!! Form::text('email',@$data->getCustomer->email, ['placeholder' => __('auth.email'), 'class' => 'form-control']) !!}
{{ __('auth.website') }}:
{!! Form::text('website',@$data->getCustomer->website, ['placeholder' => __('auth.website'), 'class' => 'form-control']) !!}
{{__("auth.house_no")}} :
{!! Form::text('house_no',@$data->getCustomer->house_number, array('placeholder' => __("auth.house_no"),'class' => 'form-control')) !!}
{{__("auth.street_no")}} :
{!! Form::text('street_no',@$data->getCustomer->street_number, array('placeholder' => __("auth.street_no"),'class' => 'form-control')) !!}
{{__("auth.province")}}:
{!! Form::select('province',getProvince(),@$data->getCustomer->province, array('class' => 'form-control select2','id'=>'p_province')) !!}
{{__("auth.district")}}:
{!! Form::select('district',getDistrict(@$data->getCustomer->province),@$data->getCustomer->district, array('class' => 'form-control select2','id'=>'p_district')) !!}
{{__("auth.commune")}}:
{!! Form::select('commune',getCommune(@$data->getCustomer->district),@$data->getCustomer->commune, array('class' => 'form-control select2','id'=>'p_commune')) !!}
{{__("auth.village")}}:
{!! Form::select('village',getVillage(@$data->getCustomer->commune),@$data->getCustomer->village, array('class' => 'form-control select2','id'=>'p_village')) !!}
{{-- main contact person --}}
{{-- Customer social account info --}}
{{-- marketing --}}
{{ __("auth.contact_person_info") }}
{{ __('auth.contact_person_name') }}:
KH
{!! Form::text('contact_person_name_kh',@$data->getCustomer->getContactPerson->name_kh, ['placeholder' => __('auth.name'), 'class' => 'form-control']) !!}
{{ __('auth.contact_person_name') }}:
EN
{!! Form::text('contact_person_name_en',@$data->getCustomer->getContactPerson->name_en, ['placeholder' => __('auth.name'), 'class' => 'form-control']) !!}
{{ __('auth.gender') }}:
{!! Form::select('gender',['Male'=>"Male",'Female'=>'Female'],@$data->getCustomer->getContactPerson->gender, array('class' => 'form-control select2')) !!}
{{ __('auth.position') }}:
{!! Form::text('job_position',@$data->getCustomer->getContactPerson->job_position, ['placeholder' => __('auth.position'), 'class' => 'form-control']) !!}
{{ __('auth.phone') }}:
{!! Form::text('contact_phone_number',@$data->getCustomer->getContactPerson->phone_number, ['placeholder' => __('auth.phone'), 'class' => 'form-control']) !!}
{{ __('auth.email') }}:
{!! Form::text('contact_person_email',@$data->getCustomer->getContactPerson->email, ['placeholder' => __('auth.email'), 'class' => 'form-control']) !!}
{{ __('auth.customer_social_account_info') }}
{{__("auth.contact_by")}} :
{!! Form::select('contact_by_id',getMarketing(),null, array('placeholder' => __("auth.Please Select"),'class' => 'form-control select2 class_input_create_contact_by')) !!}
{{__("auth.source")}}:
{!! Form::select('source_id',getMarketing(),null, array('placeholder' => __("auth.Please Select"),'class' => 'form-control select2 class_input_create_source')) !!}
{{ __('auth.known_product_by') }}:
{!! Form::textarea('know_product_by',null, ['placeholder' => __('auth.remark'), 'class' => 'form-control','rows'=>'3']) !!}