@include('landlord_layouts.header')
@include('landlord_layouts.navbar')
@include('landlord_layouts.topbar')
{{$correspondence[0]->subject}}
@php $lastIndex = count($correspondence) - 1; @endphp @if($correspondence[$lastIndex]->status)
Status
@endif @if($correspondence[$lastIndex]->matter)
Matter
@endif @if($correspondence[$lastIndex]->priority)
Priority!
@endif
Back @if($correspondence[$lastIndex]->status == 'Open') @foreach($tenants as $tenant) @if($tenant->user_id == $correspondence[$lastIndex]->receiver_id || $tenant->user_id == $correspondence[$lastIndex]->sender_id) @if($tenant->rental_status != 'Expired') Reply @endif @endif @endforeach @endif Delete
@foreach($correspondence as $corr)
From: {{$corr->sender_first_name.' '.$corr->sender_last_name}}
To : {{$corr->receiver_first_name.' '.$corr->receiver_last_name}}
Subject: {{$corr->subject}}
{{ date('D, m/d/Y g:i A ',strtotime($corr->created_at))}}
{!! nl2br(e( $corr->message)) !!}
@if(count($files)>0) @foreach($files as $file) @if($corr->id == $file->correspondence_id) @endif @endforeach @endif
@endforeach
@include('landlord_layouts.footer')
@include('landlord_layouts.script')