@extends('admin.layout') @section('content')

{{ trans('View notes') }}

@php $getUserRoleData = userRoleData(); $Notes = explode(",",$getUserRoleData->Notes); @endphp
@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",$Notes ))
@if($result['notesData']->thread_type == "Accounts") @endif @if(!empty($result['notesData']->contact))
Contact #{{$result['notesData']->contact}}
@endif @if(!empty($result['notesData']->name))
Name {{$result['notesData']->name}}
@endif @if(count((array) $result['notesData'])>0 && $result['notesData']->thread_type == "Leads" && count((array) $result['notesData']['accounts'])>0) @endif

Subject {{$result['notesData']->subject}}
@if(count((array) $result['notesData']['notes_comments'])>0)


Notes
@foreach ($result['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($string)!!}
@endif @endforeach @endif @if(count((array) $result['notesData']['get_notes_images'])>0)
Files
@endif
@else

Please contact with SuperAdmin

@endif
@endsection