{{-- -------------------- Saved Messages -------------------- --}} @if($get == 'saved')
|
{{-- center side --}}
{{__('Saved Messages')}} {{__('You')}} {{__('Save messages secretly')}} |
@if($user->active_status)
@endif
|
{{-- center side --}}
{{ 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."" : '' !!} |
|
{{-- center side --}}
{{ strlen($user->name) > 12 ? trim(substr($user->name,0,12)).'..' : $user->name }} |