@extends('admin.layouts.master') @section('title', 'Chat - Admin') @section('maincontent') @include('admin.layouts.topbar',$data)
{{ __("Back") }}
{{ __('Chat with :user',['user' => $reciever->name]) }}
  • @if($reciever->user_img != '' && file_exists(public_path().'/images/user_img/'.$reciever->user_img)) profilephoto @else profilephoto @endif
    {{ $reciever->fname }} {{ $reciever->lname }}

@forelse($conversation->chat as $chat)
@if($chat->type == 'media') {{ $chat->media }} @else {{$chat->message}} @endif
{{ $chat->created_at->format('d-m-Y - h:i A') }} @if($chat->user_id == auth()->id()) @endif
@empty

{{__("Start a conversation with ")}} {{ $reciever->name }}

@endforelse
@endsection @section('script') @endsection