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