@foreach($chat_box as $chat)
  • Avatar
    {{ $chat->to }}
    @if(!empty($chat->contact) && !empty($chat->contact->getFullName()))

    {{ str_limit($chat->contact->getFullName(), 15) }}

    @endif

    {{ $chat->from }}

    @if(! empty($chat->chatBoxMessages) && ! empty($chat->chatBoxMessages->last()->message))

    {{ str_limit($chat->chatBoxMessages->last()->message, 18) }}

    @endif
    {{ \App\Library\Tool::customerDateTime($chat->updated_at) }} @if($chat->notification) {{ $chat->notification }} @else @endif
  • @endforeach