@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