@php 
 $clientMemos = $performer->pro->clientMemosAsDna();
@endphp 
<div id="mcp-phone-calls-memos">
@if(!$clientMemos || !count($clientMemos))
<div class="px-2 py-3">No memos</div>
@else
<table class="table table-sm m-0">
	<tbody>
		@foreach($clientMemos as $memo)
		<tr>
			<td class="px-1">
				<a href="{{route('patients.view.dashboard', $memo->client_uid)}}">
					{{$memo->name_first}} {{$memo->name_last}}
				</a>
				<a class="text-sm text-nowrap d-block"
				   href="/memos-thread/{{$memo->client_uid}}"
				   native target="_blank"
				   open-in-stag-popup
				   popup-style="tall"
				   title="Memos for {{$memo->name_first}} {{$memo->name_last}}">
					{{friendlier_date_time($memo->created_at)}}
				</a>
			</td>
			<td class="px-1 w-75 text-left">
				{{$memo->content}}
			</td>
		
		</tr>
		@endforeach
	</tbody>
</table>
@if(count($clientMemos) > 10)
	<div class="p-2 border-top bg-light text-center">
		Showing 1 to 10 of {{count($clientMemos)}} memos
	</div>
@endif
@endif
</div>
