<!DOCTYPE html>
<html>
    <header>
        <title><?php echo e($page_title); ?></title>
        <meta http-equiv="Content-Language" content="th" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <style>
            @font-face {
                font-family: 'THSarabunNew';
                font-style: normal;
                font-weight: normal;
                src: url("<?php echo e(public_path('fonts/THSarabunNew/THSarabunNew.ttf')); ?>") format('truetype');
            }
            @font-face {
                font-family: 'THSarabunNew';
                font-style: normal;
                font-weight: bold;
                src: url("<?php echo e(public_path('fonts/THSarabunNew/THSarabunNew Bold.ttf')); ?>") format('truetype');
            }
            @font-face {
                font-family: 'THSarabunNew';
                font-style: italic;
                font-weight: normal;
                src: url("<?php echo e(public_path('fonts/THSarabunNew/THSarabunNew Italic.ttf')); ?>") format('truetype');
            }
            @font-face {
                font-family: 'THSarabunNew';
                font-style: italic;
                font-weight: bold;
                src: url("<?php echo e(public_path('fonts/THSarabunNew/THSarabunNew BoldItalic.ttf')); ?>") format('truetype');
            }
            @page  { margin: 70px; }
            body {
                font-family: "THSarabunNew";
                font-size: 18px;
                margin: 3px;
            }
            .content-width {
                width:95%;
                margin: auto;
                font-size: 24px;
                text-align: center;
            }
            table, th, td {
                border: 1px solid black;
                font-size: 18px;
                width: 100%;
                margin: auto;
                border-collapse: collapse;
            }
            tr {
                line-height: 16px;
            }
            td {
                padding-left: 10px;
            }
            thead > tr {
                background-color: #73BB88;
                padding-left: 10px;
                font-weight: bold;
                font-size: 18px;
            }

            p {
                font-size: 18px;
            }
        </style>
    </header>
    <body>
        <div class="print">
            <div class="content-width" style="margin-top: -50px;">
                <p style="font-size: 24px; font-weight:bold; margin-bottom: -20px;"><?php echo e($page_title . ' ' . $month . ' ' . $year); ?></p>
            </div>

            <div style="margin-bottom: -20px;">
                <p style="font-size: 22px; font-weight:bold;"><?php echo e($type); ?>ประจำเดือน<?php echo e($month); ?> รวม <?php if($totalData!=""): ?><span><?php echo e(number_format($totalData)); ?></span> <?php else: ?> 0 <?php endif; ?> บาท</p>
                <p style="margin-top: -25px;"> แบ่งเป็น เงินสด <?php if($totalDataCash!=""): ?><span><?php echo e(number_format($totalDataCash)); ?></span> <?php else: ?> 0 <?php endif; ?> บาท , การโอนผ่านบัญชี <?php if($totalDataTransfer!=""): ?><span><?php echo e(number_format($totalDataTransfer)); ?></span> <?php else: ?> 0 <?php endif; ?> บาท <?php if($type=='รายได้'): ?>, ชำระผ่านบัตรเครดิต <?php if($totalDataCredit!=""): ?><span><?php echo e(number_format($totalDataCredit)); ?></span> <?php else: ?> 0 <?php endif; ?> บาท <?php endif; ?></p>
            </div>
            <table style="margin-top: 10px;">
                <thead>
                    <tr <?php if($type!='รายได้'): ?> style="background-color: #E4887A;" <?php endif; ?>>
                        <td>วันที่, เวลา</td>
                        <td>รายการ</td>
                        <td>สาขา</td>
                        <td>ช่องทาง</td>
                        <td>จำนวนเงิน</td>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $indexKey => $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <?php if($type=='รายได้'): ?>
                        <td><?php echo e(($d->billDate) ? formatDateFromDB($d->billDate) : NULL); ?>, <?php echo e(($d->billTime) ? formatTimeFromDB($d->billTime).' น.' : NULL); ?></td>
                        <?php else: ?>
                        <td><?php echo e(($d->date) ? formatDateFromDB($d->date) : NULL); ?>, <?php echo e(($d->time) ? formatTimeFromDB($d->time).' น.' : NULL); ?></td>
                        <?php endif; ?>
                        <td><?php echo e(($d->title) ? $d->title : 'ค่าสมัครเรีียน'); ?></td>
                        <td><?php echo e($d->name); ?></td>
                        <td><?php echo e($d->method); ?></td>
                        <td><?php echo e(number_format($d->amount)); ?></td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </body>
</html>
<?php /**PATH C:\laragon\www\tkp-system.bright.in.th\resources\views/pdf/finance.blade.php ENDPATH**/ ?>