@extends('user.layouts.header') @section('styles') @endsection @section('content') @php $sender_id = Auth::user()->id; if($sender_id == $investor_id){ $receiver_id = $inventor_id; }else{ $receiver_id = $investor_id; } @endphp
@if(!empty($chats)) @foreach($chats as $chat) @if($chat->sender_id == Auth::user()->id)
{{ $chat->msg }}
9:12 AM
@foreach($allusers as $alluser) @if($sender_id == $alluser->id) @if(!empty($alluser->profile_image)) @else @endif @else @endif @endforeach
@else
{{ $chat->msg }}
@foreach($allusers as $alluser) @if($receiver_id == $alluser->id) @if(!empty($alluser->profile_image)) @else @endif @else @endif @endforeach
9:12 AM
@endif @endforeach @endif
{{ csrf_field() }}
@endsection @section('scripts') @endsection