@if ($lead->recordings->count() > 0)
@endif
@forelse ($lead->recordings as $recording)
{{ \Carbon\Carbon::parse($recording->start_datetime)->format('d M Y h:i A') }}
{{-- With agent {{ $recording->agentUser?->name }} during {{ $recording->direction }} call. --}} {{-- Add audio player if the URL exists --}} @if($recording->audio_file_location)
@endif
@empty @endforelse @forelse ($lead->emails as $email)
Email sent on {{ \Carbon\Carbon::parse($email->created_at)->format('d M Y h:i A') }}

{{ $email->subject }}

{!! $email->body !!}

View
@empty @endforelse @forelse($lead->leadSMS as $sms)
SMS sent on {{ \Carbon\Carbon::parse($sms->created_at)->format('d M Y h:i A') }}

From: {{ $sms->from }}

To: {{ $sms->to }}

{{ $sms->message }}

@empty @endif @forelse($lead->leadWhatsappSMS as $sms)
SMS sent on {{ \Carbon\Carbon::parse($sms->created_at)->format('d M Y h:i A') }}

From: {{ $sms->from }}

To: {{ $sms->to }}

{{ $sms->message }}

@empty @endif