@extends('layouts.app') @section('title', __('messaging::messages.consent.title')) @section('content')
{{ __('messaging::messages.consent.subtitle') }}
{{ __('messaging::messages.consent.rule_text') }}
{{ __('messaging::messages.consent.record_hint') }}
{{-- The same type-ahead the booking and lab-order screens use, against the Patients module's published directory. No patient id is ever typed, and this module never touches a Patient model to find one. --}}{{ __('messaging::messages.consent.recording_for') }}
{{ __('messaging::messages.consent.empty_title') }}
{{ __('messaging::messages.consent.empty_text') }}
| {{ __('appointments::messages.appointments.patient') }} | {{ __('messaging::messages.consent.channel') }} | {{ __('common.status') }} | {{ __('messaging::messages.consent.recorded') }} | {{ __('common.actions') }} |
|---|---|---|---|---|
| @if ($patient === null) {{ __('appointments::messages.appointments.unknown_patient') }} @else {{ $patient->name }} {{ $patient->mrn }} @endif | {{ $consent->channel->label() }} | {{ $allowed ? __('messaging::messages.consent.allowed') : __('messaging::messages.consent.withdrawn') }} | {{ $consent->recordedBy?->name ?? __('messaging::messages.consent.by_patient') }} @php($at = $allowed ? $consent->opted_in_at : $consent->opted_out_at) @if ($at) · {{ $at->format('d M Y') }} @endif @if ($consent->note) {{ $consent->note }} @endif | @can('messaging.consent') {{-- Only the opposite of what is on record: a button that re-asserts the current state does nothing and invites a click that means nothing. --}} @if ($patient !== null) @endif @endcan |