Path : /var/www/html/thb_loan_system/storage/framework/views/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/html/thb_loan_system/storage/framework/views/ebc9581a495bb555c8bcc20555ced6a1969e26a6.php |
<?php $__env->startSection('title'); ?> <?php echo e(translate('repayment report')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="panel panel-white"> <div class="panel-heading"> <h6 class="panel-title"> <?php echo e(translate('repayment report')); ?> <?php if(!empty($start_date)): ?> for period: <b><?php echo e($start_date); ?> to <?php echo e($end_date); ?></b> <?php endif; ?> </h6> <div class="heading-elements"> </div> </div> <div class="panel-body hidden-print"> <?php echo Form::open(array('url' => Request::url(), 'method' => 'GET','class'=>'form-horizontal', 'name' => 'form')); ?> <div class="row"> <div class="col-xs-5"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.forms.date-range-picker','data' => ['name' => 'date_range','startDate' => $start_date,'endDate' => $end_date]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.date-range-picker'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'date_range','start-date' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($start_date),'end-date' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($end_date)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> </div> <div class="panel-body"> <div class="row"> <div class="col-xs-12"> <button type="submit" class="btn btn-success"><?php echo e(translate('search')); ?>! </button> <a href="<?php echo e(Request::url()); ?>" class="btn btn-danger"><?php echo e(translate('reset')); ?>!</a> <div class="btn-group"> <button type="button" class="btn bg-blue dropdown-toggle legitRipple" data-toggle="dropdown"><?php echo e(translate('download report')); ?> <span class="caret"></span></button> <ul class="dropdown-menu dropdown-menu-right"> <li> <a href="<?php echo e(url('report/loan_report/repayments_report/pdf?start_date='.$start_date.'&end_date='.$end_date)); ?>" target="_blank"><i class="icon-file-pdf"></i> <?php echo e(translate('download to pdf')); ?> </a></li> <li> <a href="<?php echo e(url('report/loan_report/repayments_report/excel?start_date='.$start_date.'&end_date='.$end_date)); ?>" target="_blank"><i class="icon-file-excel"></i> <?php echo e(translate('download to excel')); ?> </a></li> </ul> </div> </div> </div> </div> <?php echo Form::close(); ?> </div> <!-- /.panel-body --> </div> <!-- /.box --> <?php if(!empty($start_date)): ?> <div class="panel panel-white"> <div class="panel-body table-responsive no-padding"> <table class="table table-bordered table-condensed table-hover"> <thead> <tr class="bg-green"> <th>#</th> <th><?php echo e(translate('id')); ?></th> <th><?php echo e(translate('borrower')); ?></th> <th><?php echo e(translate('principal')); ?></th> <th><?php echo e(translate('interest')); ?></th> <th><?php echo e(translate('fee')); ?></th> <th><?php echo e(translate('penalty')); ?></th> <th><?php echo e(translate('total')); ?></th> <th><?php echo e(translate('date')); ?></th> <th><?php echo e(translate('receipt')); ?></th> <th><?php echo e(translate('payment method')); ?></th> </tr> </thead> <tbody> <?php $total_principal = 0; $total_fees = 0; $total_interest = 0; $total_penalty = 0; ?> <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index=>$key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $principal = $key->schedule_sum_principal ?? 0; // \App\Models\JournalEntry::where('loan_transaction_id', $key->id)->where('reversed', // 0)->where('transaction_sub_type', 'repayment_principal')->sum('credit'); $interest = $key->schedule_sum_interest ?? 0; // \App\Models\JournalEntry::where('loan_transaction_id', $key->id)->where('reversed', // 0)->where('transaction_sub_type', 'repayment_interest')->sum('credit'); $fees = $key->schedule_sum_fees ?? 0; // \App\Models\JournalEntry::where('loan_transaction_id', $key->id)->where('reversed', // 0)->where('transaction_sub_type', 'repayment_fees')->sum('credit'); $penalty = $key->schedule_sum_penalty ?? 0; // \App\Models\JournalEntry::where('loan_transaction_id', $key->id)->where('reversed', // 0)->where('transaction_sub_type', 'repayment_penalty')->sum('credit'); $total_principal = $total_principal + $principal; $total_interest = $total_interest + $interest; $total_fees = $total_fees + $fees; $total_penalty = $total_penalty + $penalty; ?> <tr> <td><?php echo e($index+1); ?></td> <td><?php echo e($key->id); ?></td> <td> <?php if(!empty($key->borrower)): ?> <a href="<?php echo e(url('borrower/'.$key->borrower_id.'/show')); ?>"><?php echo e($key->borrower->first_name); ?> <?php echo e($key->borrower->last_name); ?></a> <?php endif; ?> </td> <td class="credit"><?php echo e(currency_converter($principal)); ?></td> <td class="credit"><?php echo e(currency_converter($interest)); ?></td> <td class="credit"><?php echo e(currency_converter($fees)); ?></td> <td class="credit"><?php echo e(currency_converter($penalty)); ?></td> <td class="credit"><?php echo e(currency_converter($principal+$interest+$fees+$penalty)); ?></td> <td><?php echo e($key->date); ?></td> <td><?php echo e($key->receipt); ?></td> <td> <?php if(!empty($key->loan_repayment_method)): ?> <?php echo e($key->loan_repayment_method->name); ?> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> <tfoot> <tr> <td colspan="3"></td> <td class="credit"><b><?php echo e(currency_converter($total_principal)); ?></b></td> <td class="credit"><b><?php echo e(currency_converter($total_interest)); ?></b></td> <td class="credit"><b><?php echo e(currency_converter($total_fees)); ?></b></td> <td class="credit"><b><?php echo e(currency_converter($total_penalty)); ?></b></td> <td class="credit"><b><?php echo e(currency_converter($total_principal+$total_interest+$total_fees+$total_penalty)); ?></b></td> <td></td> <td></td> <td></td> </tr> </tfoot> </table> </div> </div> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('footer-scripts'); ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/thb_loan_system/resources/views/loan_report/repayments_report.blade.php ENDPATH**/ ?>