@extends('layouts.app',['menu_type'=>'crm']) @php Fun::lang(); @endphp @section('style') @endsection @section('main')
@if(@$data->status==2) {{ __('auth.Discard') }} @else @if(!empty(@$data)&&@$data->close_status==2) @if(canOrSeller('Convert Lead To Opportunity')) @endif @elseif(!empty(@$data)) @if(canOrSeller('Edit Lead')) @endif @if(canOrSeller('Lost Lead')) @endif @if(canOrSeller('Lead Activity')) @endif @else @endif @if(canOrSeller('Edit Lead')) {{ __("auth.edit") }} @endif @if($data->close_status==2) {{ __('auth.Discard') }} @else {{ __('auth.Discard') }} @endif @endif
@if(@$data->close_status==2)
LOST
@endif
{{ __('auth.product_pricing') }} :
{{ __('auth.probability') }} : %
{{ __('auth.sale_person') }} :
{{ __('auth.expected_closing') }} :
@php $priority = ""; if(intval($data->priority)==0) $priority = ''; else if($data->priority==1) $priority = "Low"; else if($data->priority==2) $priority = "Meduim"; else if($data->priority==3) $priority = "Hight"; else if($data->priority==4) $priority = "Very Hight"; else{ $priority = ""; } @endphp @if(!empty(@$priority)) {{ __('auth.priority') }} : {!! $priority !!} @else {{ __('auth.priority') }} : @endif
@php $pipeline_tags = App\Models\Crm\PipelineTagsModel::where("pipeline_id",$data->id)->get(); $tags_name = ''; if(!empty($pipeline_tags)&&count($pipeline_tags)>0){ foreach($pipeline_tags as $tag){ $tag_data = App\Models\Crm\TagsModel::find($tag->tags_id); $tags_name .="".$tag_data->name." "; } } @endphp @if(!empty(@$tags_name)) {{ __('auth.tags') }} : {!! $tags_name !!} @else {{ __('auth.tags') }} : @endif
{{__("auth.contact_by")}} :
{{__("auth.source")}} :
{{ __('auth.known_product_by') }} :
{{ __('auth.Date') }} :
@if($data->close_status==2)
{{ __('auth.lost_reason') }} :
@endif
{{-- Internal Note --}}
{{ @$data->internal_notes }}
{{-- Customer Info --}}
{{ __('auth.name') }} (kh) :
{{ __('auth.name') }} (en) :
{{ __('auth.type') }} :
{{ __('auth.phone') }} :
{{ __('auth.email') }} :
{{ __('auth.website') }} :
{{__("auth.house_no")}} :
{{__("auth.street_no")}} :
{{__("auth.province")}} :
{{__("auth.district")}} :
{{__("auth.commune")}} :
{{__("auth.village")}} :
{{-- contact of customer --}}
{{-- main contact person --}}

{{ __("auth.contact_person_info") }}


{{ __('auth.contact_person_name') }} (kh) :
{{ __('auth.contact_person_name') }} (en) :
{{ __('auth.gender') }} :
{{ __('auth.job_position') }} :
{{ __('auth.phone') }} :
{{ __('auth.email') }} :
 
{{-- Customer social account info --}}

{{ __('auth.customer_social_account_info') }}


@php $contact_account_datas = @$data->getCustomer->getContactAccounts; @endphp @if(!empty($contact_account_datas)&&count($contact_account_datas)>0) @foreach ($contact_account_datas as $key_acc=>$contact_account) @endforeach @endif
{{ __('auth.no') }} {{ __('auth.name') }} {{ __('auth.account_name') }} {{ __('auth.link') }}
{{ $key_acc+1 }}
{{ @$contact_account->name }}
{{ @$contact_account->account_name }}



@endsection @section('script') @include("crm.leads.schedule-activity-js") @include("crm.leads.covert-js") @endsection