|
@@ -3,12 +3,51 @@
|
|
|
@else
|
|
|
<table class="table table-sm m-0">
|
|
|
<tbody>
|
|
|
-
|
|
|
+ @foreach($incomingSmsMessagesPendingReply as $msg)
|
|
|
+ <tr>
|
|
|
+ <td class="px-1">
|
|
|
+ <a href="{{route('patients.view.sms', $msg->client_uid)}}">
|
|
|
+ {{$msg->client_name_first}} {{$msg->client_name_last}}
|
|
|
+ </a>
|
|
|
+ <a class="text-sm text-nowrap d-block"
|
|
|
+ href="/messages-thread/{{$msg->client_uid}}"
|
|
|
+ native target="_blank"
|
|
|
+ open-in-stag-popup
|
|
|
+ popup-style="tall"
|
|
|
+ title="Messages for {{$msg->client_name_first}} {{$msg->client_name_last}}">
|
|
|
+ {{friendlier_date_time($msg->created_at)}}
|
|
|
+ </a>
|
|
|
+ </td>
|
|
|
+ <td class="px-1 w-75 text-left">
|
|
|
+ {{$msg->body}}
|
|
|
+ </td>
|
|
|
+ <td class="width-70px px-2 text-right">
|
|
|
+ @if($msg->is_reply_needed == 'YES')
|
|
|
+ <div moe relative>
|
|
|
+ <a start show class="">Ack.</a>
|
|
|
+ <form url="/api/clientSms/updateIsReplyNeeded" class="mcp-theme-1" right>
|
|
|
+ <input type="hidden" name="uid" value="{{ $msg->uid }}">
|
|
|
+ <input type="hidden" name="isReplyNeeded" value="NO">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label for="" class="text-sm text-secondary mb-1">Are you sure?</label>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="d-flex align-items-center">
|
|
|
+ <button class="btn btn-sm btn-primary mr-2" submit>Send</button>
|
|
|
+ <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
</tbody>
|
|
|
</table>
|
|
|
@if(count($incomingSmsMessagesPendingReply) > 10)
|
|
|
<div class="p-2 border-top bg-light text-center">
|
|
|
- Showing 1 to 10 of {{$incomingSmsMessagesPendingReply}} unstamped memos
|
|
|
+
|
|
|
</div>
|
|
|
@endif
|
|
|
@endif
|