{{-- App\Mail\HcpDocumentComplianceMail — events hcp.professions-paused / hcp.documents-reminder / hcp.document-expiring / hcp.documents-requested. Vars: $branding, $name, $kind (paused|reminder|expiring|requested), $professions, $documents, $expiryDate --}} @extends('emails.layouts.tenant') @php $expiry = $expiryDate ? \Carbon\Carbon::parse($expiryDate)->format('l j F Y') : null; $professionList = implode(', ', $professions); @endphp @section('title', match ($kind) { 'paused' => 'Profession paused', 'reminder' => 'Documents still need attention', 'requested' => 'Documents needed', default => 'Document expiring soon', }) @section('preheader') @if ($kind === 'paused') {{ $professionList }} is paused until your documents are updated. @elseif ($kind === 'reminder') Reminder: {{ $professionList }} is still paused — upload current documents to pick up shifts again. @elseif ($kind === 'requested') {{ $branding->name }} needs {{ count($documents) === 1 ? 'a document' : 'some documents' }} from you. @else Your {{ implode(', ', $documents) }} expires on {{ $expiry }} — renew it to keep picking up shifts. @endif @endsection @section('content') Hi {{ strtok($name, ' ') ?: 'there' }}, @if ($kind === 'paused' || $kind === 'reminder') @if ($kind === 'paused') Your {{ $professionList }} {{ count($professions) === 1 ? 'profession has' : 'professions have' }} been paused with {{ $branding->name }}, because these required documents need attention: @else This is a reminder that your {{ $professionList }} {{ count($professions) === 1 ? 'profession is' : 'professions are' }} still paused with {{ $branding->name }}. These required documents still need attention: @endif @foreach ($documents as $document) {{ $document }} @endforeach While paused you can't pick up or be booked for shifts in {{ count($professions) === 1 ? 'this profession' : 'these professions' }}. Open the iShapps app and upload current copies under Documents — it's switched back on automatically once they're approved. @elseif ($kind === 'requested') {{ $branding->name }} needs these documents from you: @foreach ($documents as $document) {{ $document }} @endforeach Open the iShapps app and upload them under Documents — they're listed under Missing. @else {{ count($documents) === 1 ? 'This document expires' : 'These documents expire' }} in 14 days, on {{ $expiry }}: @foreach ($documents as $document) {{ $document }} @endforeach Please upload a renewed copy in the iShapps app under Documents before then. If it expires, the professions that need it are paused and you won't be able to pick up their shifts. @endif Questions? Reply to this email to reach {{ $branding->name }}. Kind regards,
The {{ $branding->name }} team
@endsection