@php use App\Eloquents\Attachment; @endphp
{{ $mail->mailOwner()->username }}
{{ $mail->created_at->format('H:i:s a') }} ({{ $mail->created_at->diffForHumans() }})
{{--
--}}

{{ $mail->subject }}

{!! $mail->content !!}
@if($mail->attachment_ids)
@foreach($mail->attachment_ids as $attachmentIds) @php $attachment = Attachment::find($attachmentIds); @endphp uri") }}" target="_blank">{{ asset("storage/$attachment->uri") }} @endforeach
@endif
@foreach($mail->replies as $reply)
{{ $reply->mailOwner()->id == loggedId() ? _t('mail.Me') :$reply->mailOwner()->member_id }}
{{ $reply->created_at->format('H:i:s a') }} ({{ $reply->created_at->diffForHumans() }})
{{--
--}}

{{ $reply->subject }}

{!! $reply->content !!}
@endforeach
@php $allMessages = collect([$mail])->merge($mail->replies)->sortBy('created_at'); $lastMessage = $allMessages->last(); $lastSender = optional($lastMessage->transactions()->withTrashed()->where('role', 'sender')->latest()->first())->user; @endphp @if($lastSender && $lastSender->id !== loggedId()) {{ _t('mail.Reply') }} @endif {{-- --}} {{-- {{ _t('mail.Forward') }}--}} {{-- --}}

{{ $replyTo->email }}

{{-- --}} {{-- --}} {{-- --}} {{--
--}} {{-- @foreach($mail->replies as $each)--}} {{-- --}} {{-- @endforeach--}} {{--
--}} {{--
--}}
{{ _t('mail.To') }}
{{-- --}}
{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}