@extends('Common::admin.layout.index') @section('title', $title) @section('page') {{ __("Messages") }} {{ __("All your messages") }} {{ __("Show contacts") }} @if($chats->count() > 0) @foreach($chats as $chat) @if($chat->from_id == auth()->id() ) {{ $chat->to?->name }} @else {{ $chat->from?->name }} @endif {{ $chat->updated_at ? $chat->updated_at?->diffForHumans() : $chat->created_at?->diffForHumans() }} {{ Str::limit($chat->message, 50) }} @endforeach @else {{ __("No messages yet") }} @endif @include("Chats::partials.chat_delete") @stop @push('js') @endpush
{{ __("All your messages") }}
{{ Str::limit($chat->message, 50) }}