<?php $__env->startSection('content'); ?>
    <div class="row" id="fish">
        <div class="col-12">
            <div class="card">
                <div class="card-body">

                    <div class="table-responsive">

                        <div class="col-12 text-center">
                            <img src="<?php echo e(asset('logo.png')); ?>" alt="" style="float: right;">
                            <h3 class="d-inline-block text-center">شرکت پاکان باختر بانه</h3>
                            <br>
                            <h5 class="d-inline-block text-center">فیش حقوقی <?php echo e($factor->Tarikh); ?></h5>
                        </div>


                        <table id="table" class="jadval col-12">
                            <tbody>
                                <tr>
                                    <td>کد : <?php echo e($factor->{'139db701fcb5abff6c356874bb57dac2a611c177'}); ?></td>
                                    <td>نام و نام خانوادگی : <?php echo e($factor->{'6d0a6b23037a8e4b3f78b3a42c0404a2b47eaa4f'}); ?>

                                    </td>
                                    <td>مرکز هزینه : <?php echo e($factor->{'aa5cb089476d8c330c8d25f1cfb4624593ac9b70'}); ?></td>
                                    <td colspan="3">محل خدمت :
                                        <?php echo e($factor->{'d05edf5f2b34467aad6ba4c5c602106872f223de'}); ?>

                                    </td>
                                </tr>
                                <tr>
                                    <td class="text-center">کارکرد</td>
                                    <td class="text-center">مزایا</td>
                                    <td class="text-center">کسور</td>
                                    <td class="text-center d">نام</td>
                                    <td class="text-center d">اقساط</td>
                                    <td class="text-center">مانده</td>
                                </tr>
                                <tr>
                                    <td valign="top" style="height: 300px;">

                                        <?php if($karkard != ''): ?>
                                            <?php $__currentLoopData = $karkardfilds; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $kk): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                
                                                <?php
                                                    $a = $kk->Col;

                                                ?>
                                                <?php if(!$karkard->$a == 0): ?>
                                                    <span style="display: block"><?php echo e($kk->Name); ?> :
                                                        <?php echo e($karkard->$a); ?></span>
                                                    <br>
                                                <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </td>

                                    <td valign="top">

                                        <?php $__currentLoopData = $filds; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $fild): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php
                                                $b = $fild->Col;
                                            ?>
                                            <?php if($fild->Status == 1 && $factor->$b != 0): ?>
                                                <span style="display: block;"><?php echo e($fild->Name); ?> :
                                                    <?php echo e(number_format($factor->$b)); ?></span>
                                                <br>
                                            <?php endif; ?>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                    </td>

                                    <td valign="top">
                                        <?php $__currentLoopData = $filds; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $fild): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php
                                                $b = $fild->Col;
                                            ?>
                                            <?php if($fild->Status == 2 && $factor->$b != 0): ?>
                                                <span style="display: block;"><?php echo e($fild->Name); ?> :
                                                    <?php echo e(number_format($factor->$b)); ?></span>
                                                <br>
                                            <?php endif; ?>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                                    </td>
                                    <td colspan="3">

                                    </td>

                                </tr>

                                <tr>
                                    <td class="text-center" rowspan="2"></td>
                                    <td class="text-center"><span>جمع : </span>
                                        <?php echo e(number_format($factor->{'c46707bbbff1edf9d35a69cc9c9b65432a44f6b8'})); ?> </td>
                                    <td class="text-center"><span>جمع :</span>
                                        <?php echo e(number_format($factor->{'cc4be00412073cd16008a3a00a3534d7e6da353b'})); ?> </td>
                                    <td class="text-center d">جمع : </td>
                                    <td class="text-center d">0</td>
                                    <td class="text-center">0</td>
                                </tr>

                                <tr>
                                    <td class="text-center"><span>بانک / صندوق : </span>*****</td>
                                    <td class="text-center"><span>شماره حساب : </span>*****</td>
                                    <td class="text-center" colspan="3"><span>خالص
                                            :
                                        </span><?php echo e(number_format($factor->{'8a4c87e4dc7aeb1f88ba656c1ece4992798a1bac'})); ?>

                                    </td>

                                </tr>


                            </tbody>
                        </table>
                    </div>

                </div>
            </div>
        </div>
        <!-- end col -->
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('css'); ?>
    <style>
        td {
            border: 1px solid black;
            padding: 10px;
            font-size: 15px;
            /* font-weight: bold; */
            color: rgb(19, 18, 18);
            text-align: right
        }
    </style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
    <?php if($download == true): ?>
        <script>
            document.body.innerHTML = document.getElementById('fish').innerHTML;
            window.print();
            window.onafterprint = back;

            function back() {
                window.history.back();
            }
        </script>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('user.layouts.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/ali/pakanbakhtar/pakanbakhtar/resources/views/user/factor.blade.php ENDPATH**/ ?>