{{--
The WMA-MIS email shell.
One layout, every automated message this module sends. Sections a message
fills in:
@section('preheader') the line inboxes show beside the subject
@section('title') the heading at the top of the card
@section('badge') the status pill, or nothing
@section('body') the message itself
── Why this is written the way it is ──────────────────────────────────────
This is NOT the React design system. It cannot be: an email is rendered by
Outlook's Word engine, by Gmail's HTML sanitiser, by Apple Mail and by a
dozen phone clients, none of which support flexbox, grid, external
stylesheets or most of what the portal is built on. What carries across is
the *look* - the agency masthead, the orange accent, the type scale, the
card-on-grey - rebuilt in the only things email agrees on: tables, inline
styles, and a media query the strict clients simply ignore.
So: tables for layout, styles inline on the elements that must not lose
them, and one
{{-- The preview line, hidden in the body but read by the inbox list. --}}
@yield('preheader')
{{-- ── Masthead ─────────────────────────────────────────── --}}
{{-- The coat of arms travels *inside* the message.
A src pointing at this server would be a
remote fetch: blocked by default in most
clients, unreachable from outside the
agency network, and a broken-image box
when either is true - which looks worse
than no emblem at all. Embedded, it is
part of the mail and always renders.
`$message` exists only when the mailer is
building a real message; a plain render of
this view for preview has none, and gets
the text masthead, which is the same
masthead minus decoration. --}}
@if (isset($message) && is_file(public_path('assets/images/emblem.jpeg')))
@endif
|
{{ $agency['country'] }}
{{ $agency['name'] }}
{{ $agency['system'] }}
|
|
|
{{-- The accent rule, as on the printed reports. --}}
| |
{{-- ── The message ──────────────────────────────────────── --}}
|
@hasSection('badge')
@yield('badge')
@endif
@yield('title')
@yield('body')
|
{{-- ── Footer ───────────────────────────────────────────── --}}
{{ $agency['name'] }}
{{ $agency['system'] }} — Practitioner Portal
{{ $agency['address'] }} · {{ $agency['tel'] }}
{{ $agency['email'] }}
·
{{ $agency['website'] }}
Please do not reply directly to this automated email.
It is sent from an unattended address.
This message and the details in it are intended for the named recipient only.
If it has reached you in error, please delete it and tell us at
{{ $agency['email'] }}.
|
|