@extends('layouts.app') @section('content') @if (isset($error))
Error!
{{ $error }}
Write a New Message
@else @php $auth_id = Auth::user()->id; $expiryTimestamp = strtotime($conversation->expiry); $currentTimestamp = time(); $diffInSeconds = $expiryTimestamp - $currentTimestamp; $diffInDays = $diffInSeconds / (60 * 60 * 24); $alertExpiryMessage =""; if ($diffInDays <= 1) { $alertExpiryMessage = "This chat will be deleted within 1 days."; } $expirydate = date('d-m-Y H:i:s', $expiryTimestamp); @endphp
Attention!
• If you need to save the message contents somewhere, please make sure you use appropriate encryption.
• The contents of this page will disappear in {{ $expirydate }}.
@php $lastmessageid = ''; @endphp @foreach ($data as $replydata) @php $date = date('d-m-Y H:i', strtotime($replydata->created_at)); $lastmessageid = $replydata->id; @endphp
{{ $replydata->email }} - {{ $date }}
{{ $replydata->message }}
@if ($replydata->user_id == $auth_id) @endif
@endforeach
Reply
@if($conversation->no_of_extends < 2)
@endif
@endif @endsection @section('modal') @endsection @if (isset($conversation)) @section('script') @endsection @endif