<div class="modal fade" id="print_sample_label_modal" style="padding-top: 40px; background: rgba(0, 0, 0, 0.54); overflow: auto; padding-left: 17px;">
    <div class="print-preview-header">
        <ul>
            <li style="display: inline-block;" class="print">
                @if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['print_result']))
                    <a href="javascript:void(0)" onclick="printJS('sample-sticker', 'html')" id="doPrinting"><i class="fa fa-print"></i>&nbsp;<b>{{__('sample.btn_print')}}</b></a>
                @endif
            </li>
        </ul>
        <span class="close-preview" data-dismiss="modal" title="Close"><i class="fa fa-times"></i></span>
    </div>
    <div class="modal-dialog" style="width: 1.90in !important;">
            <title>Result</title>
            <meta name="viewport" content="width=device-width, initial-scale=.80, maximum-scale=2, minimum-scale=.80, user-scalable=no">

            <page size="sticker" id="sample-sticker">
                <div class="label">


                    <style>

                        @media print {
                            .label{
                                width: 1.90in; height: .80in; background:#fff; outline: 1px dotted #999; text-align: center;
                            }

                        }
                        .label{
                            width: 1.90in; height: .80in; background:#fff; outline: 1px dotted #999; text-align: center;
                        }

                    </style>

                    <div style="text-align: center; padding: 0 5px;">
                        <p style="padding: 0; margin: 0; font-size:13px;">{{$sample->patient->name_en . ' '.(\App\Helpers\Helpers::getAge($sample->patient->dob, date('Y-m-d'))). ($sample->patient->gender == 1 ? ' M' : ' F')}} <br> <b style="font-size:17px !important;"> {{str_replace('S-'.$labSettings->short_name.'-', '', $sample->sample_number)}} </b></p>
                        {!! DNS1D::getBarcodeHTML(str_replace('S-'.$labSettings->short_name.'-', '', $sample->sample_number), 'C128',1.40,30) !!}
                    </div>


                </div>
            </page>
    </div>
</div>
