@if($pinnedChats->count() > 0)

{{ __('locale.labels.pin') }}

    @foreach($pinnedChats 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

{{ __('locale.labels.chats') }}

@endif