<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Invoice</title>
    <link type="text/css" href="<?php echo e(asset('argon')); ?>/css/font_lao.css" rel="stylesheet">
    <script src="<?php echo e(asset('js')); ?>/jquery-3.6.0.min.js"></script>
    <script src="<?php echo e(asset('js')); ?>/JsBarcode.all.min.js"></script>

    <style>
    .box {
        width: 880px;
        margin-right:0px;
    }

    div {
        vertical-align: top;
    }

    body,
    table,
    tr,
    td {
        background-color: #FFFFFF;
        color: #000000;
    }

    .table2 {

        border: 1px solid #000000;
        border-collapse: collapse;
        width: 100%;
        margin-bottom: 1rem;
        color: #000000;
    }
    table{
        position: relative;
    }


    .col-md-4{
        width: 33.33%;
    }
    .mt-4,
    .my-4 {
        margin-top: 1.5rem !important;
    }

    .p-5 {
        padding: 2rem !important;
    }

    div {
        vertical-align: top;
    }

    .row {
        display: flex;
        margin-right: -15px;
        margin-left: -15px;
        flex-wrap: wrap;
    }

    .text-red {
        color: red;
    }

    .text-left {
        text-align: left !important;
    }

    .text-right {
        text-align: right !important;
    }
    .text-botton {
      
        bottom: 180px;
    }

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



    .pt-4,
    .py-4 {
        padding-top: 1rem !important;
    }

    .col-md-12 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    .b1{
        height: 140px;
        padding: 8px;
    }
    h1,h2,h3,h4,h5,h6{
        margin: 0;
    }
    .mt-2{
        margin-top:18px;
    }

 .table-fill{
  background: white;
  border: 2px solid #000;
  border-radius:3px;
  border-collapse: collapse;

}
.table-list{
    border-bottom: 1px dashed #000;
}
.tr{
    border-bottom: 1px dashed #000;
}
    </style>
</head>

<body>

    <div class="p-5">
        <div class="box">


            <div class="row">
                    <div class="col-md-12 text-center">
                         <h2>ໃບຮັບເຄື່ອງ ນຳລູກຄ້າ (ສຳລັບລູກຄ້າ)</h2>
                    </div>



                <table width="97%" class="table-fill">
                    <thead class="table-fill">
                        <th width="33%" class="table-fill">ອຸປະກອນ</th>
                        <th width="43%" class="table-fill">ລາຍການສ້ອມແປງເບື້ອງຕົ້ນ</th>
                        <th width="23%" class="table-fill">ຕິດຕາມ</th>
                    </thead>
                    <tbody class="table-fill">
                        <tr class="table-fill" >
                        <?php $__currentLoopData = $repaire; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $re): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <td valign="top" >
                            <div class="b1">
                                <h4>ປະເພດອຸປະກອນ:</h4>
                                <img src="<?php echo e(asset('images/repaire/'.$re->images)); ?>"  height="120" >
                            </div>
                            <div class="b1" >
                                <h4>ລາຍລະອຽດອຸປະກອນ:</h4>
                                <?php echo $re->detail; ?>

                            </div>
                            <div class="b1" >
                               <h4>ອາການເປ່ເພ:</h4>
                               <?php echo $re->cause_detail; ?>

                            </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </td>
                            <td class="b1 table-fill" valign="top" >
                                <table width="100%">

                                    <?php ($alltotal = 0); ?>
                                    <?php ($total = 0); ?>
                                    <?php ($num = 1); ?>
                                    <?php $__currentLoopData = $listrepaire; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr >
                                        <td class="tr"><?php echo e($num++); ?>./ <?php echo e($list->name); ?> (<?php echo e($list->count); ?> x <?php echo e(number_format($list->credit, 0, ',', '.')); ?>)</td>
                                        <td class="tr text-right" width="80" ><?php echo e(number_format($list->count*$list->credit, 0, ',', '.')); ?></td>
                                                                                                    <?php ($total += $list->count*$list->credit); ?>
                                    </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td class="tr text-right" ><b>ລວມທັງໝົດ:</b></td>
                                        <td class="tr text-right"  width="80" ><?php echo e(number_format($total, 0, ',', '.')); ?></td>
                                    </tr>

                                </table>
                                <div>
                                    ໝາຍເຫດ: ລາຄາສ້ອມແປງ ອາດມີການປ່ຽນແປງ ຫຼັງຈາກກວດເຊັກອຸປະກອນຕົວຈິງ, ຫຼັງຈາກແຈ້ງສ້ອມແປງສຳເລັດ ລູກຄ້າຕ້ອງເຂົ້າມາຮັບເຄື່ອງ ແລະຊຳລ່ະຄ່າບໍລິການ ພາຍໃນ 2 ອາທິດ.
                                </div>
                                <div class="mt-2">
                                <?php $__currentLoopData = $repaire; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $re): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <b>ລູກຄ້າ:</b> <?php echo e($re->customer_name); ?><br>
                                    <b>ທີ່ຢູ່:</b> <?php echo e($re->customer_address); ?> <br>
                                    <b>ເບີໂທ:</b> <?php echo e($re->customer_tel); ?> <br>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                            </td>
                            <td class="b1" valign="top" class="table-fill">
                                <div class="text-right">
                                    ເລກທີ່: <?php echo e($reid); ?> <br>
                                     ວັນທີ່: <?php echo e($date); ?><br>
                                     ເວລາ: <?php echo e($time); ?>

                                </div>
                           <hr>
                            <div class="code">

                            <?php echo QrCode::size(130)->generate($reid); ?>

                            <svg id="barcode" co="<?php echo e($reid); ?>"></svg>


                            </div>


                                <div class="text-botton">
                                   <b> ພະນັກງານຮັບເຄື່ອງ: </b> </br>
                                   <?php echo e($re->sex); ?> <?php echo e($re->name); ?> <?php echo e($re->last_name); ?><br>
                                   (ເບີໂທ: <?php echo e($re->tel); ?>)
                                 
                                    
                                </div>
                            </td>
                        </tr>
                    </tbody>
                    <tfoot>
                        <th colspan="3" class="text-center">ຮ້ານ ສອນໄອທີຄອມພິວເຕີ້ ຕັ້ງຢູ່: ບ້ານ ໜອງແມງດາ ເມືອງໄຊ ແຂວງອຸດົມໄຊ ໂທ/Whatsapp 29113568, 58086456<br>FaceBook: Soneitcomputer, YouTube: Soneitcomputer</th>
                    </tfoot>
                </table>
            </div>
            <br>
    ===========================================================================================
    <br>
            <div class="row">
            <div class="col-md-12 text-center">
                         <h2>ໃບຮັບເຄື່ອງ ນຳລູກຄ້າ (ສຳລັບພະນັກງານ)</h2>
                    </div>
                    <table width="97%" class="table-fill">
                    <thead class="table-fill">
                        <th width="33%" class="table-fill">ອຸປະກອນ</th>
                        <th width="43%" class="table-fill">ລາຍການສ້ອມແປງ</th>
                        <th width="23%" class="table-fill">ຕິດຕາມ</th>
                    </thead>
                    <tbody class="table-fill">
                        <tr class="table-fill" >
                        <?php $__currentLoopData = $repaire; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $re): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <td valign="top" >
                            <div class="b1">
                                <h4>ປະເພດອຸປະກອນ:</h4>
                                <img src="<?php echo e(asset('images/repaire/'.$re->images)); ?>"  height="120" >
                            </div>
                            <div class="b1" >
                                <h4>ລາຍລະອຽດອຸປະກອນ:</h4>
                                <?php echo $re->detail; ?>

                            </div>
                            <div class="b1" >
                               <h4>ອາການເປ່ເພ:</h4>
                               <?php echo $re->cause_detail; ?>

                            </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </td>
                            <td class="b1 table-fill" valign="top" >
                                <table width="100%">

                                    <?php ($alltotal = 0); ?>
                                    <?php ($total = 0); ?>
                                    <?php ($num = 1); ?>
                                    <?php $__currentLoopData = $listrepaire; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr >
                                        <td class="tr"><?php echo e($num++); ?>./ <?php echo e($list->name); ?> (<?php echo e($list->count); ?> x <?php echo e(number_format($list->credit, 0, ',', '.')); ?>)</td>
                                        <td class="tr text-right" width="80" ><?php echo e(number_format($list->count*$list->credit, 0, ',', '.')); ?></td>
                                                                                                    <?php ($total += $list->count*$list->credit); ?>
                                    </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td class="tr text-right" ><b>ລວມທັງໝົດ:</b></td>
                                        <td class="tr text-right"  width="80" ><?php echo e(number_format($total, 0, ',', '.')); ?></td>
                                    </tr>

                                </table>
                                <div>
                                    ໝາຍເຫດ: ລາຄາສ້ອມແປງ ອາດມີການປ່ຽນແປງ ຫຼັງຈາກກວດເຊັກອຸປະກອນຕົວຈິງ, ຫຼັງຈາກແຈ້ງສ້ອມແປງສຳເລັດ ລູກຄ້າຕ້ອງເຂົ້າມາຮັບເຄື່ອງ ແລະຊຳລ່ະຄ່າບໍລິການ ພາຍໃນ 2 ອາທິດ.
                                </div>
                                <div class="mt-2">
                                <?php $__currentLoopData = $repaire; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $re): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <b>ລູກຄ້າ:</b> <?php echo e($re->customer_name); ?><br>
                                    <b>ທີ່ຢູ່:</b> <?php echo e($re->customer_address); ?> <br>
                                    <b>ເບີໂທ:</b> <?php echo e($re->customer_tel); ?> <br>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                            </td>
                            <td class="b1" valign="top" class="table-fill">
                            <div class="text-right">
                                    ເລກທີ່: <?php echo e($reid); ?> <br>
                                     ວັນທີ່: <?php echo e($date); ?><br>
                                     ເວລາ: <?php echo e($time); ?>

                                </div>
                           <hr>
                            <div class="code">

                            <?php echo QrCode::size(130)->generate($reid); ?>

                            <svg id="barcode" co="<?php echo e($reid); ?>"></svg>
                            </div>


                                <div class="text-botton">
                                   <b> ພະນັກງານຮັບເຄື່ອງ: </b> <br>
                                   <?php echo e($re->sex); ?> <?php echo e($re->name); ?> <?php echo e($re->last_name); ?><br>
                                   (ເບີໂທ: <?php echo e($re->tel); ?>)
                                </div>
                            </td>
                        </tr>
                    </tbody>
                    <tfoot>
                        <th colspan="3" class="text-center">ຮ້ານ ສອນໄອທີຄອມພິວເຕີ້ ຕັ້ງຢູ່: ບ້ານ ໜອງແມງດາ ເມືອງໄຊ ແຂວງອຸດົມໄຊ ໂທ/Whatsapp 020 29113568, 58086456<br>FaceBook: Soneitcomputer, YouTube: Soneitcomputer</th>
                    </tfoot>
                </table>
            </div>


        </div>
    </div>
    <script>
        //JsBarcode("#barcode", "Hi world!",width: 4, height: 40,);
        var code = $("#barcode").attr('co');
        JsBarcode("#barcode", code,{ width: 1, height: 40});
          window.print();
          setTimeout('window.close()', 6210);

    </script>
</body>

</html><?php /**PATH /Users/sone/My Data/Developer/Laravel8+vue3/my_app_vue/resources/views/bill/rece.blade.php ENDPATH**/ ?>