@extends('layouts.customer')
@section('title', 'Replies - ' . $campaign->name)
@section('page-title', 'Replies')
@section('content')
Replies
{{ $campaign->name }}
← Back to Campaign
| Received |
From |
Recipient |
Subject |
Action |
@forelse($replies as $reply)
@php
$fromLabel = trim((string) ($reply->from_name ?? ''));
$fromEmail = trim((string) ($reply->from_email ?? ''));
$from = $fromLabel !== '' && $fromEmail !== '' ? ($fromLabel . ' <' . $fromEmail . '>') : ($fromEmail !== '' ? $fromEmail : ($fromLabel !== '' ? $fromLabel : '-'));
$recipientEmail = $reply->recipient?->email ?? '-';
$received = $reply->received_at ? $reply->received_at->format('M d, Y H:i') : ($reply->created_at?->format('M d, Y H:i') ?? '-');
$bodyText = (string) ($reply->body_text ?? '');
@endphp
| {{ $received }} |
{{ $from }} |
{{ $recipientEmail }} |
{{ \Illuminate\Support\Str::limit((string) ($reply->subject ?? ''), 80) }} |
|
@empty
| No replies found. |
@endforelse
@if($replies->hasPages())
{{ $replies->links() }}
@endif
@endsection