%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/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;
        }
    </style>
</head>
<body>
<table style="width:100%">
    <tr>
        <td class="col-6">
            <p>Protocol: {{$submission->protocol->name}}</p>
            <p>Patient: {{$submission->protocol->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">
            <table style="width: 100%" class="show-border">
                <tr>
                    <td class="show-border text-center" style="background-color: #4FAC4F">
                        <b>General Inclusion Criteria</b>
                    </td>
                    <td class="show-border text-center" style="background-color: #FFC300; width: 50px">
                        <b>Y/N</b>
                    </td>
                </tr>
                @php
                    $index = 0;
                @endphp
                @foreach($submission->answers as $answer)
                    @if($answer->question->type == 'inclusion')
                        @php
                            $index++;
                        @endphp
                        <tr>
                            <td class="show-border">
                                <span>{{$index}}. {{$answer->question->question}}</span>
                            </td>
                            <td class="show-border">
                                <span>{{$answer->shortAnswer()}}</span>
                            </td>
                        </tr>
                    @endif
                @endforeach
                <tr>
                    <td class="col-10 show-border text-center" colspan="2" style="background-color: #FF0000">
                        <b>General Exclusion Criteria</b>
                    </td>
                </tr>
                @php
                    $index = 0;
                @endphp
                @foreach($submission->answers as $answer)
                    @if($answer->question->type == 'exclusion')
                        @php
                            $index++;
                        @endphp
                        <tr>
                            <td class="show-border">
                                <span>{{$index}}. {{$answer->question->question}}</span>
                            </td>
                            <td class="show-border">
                                <span>{{$answer->shortAnswer()}}</span>
                            </td>
                        </tr>
                    @endif
                @endforeach
            </table>
        </td>
    </tr>
    <tr>
        <td class="col-6">
            <p>PI / Sub I : {{$submission->doctor->fullName()}}</p>
        </td>
        <td class="col-6">
            <p>Date: {{$submission->created_at}}</p>
        </td>
    </tr>
</table>
</body>
</html>

Zerion Mini Shell 1.0