<html>
    <head>

        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <title>GT4</title>



    </head>
    <script src="../views/default/assets/js/jquery.js"></script>


    {literal}

    <script language="javascript" type="text/javascript">
        /*$(document).ready(function() {
         //window.print();

         // printDiv();
         });*/
        function printDiv() {

            var divId = document.getElementById('printdiv');
            window.print();
            setTimeout(window.close, 0);

            // window.close();
        }
    </script>
    <style>

        .bg-light{
            color: #000 !important;
            font-size: 30px;
            font-weight: 600;

        }
    </style>

    {/literal}
    <body onLoad="printDiv()">
        <div align="center" id="printdiv" class='bg-light'>

            <div class="my-3 p-3 bg-white rounded shadow-sm">
                <div class="media text-muted pt-3">
                    <h1 class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray" style="text-align: center;">
                        {$clients->id}
                    </h1>
                </div>

                <div class="media text-muted pt-3">
                    <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                        المتدرب  :  {$students->studentname}
                    </p>
                </div>
                <div class="media text-muted pt-3">
                    <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                        التليفون  :  {$students->studentphone}
                    </p>
                </div>
                <div class="media text-muted pt-3">
                    <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                        تخصص المتدرب  :  {$studentsubjects->subjectname}

                    </p>
                </div>
                <div class="media text-muted pt-3">
                    <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                        المجموعه  :  {$studentsubjectgroups->subjectgroupname}
                    </p>
                </div>
                <!--{if $clients->clientphone}-->
                <!--<div class="media text-muted pt-3">-->
                <!--  <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">-->
                <!--    التليفون   : {$clients->clientphone}-->
                <!--  </p>-->
                <!--</div>-->
                <!--{/if}-->
                {if $studentspaydata->studentspaymentsystemid}
                <div class="media text-muted pt-3">
                    <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                        اسم النظام   : {$studentspaymentsystems->paymentname}
                    </p>
                </div>
                {/if}
                <div class="media text-muted pt-3">
                    <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                        تاريخ البدايه   : {$studentspaydata->paystartdate}
                    </p>
                </div>
                <div class="media text-muted pt-3">
                    <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                        تاريخ الانتهاء   : {$studentspaydata->payenddate}
                    </p>
                </div>
                <div class="media text-muted pt-3">
                    <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                        السعر    : {$studentspaydata->payprice}
                    </p>
                </div>
                <!--  <div class="media text-muted pt-3">
                  <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                   نوع    : {$studentspaydata->paytype}
                  </p>
                </div> -->



            </div>
        </div>
    </body>
</html>