{{-- -------------------- 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->created_at->diffForHumans() }}

{{-- Last Message user indicator --}} {!! $lastMessage->from_id == Auth::user()->id ? 'You :' : '' !!} {{-- Last message body --}} @if($lastMessage->attachment == null) {{ strlen($lastMessage->body) > 30 ? trim(substr($lastMessage->body, 0, 30)).'..' : $lastMessage->body }} @else Attachment @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