@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))
  • @php $avatar_image = $user_data->member->gender == 1 ? 'assets/img/avatar-place.png' : 'assets/img/female-avatar-place.png'; $profile_picture_show = show_profile_picture($user_data); @endphp

    {{ $user_data->first_name . ' ' . $user_data->last_name }}

    {{ $notify_data->message }}
    @if ($notification->read_at == null) @endif
  • @endif @endforeach @else
  • {{ translate('No Notifications') }}

  • @endif @endif