@if(count((array) $notes['notesData']['accounts'])>0 && !empty($notes['notesData']['accounts']->name) && $notes['notesData']->thread_type == "Accounts") @endif @if(count((array) $notes['notesData']['accounts'])>0 && !empty($notes['notesData']['accounts']['customers']->customers_telephone) && $notes['notesData']->thread_type == "Accounts") @endif @if(count((array) $notes['notesData']['accounts']['customers'])>0 && !empty($notes['notesData']['accounts']['customers']->customers_firstname) && $notes['notesData']->thread_type == "Leads") @endif @if(count((array) $notes['notesData']['accounts']['customers'])>0 && !empty($notes['notesData']['accounts']['customers']->customers_telephone) && $notes['notesData']->thread_type == "Leads") @endif @if(count((array) $notes['notesData']['accounts'])>0 && !empty($notes['notesData']['accounts']->customers_firstname) && $notes['notesData']->thread_type == "Opportunities") @endif @if(count((array) $notes['notesData']['accounts'])>0 && !empty($notes['notesData']['accounts']->customers_telephone) && $notes['notesData']->thread_type == "Opportunities") @endif @if(!empty($notes['notesData']->name)) @endif @if(!empty($notes['notesData']->contact)) @endif @if(!empty($notes['notesData']->subject)) @endif @if(!empty($notes['notesData']['managed_by']->first_name)) @endif @if(!empty($notes['notesData']->created_at)) @endif @if(count((array) $notes['notesData']['notes_comments'])>0) @endif
Account Number: {{$notes['notesData']['accounts']->name}}
Telephone: {{$notes['notesData']['accounts']['customers']->customers_telephone}}
Leads: {{$notes['notesData']['accounts']['customers']->customers_firstname}} {{$notes['notesData']['accounts']['customers']->customers_lastname}}
Telephone: {{$notes['notesData']['accounts']['customers']->customers_telephone}}
Opportunities: {{$notes['notesData']['accounts']->customers_firstname}} {{$notes['notesData']['accounts']->customers_lastname}}
Telephone: {{$notes['notesData']['accounts']->customers_telephone}}
Name: {{$notes['notesData']->name}}
Contact: {{$notes['notesData']->contact}}
Subject: {{$notes['notesData']->subject}}
Created By: {{$notes['notesData']['managed_by']->first_name}} {{$notes['notesData']['managed_by']->last_name}}
Created at: {{date('d-m-Y H:i:s', strtotime($notes['notesData']->created_at))}}
Description: @foreach ($notes['notesData']['notes_comments'] as $cmVal) @if(!empty($cmVal->description))
{{$cmVal['managed_by']->first_name}} {{$cmVal['managed_by']->last_name}} 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($cmVal->description)!!}
@endif @endforeach