• @php if (!isset($notification->data['project'])) { $project = \App\ProjectMember::with('project')->find($notification->data['id']); $projectId = $project->project_id; $project = $project->project ? $project->project->project_name : ''; } else { $projectId = $notification->data['project_id']; $project = $notification->data['project']; } $route = route('member.projects.show', $projectId); @endphp
    @lang('email.newProjectMember.subject') {{ ucwords($project) }} {{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $notification->created_at)->diffForHumans() }}