<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Fee Bill</title>
    <?php echo $__env->make('backend.pdf.layouts.feebill_css', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</head>
<body>
<main>
    <div class="row" style="padding: 0px;margin: 0px;">
        <div class="col-md-4" style="padding: 0px;margin: 0px;">
            <div style="padding: 10px;border-right:2px dashed #968585;">
                <table cellpadding="0" cellspacing="0">
                    <tr class="top">
                        <td colspan="2">
                            <table>
                                <tr>
                                    <td class="title" style="width: 23%">
                                        <img src="<?php echo e(get_department_logo(@$department->id,'school_logo')); ?>" style="width:80px;">
                                    </td>
                                    <td style="width: 54%;text-align: center;">
                                        <b><?php echo e(get_option("school_name")); ?></b><br/>
                                        <small><?php echo e(get_option("address")); ?>

                                        <?php echo e(_lang('Ph')." : ".get_option("phone")); ?></small><br/>
                                        <span style="font-weight: 600;margin-top: 7px;">Hostel Copy</span>

                                    </td>
                                    <td style="width: 23%">
                                        <img src="<?php echo e(get_department_logo(@$department->id,'bank_logo')); ?>" style="width:80px;">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><h2 class="pm-0" align="center"><?php echo e(_lang('Fee Challan Form')); ?></h2></td>
                    </tr>
                    <tr>
                        <td class="pt-3" colspan="2"><h4 class="pm-0" align="center">Credited At: <?php echo e(@$department->bank_name); ?></h4></td>
                    </tr>
                    <tr>
                        <td colspan="2" class="text-center pt-3"><span class="pm-0"><?php echo e(@$department->department_name); ?></span></td>
                    </tr>
                    <tr>
                        <td class="text-left pt-3"><b>A/C#: </b><strong><?php echo e(@$department->bank_account); ?></strong></td>
                        <td class="text-right pt-3"><b>R#: </b><strong>__________</strong></td>
                    </tr>
                    <tr class="brk-10">
                        <td colspan="2"></td>
                    </tr>
                    <tr>
                        <td class="pt-3 pb-3" colspan="2"><b class="pm-0"><?php echo e(_lang("Name")); ?>:</b><strong> <?php echo e($invoice->first_name." ".$invoice->last_name); ?></strong></td>
                    </tr>
                    <tr>
                        <td class="pt-3 pb-3" colspan="2"><b class="pm-0"><?php echo e(_lang("Family Head")); ?>:</b> <strong><?php echo e($invoice->parent_name); ?></strong></td>
                    </tr>
                    <tr>
                        <td class="pt-3 pb-3" colspan="2"><b class="pm-0"><?php echo e(_lang("Department")); ?>:</b> <strong><?php echo e(@$department->department_name); ?></strong></td>
                    </tr>
                    <tr>
                        <td class="pt-3 pb-3" class="text-left" width="50%"><b class="pm-0"> <?php echo e(_lang("Class")); ?>:</b> <strong><?php echo e($invoice->class_name); ?></strong></td>
                        <td class="pt-3 pb-3" class="text-left" width="50%"><b class="pm-0"> <?php echo e(_lang("Section")); ?>:</b> <strong><?php echo e($invoice->section_name); ?></strong></td>
                    </tr>

                    <tr class="brk-10">
                        <td colspan="2"></td>
                    </tr>
                </table>
                <div style="margin-top: 10px;"> 
                    <fieldset>
                        <b><?php echo e(_lang('Periods')); ?>:</b> <span><?php echo e($invoice->title); ?></span>
                        <legend>Fee Details:</legend>
                        <table class="table-data" style="margin-top: 10px;margin-bottom: 10px;">                     
                            <tbody>    
                                <?php $__currentLoopData = $invoiceItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>                
                                   <tr>
                                     <td class="text-left" width="70%"><b><?php echo e($item->fee_type); ?></b></td>
                                     <td class="text-right"><?php echo e($currency." ".decimalPlace($item->amount-$item->discount)); ?></td>
                                   </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                            <tbody>
                                <tr>
                                    <td class="text-left"><b><?php echo e(_lang('Previous Balance')); ?></b></td>
                                    <td class="text-right"><b><?php echo e($currency." ".decimalPlace((\App\Invoice::where('student_id',$invoice->student_id)->sum('total') - \App\Invoice::where('student_id',$invoice->student_id)->sum('paid'))-($invoice->total-$invoice->paid))); ?></b></td>
                                </tr>
                            </tbody>
                           <tbody>              
                                   <tr>
                                     <td class="text-left" width="70%"><b><?php echo e(_lang('Total Payable')); ?></b></td>
                                     <td class="text-right"><?php echo e($currency." "); ?><?php echo e(\App\Invoice::where('student_id',$invoice->student_id)->sum('total') - \App\Invoice::where('student_id',$invoice->student_id)->sum('paid')); ?></td>
                                   </tr>
                            </tbody>
                            <tbody>
                                <tr>
                                    <td class="text-left"><b><?php echo e(_lang('After Due Date')); ?></b></td>
                                    <td class="text-right"><b><?php echo e($currency." ".decimalPlace((\App\Invoice::where('student_id',$invoice->student_id)->sum('total') - \App\Invoice::where('student_id',$invoice->student_id)->sum('paid'))+100)); ?></b></td>
                                </tr>
                            </tbody>
                        </table>
                        <b><?php echo e(_lang('Due Date')); ?>:</b> <span><?php echo e(date('l, F d, Y',strtotime($invoice->due_date))); ?></span>
                    </fieldset>
                </div> 

                <table style="margin-top: 100px;">
                    <tr>
                        <th style="text-align: left;border:none;padding: 3px;width:70%;"><b style="border-top: 1px solid #c59999b3;">Deposited By:</b></th>
                        <th style="text-align: left;border:none;padding: 3px;width:30%;"><b style="border-top: 1px solid #c59999b3;">Received By:</b></th>
                    </tr>
                    <tr class="brk-10">
                        <td colspan="2"></td>
                    </tr>
                    <tr>
                        <td class="text-left" colspan="2">This Voucher is valid only in the month of : <?php echo e(date('F',strtotime(now()))); ?></td>
                    </tr>
                    <tr>
                        <td class="text-left pt-3" colspan="2">Dues once paid are not refundable in anycase.</td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="col-md-4" style="padding: 0px;margin: 0px;">
            <div style="padding: 10px;border-right:2px dashed #968585;">
                <table cellpadding="0" cellspacing="0">
                    <tr class="top">
                        <td colspan="2">
                            <table>
                                <tr>
                                    <td class="title" style="width: 23%">
                                        <img src="<?php echo e(get_department_logo(@$department->id,'school_logo')); ?>" style="width:80px;">
                                    </td>
                                    <td style="width: 54%;text-align: center;">
                                        <b><?php echo e(get_option("school_name")); ?></b><br/>
                                        <small><?php echo e(get_option("address")); ?>

                                        <?php echo e(_lang('Ph')." : ".get_option("phone")); ?></small><br/>
                                        <span style="font-weight: 600;margin-top: 7px;">Bank Copy</span>

                                    </td>
                                    <td style="width: 23%">
                                        <img src="<?php echo e(get_department_logo(@$department->id,'bank_logo')); ?>" style="width:80px;">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><h2 class="pm-0" align="center"><?php echo e(_lang('Fee Challan Form')); ?></h2></td>
                    </tr>
                    <tr>
                        <td class="pt-3" colspan="2"><h4 class="pm-0" align="center">Credited At: <?php echo e(@$department->bank_name); ?></h4></td>
                    </tr>
                    <tr>
                        <td colspan="2" class="text-center pt-3"><span class="pm-0"><?php echo e(@$department->department_name); ?></span></td>
                    </tr>
                    <tr>
                        <td class="text-left pt-3"><b>A/C#: </b><strong><?php echo e(@$department->bank_account); ?></strong></td>
                        <td class="text-right pt-3"><b>R#: </b><strong>__________</strong></td>
                    </tr>
                    <tr class="brk-10">
                        <td colspan="2"></td>
                    </tr>
                    <tr>
                        <td class="pt-3 pb-3" colspan="2"><b class="pm-0"><?php echo e(_lang("Name")); ?>:</b><strong> <?php echo e($invoice->first_name." ".$invoice->last_name); ?></strong></td>
                    </tr>
                    <tr>
                        <td class="pt-3 pb-3" colspan="2"><b class="pm-0"><?php echo e(_lang("Family Head")); ?>:</b> <strong><?php echo e($invoice->parent_name); ?></strong></td>
                    </tr>
                    <tr>
                        <td class="pt-3 pb-3" colspan="2"><b class="pm-0"><?php echo e(_lang("Department")); ?>:</b> <strong><?php echo e(@$department->department_name); ?></strong></td>
                    </tr>
                    <tr>
                        <td class="pt-3 pb-3" class="text-left" width="50%"><b class="pm-0"> <?php echo e(_lang("Class")); ?>:</b> <strong><?php echo e($invoice->class_name); ?></strong></td>
                        <td class="pt-3 pb-3" class="text-left" width="50%"><b class="pm-0"> <?php echo e(_lang("Section")); ?>:</b> <strong><?php echo e($invoice->section_name); ?></strong></td>
                    </tr>

                    <tr class="brk-10">
                        <td colspan="2"></td>
                    </tr>
                </table>
                <div style="margin-top: 10px;"> 
                    <fieldset>
                        <b><?php echo e(_lang('Periods')); ?>:</b> <span><?php echo e($invoice->title); ?></span>
                        <legend>Fee Details:</legend>
                        <table class="table-data" style="margin-top: 10px;margin-bottom: 10px;">
                            <tbody>    
                                <?php $__currentLoopData = $invoiceItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>                
                                   <tr>
                                     <td class="text-left" width="70%"><b><?php echo e($item->fee_type); ?></b></td>
                                     <td class="text-right"><?php echo e($currency." ".decimalPlace($item->amount-$item->discount)); ?></td>
                                   </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                            <tbody>
                                <tr>
                                    <td class="text-left"><b><?php echo e(_lang('Previous Balance')); ?></b></td>
                                    <td class="text-right"><b><?php echo e($currency." ".decimalPlace((\App\Invoice::where('student_id',$invoice->student_id)->sum('total') - \App\Invoice::where('student_id',$invoice->student_id)->sum('paid'))-($invoice->total-$invoice->paid))); ?></b></td>
                                </tr>
                            </tbody>
                           <tbody>              
                                   <tr>
                                     <td class="text-left" width="70%"><b><?php echo e(_lang('Total Payable')); ?></b></td>
                                     <td class="text-right"><?php echo e($currency." "); ?><?php echo e(\App\Invoice::where('student_id',$invoice->student_id)->sum('total') - \App\Invoice::where('student_id',$invoice->student_id)->sum('paid')); ?></td>
                                   </tr>
                            </tbody>
                            <tbody>
                                <tr>
                                    <td class="text-left"><b><?php echo e(_lang('After Due Date')); ?></b></td>
                                    <td class="text-right"><b><?php echo e($currency." ".decimalPlace((\App\Invoice::where('student_id',$invoice->student_id)->sum('total') - \App\Invoice::where('student_id',$invoice->student_id)->sum('paid'))+100)); ?></b></td>
                                </tr>
                            </tbody>
                        </table>
                        <b><?php echo e(_lang('Due Date')); ?>:</b> <span><?php echo e(date('l, F d, Y',strtotime($invoice->due_date))); ?></span>
                    </fieldset>
                </div> 

                <table style="margin-top: 100px;">
                    <tr>
                        <th style="text-align: left;border:none;padding: 3px;width:70%;"><b style="border-top: 1px solid #c59999b3;">Deposited By:</b></th>
                        <th style="text-align: left;border:none;padding: 3px;width:30%;"><b style="border-top: 1px solid #c59999b3;">Received By:</b></th>
                    </tr>
                    <tr class="brk-10">
                        <td colspan="2"></td>
                    </tr>
                    <tr>
                        <td class="text-left" colspan="2">This Voucher is valid only in the month of : <?php echo e(date('F',strtotime(now()))); ?></td>
                    </tr>
                    <tr>
                        <td class="text-left pt-3" colspan="2">Dues once paid are not refundable in anycase.</td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="col-md-4" style="padding: 0px;margin: 0px;">
            <div style="padding: 10px">
                <table cellpadding="0" cellspacing="0">
                    <tr class="top">
                        <td colspan="2">
                            <table>
                                <tr>
                                    <td class="title" style="width: 23%">
                                        <img src="<?php echo e(get_department_logo(@$department->id,'school_logo')); ?>" style="width:80px;">
                                    </td>
                                    <td style="width: 54%;text-align: center;">
                                        <b><?php echo e(get_option("school_name")); ?></b><br/>
                                        <small><?php echo e(get_option("address")); ?>

                                        <?php echo e(_lang('Ph')." : ".get_option("phone")); ?></small><br/>
                                        <span style="font-weight: 600;margin-top: 7px;">Student Copy</span>

                                    </td>
                                    <td style="width: 23%">
                                        <img src="<?php echo e(get_department_logo(@$department->id,'bank_logo')); ?>" style="width:80px;">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><h2 class="pm-0" align="center"><?php echo e(_lang('Fee Challan Form')); ?></h2></td>
                    </tr>
                    <tr>
                        <td class="pt-3" colspan="2"><h4 class="pm-0" align="center">Credited At: <?php echo e(@$department->bank_name); ?></h4></td>
                    </tr>
                    <tr>
                        <td colspan="2" class="text-center pt-3"><span class="pm-0"><?php echo e(@$department->department_name); ?></span></td>
                    </tr>
                    <tr>
                        <td class="text-left pt-3"><b>A/C#: </b><strong><?php echo e(@$department->bank_account); ?></strong></td>
                        <td class="text-right pt-3"><b>R#: </b><strong>__________</strong></td>
                    </tr>
                    <tr class="brk-10">
                        <td colspan="2"></td>
                    </tr>
                    <tr>
                        <td class="pt-3 pb-3" colspan="2"><b class="pm-0"><?php echo e(_lang("Name")); ?>:</b><strong> <?php echo e($invoice->first_name." ".$invoice->last_name); ?></strong></td>
                    </tr>
                    <tr>
                        <td class="pt-3 pb-3" colspan="2"><b class="pm-0"><?php echo e(_lang("Family Head")); ?>:</b> <strong><?php echo e($invoice->parent_name); ?></strong></td>
                    </tr>
                    <tr>
                        <td class="pt-3 pb-3" colspan="2"><b class="pm-0"><?php echo e(_lang("Department")); ?>:</b> <strong><?php echo e(@$department->department_name); ?></strong></td>
                    </tr>
                    <tr>
                        <td class="pt-3 pb-3" class="text-left" width="50%"><b class="pm-0"> <?php echo e(_lang("Class")); ?>:</b> <strong><?php echo e($invoice->class_name); ?></strong></td>
                        <td class="pt-3 pb-3" class="text-left" width="50%"><b class="pm-0"> <?php echo e(_lang("Section")); ?>:</b> <strong><?php echo e($invoice->section_name); ?></strong></td>
                    </tr>

                    <tr class="brk-10">
                        <td colspan="2"></td>
                    </tr>
                </table>
                <div style="margin-top: 10px;"> 
                    <fieldset>
                        <b><?php echo e(_lang('Periods')); ?>:</b> <span><?php echo e($invoice->title); ?></span>
                        <legend>Fee Details:</legend>
                        <table class="table-data" style="margin-top: 10px;margin-bottom: 10px;">        
                            <tbody>    
                                <?php $__currentLoopData = $invoiceItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>                
                                   <tr>
                                     <td class="text-left" width="70%"><b><?php echo e($item->fee_type); ?></b></td>
                                     <td class="text-right"><?php echo e($currency." ".decimalPlace($item->amount-$item->discount)); ?></td>
                                   </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                            <tbody>
                                <tr>
                                    <td class="text-left"><b><?php echo e(_lang('Previous Balance')); ?></b></td>
                                    <td class="text-right"><b><?php echo e($currency." ".decimalPlace((\App\Invoice::where('student_id',$invoice->student_id)->sum('total') - \App\Invoice::where('student_id',$invoice->student_id)->sum('paid'))-($invoice->total-$invoice->paid))); ?></b></td>
                                </tr>
                            </tbody>
                           <tbody>              
                                   <tr>
                                     <td class="text-left" width="70%"><b><?php echo e(_lang('Total Payable')); ?></b></td>
                                     <td class="text-right"><?php echo e($currency." "); ?><?php echo e(\App\Invoice::where('student_id',$invoice->student_id)->sum('total') - \App\Invoice::where('student_id',$invoice->student_id)->sum('paid')); ?></td>
                                   </tr>
                            </tbody>
                            <tbody>
                                <tr>
                                    <td class="text-left"><b><?php echo e(_lang('After Due Date')); ?></b></td>
                                    <td class="text-right"><b><?php echo e($currency." ".decimalPlace((\App\Invoice::where('student_id',$invoice->student_id)->sum('total') - \App\Invoice::where('student_id',$invoice->student_id)->sum('paid'))+100)); ?></b></td>
                                </tr>
                            </tbody>
                        </table>
                        <b><?php echo e(_lang('Due Date')); ?>:</b> <span><?php echo e(date('l, F d, Y',strtotime($invoice->due_date))); ?></span>
                    </fieldset>
                </div> 

                <table style="margin-top: 100px;">
                    <tr>
                        <th style="text-align: left;border:none;padding: 3px;width:70%;"><b style="border-top: 1px solid #c59999b3;">Deposited By:</b></th>
                        <th style="text-align: left;border:none;padding: 3px;width:30%;"><b style="border-top: 1px solid #c59999b3;">Received By:</b></th>
                    </tr>
                    <tr class="brk-10">
                        <td colspan="2"></td>
                    </tr>
                    <tr>
                        <td class="text-left" colspan="2">This Voucher is valid only in the month of : <?php echo e(date('F',strtotime(now()))); ?></td>
                    </tr>
                    <tr>
                        <td class="text-left pt-3" colspan="2">Dues once paid are not refundable in anycase.</td>
                    </tr>
                </table>
            </span>
        </div>
    </div>
</main>

</body>
</html>
<?php /**PATH /home/hostelmanager/public_html/test.hostelmanager.pk/resources/views/backend/pdf/invoices/feebill.blade.php ENDPATH**/ ?>