@forelse($chatDetails as $chatDetail)
  • user
    @if(($chatDetail->from == $user->id))
    @endif

    @if($chatDetail->from == $user->id) you @else {{$chatDetail->fromUser->name}} @endif

    {{ $chatDetail->message }}

    {{ $chatDetail->created_at->timezone($global->timezone)->format('d M, h:i A') }}
  • @empty
  • @lang('messages.noMessage')
  • @endforelse