{{-- -------------------- Saved Messages -------------------- --}} @if($get == 'saved') {{-- Avatar side --}} {{-- center side --}}

{{__('Saved Messages')}} {{__('You')}}

{{__('Save messages secretly')}}
@endif {{-- -------------------- All users/group list -------------------- --}} @if($get == 'users') {{-- Avatar side --}} {{-- center side --}}
@if($user->active_status) @endif

{{ strlen($user->name) > 12 ? trim(substr($user->name,0,12)).'..' : $user->name }} {{ $lastMessage ? $lastMessage->created_at->diffForHumans() : '' }}

{{-- Last Message user indicator --}} {!! ($lastMessage and $lastMessage->from_id == Auth::user()->id ) ? ''.__('You').' :' : '' !!} {{-- Last message body --}} @if($lastMessage) @if($lastMessage->attachment == null) {!! strlen($lastMessage->body) > 30 ? trim(substr($lastMessage->body, 0, 30)).'..' : $lastMessage->body !!} @else {{__('Attachment')}} @endif @endif {{-- New messages counter --}} {!! $unseenCounter > 0 ? "".$unseenCounter."" : '' !!}
@endif {{-- -------------------- Search Item -------------------- --}} @if($get == 'search_item') {{-- Avatar side --}} {{-- center side --}}

{{ strlen($user->name) > 12 ? trim(substr($user->name,0,12)).'..' : $user->name }}

@endif {{-- -------------------- Shared photos Item -------------------- --}} @if($get == 'sharedPhoto')
@endif