@extends('admin.admin_dashboard') @section('admin') @php $isRecipient = (int) $email->to_user_id === (int) auth()->id(); @endphp
Home Email View @if(!$isRecipient) Back to sent @else Reply @endif
From
{{ $email->sender->name ?? '—' }} <{{ $email->sender->email ?? '' }}>
To
{{ $email->recipient->name ?? '—' }} <{{ $email->recipient->email ?? '' }}>
{!! nl2br(e($email->body)) !!}
@endsection