@if($notifications->count() > 0) @foreach ($notifications as $key => $notification) @php $check = 'done'; $notify_data = json_decode($notification->data); $user_data = \App\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))
  • @if(!empty(uploaded_asset($user_data->photo))) @else @endif

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

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

  • @endif