ok

Mini Shell

Direktori : /home2/selectio/www/fms-worksuite/resources/views/notifications/all/
Upload File :
Current File : /home2/selectio/www/fms-worksuite/resources/views/notifications/all/new_discussion_reply.blade.php

@php
if (!isset($notification->data['discussion_id'])) {
    $discussionReply = \App\Models\DiscussionReply::with('discussion')->find($notification->data['id']);
    $projectId = $discussionReply->discussion->project_id;
    $notificationUser = \App\Models\User::find($discussionReply->user_id);
} else {
    $discussion = \App\Models\Discussion::find($notification->data['discussion_id']);
    $projectId = $notification->data['project_id'];
    $notificationUser = \App\Models\User::find($discussion->user_id);
}
$route = route('projects.show', $projectId) . '?tab=discussion';
@endphp

@if ($notificationUser)
    <x-cards.notification :notification="$notification"  :link="$route" :image="$notificationUser->image_url"
        :title="mb_ucwords($notification->data['user']) . ' ' . __('email.discussionReply.subject')"
        :text="ucfirst($notification->data['title'])" :time="$notification->created_at" />
@endif

Zerion Mini Shell 1.0