@extends('hms.layout') @section('title','CRM Contact') @section('content')

{{ $c->name }}

Back to CRM

Contact details

@csrf @method('PATCH') @if($c->patient_id)Open patient record@endif

Interaction history

@forelse($interactions as $i)
{{ $i->subject }}
{{ $i->channel }} · {{ $i->direction }} · {{ \Illuminate\Support\Carbon::parse($i->occurred_at)->format('d M Y H:i') }}

{{ $i->summary }}

@empty

No interactions recorded.

@endforelse
@csrf

Log interaction

Follow-ups

@forelse($tasks as $task)
{{ $task->title }} · {{ $task->status }}
{{ $task->due_at ?: 'No deadline' }}
@empty

No follow-up tasks.

@endforelse
@csrf

Communication consent

Most recent recorded preference for each purpose and channel. No marketing communication should be sent without an applicable valid opt-in.

@forelse($consents as $consent)
{{ str_replace('_',' ',$consent->purpose) }} · {{ $consent->channel }}: {{ $consent->granted?'Opted in':'Opted out' }}
@empty

No consent preferences recorded.

@endforelse
@csrf
@endsection