<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>DialMD</title>
</head>
<body>
<div style="margin: 0; padding: 1rem; font-family: sans-serif">
    <header style="padding: 0; border: 0; margin: 0 0 1rem;">
        <div style="text-align: center">
        <img src="data:image/png;base64, [encoded data, 11172 characters]"
             style="height: 60px;" alt="DialMD">
        </div>
        <div style="margin-top: 1.5rem; font-size: 19px">{{ $ticket->orderingPro->name_prefix }} {{ $ticket->orderingPro->displayName() }} <span style="font-size: 13px; opacity: 0.75">{{ $ticket->orderingPro->name_suffix }}</span></div>
        <div style="display: block;">
            <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
                <tr>
                    <td style="width: 70%">
                        <div style="font-size: 14px; margin-top: 0.6rem; line-height: 1.4; opacity: 0.6">4445 Willard Ave Suite 600<br>Chevy Chase MD 20815</div>
                    </td>
                    <td style="">
                        <div style="text-align: right; font-size: 14px; margin-top: 0.6rem; line-height: 1.4; opacity: 0.6">PH: 202-935-1033<br>FAX: 202-935-1033</div>
                    </td>
                </tr>
            </table>
        </div>
    </header>
    <hr style="border-top: 2px solid #5ca4e8; border-bottom: 0; margin: 1rem 0;">

    <?php
    /** @var Ticket $ticket */
    use App\Models\Ticket;
    $patient = $ticket->patient;
    ?>

    @include('app.ticket.' . $ticket->category)

    <hr style="margin: 1rem 0 0.5rem; border-top-width: 0; border-bottom-width: 1px; border-color: #bbb">
    <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
        <tr>
            <td style="vertical-align: middle; white-space: nowrap; width: 100px;">
                Authorizing Signature:
            </td>
            <td style="vertical-align: middle;">
                @if($ticket->orderingPro->signature_base_64)
                    <img src="{{$ticket->orderingPro->signature_base_64}}" style="max-width: 180px;">
                @endif
            </td>
        </tr>
    </table>
</div>
</body>
</html>

