@extends('layouts.front_main') @section('title', $page_name) @if(isset($page) && $page) @include('front.partials._meta_properties_page') @endif @section('content')
@include('front.partials._breadcrumb')
From / To
Message
Updated
@if($messages) @foreach ($messages as $message) @if($message->message_from != Auth::user()->id)
Updated{{Carbon\Carbon::parse($message->latest()->created_at)->format('M d H:i')}}
{{-- View conversation --}} @elseif($message->message_to != Auth::user()->id)
Updated{{Carbon\Carbon::parse($message->latest()->created_at)->format('M d H:i')}}
@endif @endforeach @endif
From / To
Message
Updated
@if($messages) @foreach ($messages as $message) @if($message->first_unread()) @if($message->message_from != Auth::user()->id)
Updated{{Carbon\Carbon::parse($message->latest()->created_at)->format('M d H:i')}}
{{-- View conversation --}} @elseif($message->message_to != Auth::user()->id)
Updated{{Carbon\Carbon::parse($message->latest()->created_at)->format('M d H:i')}}
@endif @endif @endforeach @endif
From / To
Message
Updated
@if($messages_arhived) @foreach ($messages_arhived as $message) @if($message->message_from != Auth::user()->id)
Updated{{Carbon\Carbon::parse($message->latest()->created_at)->format('M d H:i')}}
{{-- View conversation --}} @elseif($message->message_to != Auth::user()->id)
Updated{{Carbon\Carbon::parse($message->latest()->created_at)->format('M d H:i')}}
@endif @endforeach @endif
@endsection @push('scripts') @endpush