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/21db7bacdebf3ac9e9273ec57e6042eeadd2b091.php |
<?php $__env->startSection('title'); ?> <?php echo e(translate('loan')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="panel panel-white"> <div class="panel-heading"> <h6 class="panel-title"> <?php if(isset($_REQUEST['status'])): ?> <?php if($_REQUEST['status']=='pending'): ?> <?php echo e(translate('loan pending approval')); ?> <?php endif; ?> <?php if($_REQUEST['status']=='approved'): ?> <?php echo e(translate('loan awaiting disbursement')); ?> <?php endif; ?> <?php if($_REQUEST['status']=='disbursed'): ?> <?php echo e(translate('loan disbursed')); ?> <?php endif; ?> <?php if($_REQUEST['status']=='declined'): ?> <?php echo e(translate('loan declined')); ?> <?php endif; ?> <?php if($_REQUEST['status']=='withdrawn'): ?> <?php echo e(translate('loan withdrawn')); ?> <?php endif; ?> <?php if($_REQUEST['status']=='written_off'): ?> <?php echo e(translate('loan written_off')); ?> <?php endif; ?> <?php if($_REQUEST['status']=='closed'): ?> <?php echo e(translate('loan closed')); ?> <?php endif; ?> <?php if($_REQUEST['status']=='rescheduled'): ?> <?php echo e(translate('loan rescheduled')); ?> <?php endif; ?> <?php else: ?> <?php echo e(translate('all loan')); ?> <?php endif; ?> </h6> <div class="heading-elements"> <?php if(Sentinel::hasAccess('loans.create')): ?> <a href="<?php echo e(url('loan/create')); ?>" class="btn btn-info btn-sm"><?php echo e(translate('add loan')); ?></a> <?php endif; ?> </div> </div> <div class="panel-body table-responsive"> <form action="<?php echo e(url('loan/data')); ?>" method="GET" id="borrower_search"> <div id="data-table_filter" class="dataTables_filter"> <?php echo e(translate('search')); ?> : <input type="search" name="q" value="<?php echo e(request()->query('q') ?? ''); ?>" aria-controls="data-table" placeholder="<?php echo e(translate('name')); ?>, <?php echo e(translate('mobile')); ?>, <?php echo e(translate('unique_number')); ?>"> <label class="search-icon"></label> </div> </form> <table id="data-table" class="table table-striped table-condensed table-hover"> <thead> <tr> <th>#</th> <th><?php echo e(translate('loan id')); ?></th> <th><?php echo e(translate('borrower')); ?></th> <th><?php echo e(translate('principal')); ?></th> <th><?php echo e(translate('balance')); ?></th> <th><?php echo e(translate('loan fee')); ?></th> <th><?php echo e(translate('disbursed')); ?></th> <th><?php echo e(translate('product')); ?></th> <th><?php echo e(translate('status')); ?></th> <th><?php echo e(translate('action')); ?></th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index=> $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <?php $loan_total_balance = $key->schedules_sum_penalty + $key->schedules_sum_fees + $key->schedules_sum_interest + $key->schedules_sum_principal + $key->schedules_sum_interest_waived + $key->schedules_sum_pay_off - $key->transactions_sum_credit; ?> <td><?php echo e($index+1); ?></td> <td> <a href="<?php echo e(url('loan/'.$key->id.'/show')); ?>"> <?php echo e($key->id); ?> </a> </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 else: ?> <span class="label label-danger"><?php echo e(translate('broken')); ?> <i class="fa fa-exclamation-triangle"></i> </span> <?php endif; ?> </td> <td class="credit"> <?php echo e(currency_converter($key->principal)); ?> </td> <td class="credit"> <?php echo e(currency_converter( $loan_total_balance )); ?> </td> <td class="credit"> <?php echo e(currency_converter($key->charges->sum('amount'))); ?> </td> <td><?php echo e($key->release_date); ?></td> <td> <?php if(!empty($key->loan_product)): ?> <?php echo e($key->loan_product->name); ?> <?php else: ?> <span class="label label-danger"><?php echo e(translate('broken')); ?> <i class="fa fa-exclamation-triangle"></i> </span> <?php endif; ?> </td> <td> <?php if($key->maturity_date<date("Y-m-d") && $loan_total_balance>0): ?> <span class="label label-danger"><?php echo e(translate('past_maturity')); ?> </span> <?php else: ?> <?php if($key->status=='pending'): ?> <span class="label label-warning"><?php echo e(translate('pending approval')); ?></span> <?php endif; ?> <?php if($key->status=='approved'): ?> <span class="label label-warning"><?php echo e(translate('awaiting disbursement')); ?></span> <?php endif; ?> <?php if($key->status=='disbursed'): ?> <span class="label label-info"><?php echo e(translate('active')); ?></span> <?php endif; ?> <?php if($key->status=='declined'): ?> <span class="label label-danger"><?php echo e(translate('declined')); ?></span> <?php endif; ?> <?php if($key->status=='withdrawn'): ?> <span class="label label-danger"><?php echo e(translate('withdrawn')); ?></span> <?php endif; ?> <?php if($key->status=='written_off'): ?> <span class="label label-danger"><?php echo e(translate('written_off')); ?></span> <?php endif; ?> <?php if($key->status=='closed'): ?> <span class="label label-success"><?php echo e(translate('closed')); ?> </span> <?php endif; ?> <?php if($key->status=='pending_reschedule'): ?> <span class="label label-warning"><?php echo e(translate('pending reschedule')); ?></span> <?php endif; ?> <?php if($key->status=='rescheduled'): ?> <span class="label label-info"><?php echo e(translate('rescheduled')); ?></span> <?php endif; ?> <?php endif; ?> </td> <td> <ul class="icons-list"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-menu9"></i> </a> <ul class="dropdown-menu dropdown-menu-right" role="menu"> <?php if(Sentinel::hasAccess('loans.view')): ?> <li><a href="<?php echo e(url('loan/'.$key->id.'/show')); ?>"><i class="fa fa-search"></i> <?php echo e(translate('detail')); ?> </a> </li> <?php endif; ?> <?php if($key->status!='disbursed'): ?> <?php if(Sentinel::hasAccess('loans.create')): ?> <li><a href="<?php echo e(url('loan/'.$key->id.'/edit')); ?>"><i class="fa fa-edit"></i> <?php echo e(translate('edit')); ?> </a> </li> <?php endif; ?> <?php if(Sentinel::hasAccess('loans.delete')): ?> <li><a href="<?php echo e(url('loan/'.$key->id.'/delete')); ?>" class="delete"><i class="fa fa-trash"></i> <?php echo e(translate('delete')); ?> </a> </li> <?php endif; ?> <?php endif; ?> </ul> </li> </ul> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr class="odd text-center"> <td colspan="8" class="dataTables_empty"><?php echo e(translate('zeroRecords')); ?></td> </tr> <?php endif; ?> </tbody> </table> <?php echo e($data->withQueryString()->links()); ?> </div> <!-- /.panel-body --> </div> <!-- /.box --> <?php $__env->stopSection(); ?> <?php $__env->startSection('footer-scripts'); ?> <?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/data.blade.php ENDPATH**/ ?>