@if (auth()->user()->user_type == 'member') @if ($notifications->count() > 0) @foreach ($notifications as $key => $notification) @php $check = 'done'; $notify_data = json_decode($notification->data); $user_data = \App\Models\User::where('id', $notify_data->notify_by)->first(); @endphp @if ($notify_data->type == 'express_interest') @php $interest_data = App\Models\ExpressInterest::where('id', $notify_data->info_id)->first(); if (empty($interest_data)) { $check = 'not_done'; } @endphp @endif @if ($check == 'done' && !empty($user_data))
{{ $user_data->first_name . ' ' . $user_data->last_name }}
{{ $notify_data->message }}