patient-suggest.blade.php 1.1 KB

123456789101112131415161718192021222324
  1. @if(!count($clients))
  2. <span class="d-block no-suggest-items">No matching patients!</span>
  3. @endif
  4. <?php $activeSet = false; ?>
  5. @foreach($clients as $client)
  6. <a class="d-block suggest-item patient-suggest text-nowrap {{ $activeSet ? '' : 'active' }}"
  7. href="" data-target-uid="{{$client->uid}}" {!! $client->mcp_pro_id ? '' : 'title="Unclaimed Patient"' !!}>
  8. <img src="/img/bluecircle.png" alt="Unclaimed Patient" class="mr-1 {{$client->mcp_pro_id ? 'claimed' : 'unclaimed'}}">
  9. <?php
  10. $name = $client->name_last . ', ' . $client->name_first;
  11. if($client->client_engagement_status_category == 'DUMMY') {
  12. $name .= ' [Test Record]';
  13. }
  14. if($client->client_engagement_status_category == 'DUPLICATE') {
  15. $name .= ' [Duplicate Record]';
  16. }
  17. ?>
  18. {{$name}}
  19. {!! $client->cell_number ? '<span class="text-sm text-secondary ml-0"> - ' . $client->cell_number . '</span>' : '' !!}
  20. {!! $client->dob ? '<span class="text-sm text-secondary ml-0"> - ' . $client->dob . '</span>' : '' !!}
  21. </a>
  22. <?php $activeSet = true; ?>
  23. @endforeach