profile_picture_base64; $initials = !$thumbnail ? substr($patient->name_first, 0, 1) . substr($patient->name_last, 0, 1) : ''; $online = $patient->is_online ? 'online' : ''; $patientName = implode(', ', array_filter([$patient->name_last, $patient->name_first])); $confirmedCell = empty($patient->cell_number) ? '-' : $patient->cell_number; $confirmedEmail = empty($patient->email_address) ? '-' : $patient->email_address; $location = implode(', ', array_filter([$patient->home_address_city, $patient->home_address_state])); $location = empty($location) ? '-' : $location; $mcpName = $patient->mcp ? implode(', ', array_filter([$patient->mcp->name_last, $patient->mcp->name_first])) : null; $cmName = $patient->cm ? implode(', ', array_filter([$patient->cm->name_last, $patient->cm->name_first])) : null; $memberSince = date_diff(date_create($patient->created_at), date_create('now'))->days; if ($memberSince > 30) $memberSince = date('F, Y', strtotime($patient->created_at)); else if ($memberSince > 1) $memberSince .= ' days ago'; else if ($memberSince === 1) $memberSince = 'yesterday'; else if ($memberSince === 0) $memberSince = 'today'; ?>
@if($patient->is_duplicate)
This chart is a duplicate of  {{ $patient->duplicateOf->displayName() }}
@endif

{{$patientName}}

#{{$patient->chart_number}}
Joined
Created by {{$patient->creator ? $patient->creator->displayName() : '-'}}
Created on {{friendly_date_time($patient->created_at)}}
{{$patient->client_engagement_status_category ? ucwords(strtolower(str_replace('_', ' ', $patient->client_engagement_status_category == 'DUMMY' ? 'Test Chart' : $patient->client_engagement_status_category))) : '-'}}
{{$patient->sticky_note ?? '-' }}
    @if($patient->cell_number)
  • {{$patient->shadowOfPro->cell_number}}
  • @endif
  • {{$patient->shadowOfPro->email_address}}
  • Send SMS
  • @include('app.patient.send_email')
@if($pro->pro_type === 'ADMIN')
Tags ({{count($patient->clientTags)}}): @foreach($patient->clientTags as $tag)
{{$tag->tag}}

Cancel this tag?

@endforeach
+ Add
@endif {{--
@if($patient->mcp_pro_id !== $pro->id && $patient->active_mcp_request_id)
Claim as MCP

Claim this patient?

@endif
--}}
{{--

@yield('section-title')

--}}
@yield('inner-content')