• @php if (!isset($notification->data['discussion_id'])) { $discussionReply = \App\DiscussionReply::with('discussion')->find($notification->data['id']); $projectId = $discussionReply->discussion->project_id; $discussionId = $discussionReply->discussion_id; } else { $projectId = $notification->data['project_id']; $discussionId = $notification->data['discussion_id']; } $route = route('admin.projects.discussionReplies', [$projectId, $discussionId]) @endphp
    {{ ucwords($notification->data['user']) . ' '. __('email.discussionReply.subject') . $notification->data['title'] }} {{ ucfirst($notification->data['title']) }} @if($notification->created_at){{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $notification->created_at)->diffForHumans() }}@endif