@extends('layouts.main') @section('title') {{ __('Messages') }} @endsection @section('page-title')

@yield('title')

@endsection @section('content')
    @foreach ($user_list as $key => $value) @empty($value->receiver)
  • {{ $value->sender->name }}

    {{ $value->property->title }}
    {{-- Unread Count --}} @if($value->unread_count > 0)
    {{ $value->unread_count }}
    @endif
  • @endempty @endforeach @foreach ($user_list as $key => $value) @empty($value->sender)
  • {{ $value->receiver->name }}

    {{ $value->property->title }}
    @if($value->unread_count > 0) {{-- Unread Count --}}
    {{ $value->unread_count }}
    @endif
  • @endempty @endforeach @foreach ($otherUsers as $key => $value)
  • {{ $value['name'] }}

    {{ $value['title'] }}
  • @endforeach
@endsection @section('script') @endsection