@php $getUserRoleData = userRoleData(); $Opportunities = explode(",",$getUserRoleData->Opportunities); $Accounts = explode(",",$getUserRoleData->Accounts); $Leads = explode(",",$getUserRoleData->Leads); $Notes = explode(",",$getUserRoleData->Notes); $suspicious = explode(",",$getUserRoleData->suspicious); @endphp
@if(count((array) $result['opportunities'])>0 && $result['opportunities']->mark_as_suspicious == 0)
@endif @if(session()->has('message') || session()->has('error'))
@if(session()->has('message'))

{{ trans('labels.Successlabel') }}

{{ session()->get('message') }}
@endif @if(session()->has('error'))

{{ trans('labels.WarningLabel') }}

{{ session()->get('error') }}
@endif
@endif @if(in_array("View",$Opportunities ))
Customer Information

@if(!empty($result['opportunities']->customers_firstname))
Name {{$result['opportunities']->customers_firstname}} {{$result['opportunities']->customers_lastname}}
@endif @if(!empty($result['opportunities']->customers_email_address))
Email Address {{$result['opportunities']->customers_email_address}}
@endif @if(!empty($result['opportunities']->customers_telephone))
Telephone {{$result['opportunities']->customers_telephone}}
@endif @if(!empty($result['opportunities']->alternate_mobile))
Alternate Mobile {{$result['opportunities']->alternate_mobile}}
@endif

Verification Information
@if(!empty($result['opportunities']['products']->name))
Product {{$result['opportunities']['products']->name}}
@endif @if(empty($result['opportunities']->primary_address) && count((array) $result['opportunities']['billing_country'])>0)
Country {{$result['opportunities']['billing_country']->countries_name}}
@endif @if(!empty($result['opportunities']['services_plan']->name))
Services Plan {{$result['opportunities']['services_plan']->name}} @if(!empty($result['opportunities']['services_plan']->model_number)) with {{$result['opportunities']['services_plan']->model_number}} @endif @if(!empty($result['opportunities']['services_plan']->existing_customer)) {{$result['opportunities']['services_plan']->existing_customer}} @endif with ${{$result['opportunities']['services_plan']->price}} {{$result['opportunities']['services_plan']->currency}}
@endif
@if(!empty($result['opportunities']->lead_source))
Lead Source {{$result['opportunities']->lead_source}}
@endif @if(!empty($result['opportunities']->source_of_call))
Referred By {{$result['opportunities']->source_of_call}}
@endif @if(!empty($result['opportunities']['assigned_to_user']->first_name))
Assigned to {{$result['opportunities']['assigned_to_user']->first_name}} {{$result['opportunities']['assigned_to_user']->last_name}}
@endif @if(!empty($result['opportunities']['managed_by']->first_name))
Created By {{$result['opportunities']['managed_by']->first_name}} {{$result['opportunities']['managed_by']->last_name}} on {{date('d-m-Y H:i:s', strtotime($result['opportunities']->created_at))}}
@endif
@if(!empty($result['opportunities']->verification_time))
Verification Time {{date('d-m-Y H:i:s', strtotime($result['opportunities']->verification_time))}}
@endif @if(!empty($result['opportunities']['verified_by']->first_name))
Verified By {{$result['opportunities']['verified_by']->first_name}} {{$result['opportunities']['verified_by']->last_name}}
@endif @if(!empty($result['opportunities']->card_charged_with_gateway))
Payment Gateway{{(count($gateways) > 1 ) ? $k : ''}}: {{$gateways[$i]}}
@if($tans_ids[$i] != '')
Transaction ID{{(count($gateways) > 1 ) ? $k++ : ''}}: {{$tans_ids[$i]}}
@endif @endif @if(!empty($result['opportunities']->opportunities_status))
Status: {{$result['opportunities']->opportunities_status}}
@endif @if(!empty($result['opportunities']->primary_address) || !empty($result['opportunities']->other_address))

Address Information

@endif @if(!empty($result['opportunities']->primary_address))
@if(!empty($result['leadsData']->primary_address))

Billing Address1: {{$result['opportunities']->primary_address}}

@endif @if(!empty($result['opportunities']->primary_address2))

Billing Address2: {{$result['opportunities']->primary_address2}}

@endif @if(!empty($result['opportunities']->p_city)) {{$result['opportunities']->p_city}}, @endif @if(count((array) $result['opportunities']['billing_state'])>0) {{$result['opportunities']['billing_state']->zone_name}}, @endif @if(!empty($result['opportunities']->p_manual_province_name)) {{$result['opportunities']->p_manual_province_name}} @endif @if(!empty($result['opportunities']->p_postal_code)) {{$result['opportunities']->p_postal_code}}, @endif @if(!empty($result['opportunities']->p_manual_country_name)) {{$result['opportunities']->p_manual_country_name}} @endif @if(count((array) $result['opportunities']['billing_country'])>0) {{$result['opportunities']['billing_country']->countries_name}} @endif
@endif @if(!empty($result['opportunities']->other_address))
@if(!empty($result['leadsData']->other_address))

Shipping Address1: {{$result['opportunities']->other_address}}

@endif @if(!empty($result['opportunities']->other_address2))

Shipping Address2: {{$result['opportunities']->other_address2}}

@endif {{$result['opportunities']->o_city}}, @if(count((array) $result['opportunities']['shipping_state'])>0) {{$result['opportunities']['shipping_state']->zone_name}}, @endif @if(!empty($result['opportunities']->o_manual_province_name)) {{$result['opportunities']->o_manual_province_name}} @endif @if(!empty($result['opportunities']->o_postal_code)) {{$result['opportunities']->o_postal_code}}, @endif @if(!empty($result['opportunities']->o_manual_country_name)) {{$result['opportunities']->o_manual_country_name}} @endif @if(count((array) $result['opportunities']['shipping_country'])>0) {{$result['opportunities']['shipping_country']->countries_name}} @endif

@endif @if(count((array) $result['opportunities']['comments_data'])>0)

Notes
@foreach ($result['opportunities']['comments_data'] as $cmVal) @if(!empty($cmVal->description))
@if(count((array) $cmVal['managed_by'])>0){{$cmVal['managed_by']->first_name}} {{$cmVal['managed_by']->last_name}}@else User Not Found @endif updated on {{date('d-m-Y H:i:s', strtotime($cmVal->created_at))}}@if(!empty($cmVal->talk_time)), Call Time: {{$cmVal->talk_time}}@else, Call Time: 00 @endif
{!!nl2br($string)!!}
@endif @endforeach @endif @if(count((array) $result['getCustomlog'])>0)

History Logs
@foreach ($result['getCustomlog'] as $cmVal) @if(!empty($cmVal->all_logs_manage_first_name))
{{$cmVal->all_logs_manage_first_name}} {{$cmVal->all_logs_manage_last_name}} changed {{$cmVal->name}} @if(!empty($cmVal->old_values)) {{$cmVal->old_values}} @else -- @endif to {{$cmVal->new_values}} on {{date('d-m-Y H:i:s', strtotime($cmVal->created_at))}}
@endif @endforeach @endif
@else

Please contact with SuperAdmin

@endif
Watchers
@if(count((array) $result['watchers'])>0) @foreach ($result['watchers'] as $wVal)

{{$wVal->first_name}} {{$wVal->last_name}}

@endforeach @else

Watchers not found

@endif
@if(count((array) $result['opportunities'])>0 && (!empty($result['opportunities']->opportunities_status) && $result['opportunities']->opportunities_status == "Lost") || (!empty($result['opportunities']->conversion_status) && $result['opportunities']->conversion_status =='3')) @else

{{ trans('Notes') }}

{!! Form::open(array('url' =>'admin/common-comments-data', 'method'=>'post', 'class' => 'form-horizontal hidden', 'id' => 'updateOpportunitiesData', 'enctype'=>'multipart/form-data')) !!}
{!! Form::text('talk_time', '', array('class'=>'form-control', 'id'=>'talk_time', 'required'=>'required', 'maxlength'=>'3')) !!}
{!! Form::textarea('comments', '', array('class'=>'form-control', 'id'=>'comments', 'rows'=>'3', 'cols'=>'10', 'required'=>'required')) !!}
{!! Form::close() !!}
@endif @if(in_array("View",$Leads) && count((array) $result['opportunities']['get_leads'])>0)

{{ trans('Leads') }}

@if(count((array) $result['opportunities']['get_leads'])>0) @else @endif
#{{ trans('ID') }} {{ trans('Customer Name') }} {{ trans('Telephone') }} {{ trans('Status') }} {{ trans('Assigned to') }} {{ trans('Date') }}
{{ $result['opportunities']['get_leads']->id }} {{ $result['opportunities']['get_leads']['customers']->customers_firstname }} {{ $result['opportunities']['get_leads']['customers']->customers_lastname }} {{ $result['opportunities']['get_leads']['customers']->customers_telephone}} {{ $result['opportunities']['get_leads']->status}} {{ $result['opportunities']['get_leads']['assigned_to_user']->first_name}} {{ $result['opportunities']['get_leads']['assigned_to_user']->last_name}} {{ date('d-m-Y H:i:s', strtotime($result['opportunities']['get_leads']->created_at))}}
No record found
@endif @if(in_array("View", $Accounts) && count((array) $result['opportunities']['get_accounts'])>0)

{{ trans('Accounts') }}

@if(count((array) $result['opportunities']['get_accounts'])>0) @else @endif
{{ trans('Accounts Number') }} {{ trans('Customer Name') }} {{ trans('Phone') }} {{ trans('Status') }} {{ trans('Assigned to') }} {{ trans('Created Date') }}
#{{ $result['opportunities']['get_accounts']->name }} {{ $result['opportunities']['get_accounts']['customers']->customers_firstname }} {{ $result['opportunities']['get_accounts']['customers']->customers_lastname }} {{ $result['opportunities']['get_accounts']['customers']->customers_telephone}} {{ $result['opportunities']['get_accounts']['account_status']->name}} {{ $result['opportunities']['get_accounts']['assigned_to_user']->first_name}} {{ $result['opportunities']['get_accounts']['assigned_to_user']->last_name}} {{ date('d-m-Y H:i:s', strtotime($result['opportunities']['get_accounts']->created_at))}}
No record found
@endif