@extends('user::layouts.masterlist') @section('content')

Conversations

@include('layouts.flash.alert')
{{ Form::open(['route' => ['conversations.send'], 'method' => 'post', 'class' => 'conversation-form']) }}
@if(isset($conversations)) @if($conversations->isNotEmpty())
@foreach($conversations as $conversation)
{{ $conversation->sender->full_name }} {{ $conversation->created_at->diffForHumans() }}
@if(\Storage::disk('public')->has($conversation->sender->avatar)) @else @endif
{{ $conversation->message }}
@endforeach
@else

Type somthing to start conversation.

@endif @else

Please select any user to start conversation.

@endif
    @include('chatmanager::contacts')
@isset($conversations) @endisset {{ Form::close() }}
@stop @push('scripts') @endpush