@forelse($chatDetails as $chatDetail)
  • @if(is_null($chatDetail->fromUser->image)) user-img @else user-img @endif
    @if(($chatDetail->from == $user->id))
    @endif

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

    {{ $chatDetail->message }}

    @foreach($chatDetail->files as $file) @endforeach {{ $chatDetail->created_at->timezone($global->timezone)->format($global->date_format.' '. $global->time_format) }}
  • @empty
  • @lang('messages.noMessage')
  • @endforelse