@if ($m->type === 'note')
Internal note
@endif @if ($m->type === 'template')
Template: {{ $m->meta['template'] ?? '' }}
@endif @if ($m->type === 'media')
{{ ucfirst($m->meta['media_type'] ?? 'attachment') }}
@endif
{!! nl2br(e($m->body)) !!}
@if ($m->direction === 'out' && $m->user){{ $m->user->name }} ยท @endif {{ $m->created_at->timezone($tz)->format('d M, h:i A') }} @if ($m->direction === 'out' && $m->type !== 'note') @switch($m->status) @case('read')@break @case('delivered')@break @case('failed') {{ \Illuminate\Support\Str::limit($m->error, 80) }}@break @default @endswitch @endif