• @php if (!isset($notification->data['from_name'])) { $chat = \App\UserChat::with('fromUser')->find($notification->data['id']); $fromName = ''; if(isset($chat->fromUser->name)){ $fromName = $chat->fromUser->name; } } else { $fromName = ''; if(isset($notification->data['from_name'])){ $fromName = $notification->data['from_name']; } } @endphp
    @lang('email.newChat.subject') {{ ucwords($fromName) }} {{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $notification->created_at)->diffForHumans() }}