ok
Direktori : /home2/selectio/www/limpiar.in.net/resources/views/frontend/partials/ |
Current File : /home2/selectio/www/limpiar.in.net/resources/views/frontend/partials/messages.blade.php |
@foreach ($conversation->messages as $key => $message) @if ($message->user_id == Auth::user()->id) <div class="block block-comment mb-3"> <div class="d-flex flex-row-reverse"> <div class="pl-3"> <div class="block-image"> @if ($message->user->avatar_original != null) <img src="{{ uploaded_asset($message->user->avatar_original) }}" class="rounded-circle"> @else <img src="{{ static_asset('assets/img/avatar-place.png') }}" class="rounded-circle"> @endif </div> </div> <div class="flex-grow-1 ml-5 pl-5"> <div class="p-3 bg-gray rounded"> {{ $message->message }} </div> <span class="comment-date alpha-7 small mt-1 d-block text-right"> {{ date('h:i:m d-m-Y', strtotime($message->created_at)) }} </span> </div> </div> </div> @else <div class="block block-comment mb-3"> <div class="d-flex"> <div class="pr-3"> <div class="block-image"> @if ($message->user->avatar_original != null) <img src="{{ uploaded_asset($message->user->avatar_original) }}" class="rounded-circle"> @else <img src="{{ static_asset('assets/img/avatar-place.png') }}" class="rounded-circle"> @endif </div> </div> <div class="flex-grow-1 mr-5 pr-5"> <div class="p-3 bg-gray rounded"> {{ $message->message }} </div> <span class="comment-date alpha-7 small mt-1 d-block"> {{ date('h:i:m d-m-Y', strtotime($message->created_at)) }} </span> </div> </div> </div> @endif @endforeach