| 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/080a1583893bda521d325b9f9cd71953f1bb7c20.php |
<?php $__env->startSection('title'); ?>
<?php echo e(translate('borrower detail')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php if($borrower->blacklisted==1): ?>
<div class="row">
<div class="col-sm-12">
<div class="alert bg-danger">
<button type="button" class="close" data-dismiss="alert"><span>×</span><span
class="sr-only">Close</span></button>
<?php echo e(translate('blacklist_notification')); ?>
</div>
</div>
</div>
<?php endif; ?>
<!-- Detached sidebar -->
<div class="sidebar-detached">
<div class="sidebar sidebar-default sidebar-separate">
<div class="sidebar-content">
<!-- User details -->
<div class="content-group">
<div class="panel-body bg-indigo-400 border-radius-top text-center"
style="background-image: url(http://demo.interface.club/limitless/assets/images/bg.png); background-size: contain;">
<div class="content-group-sm">
<h6 class="text-semibold no-margin-bottom">
<?php echo e($borrower->title); ?> <?php echo e($borrower->first_name); ?> <?php echo e($borrower->last_name); ?>
</h6>
<span class="display-block"><?php echo e($borrower->unique_number); ?></span>
<?php if($borrower->gender=="Male"): ?>
<span class="display-block"><?php echo e(translate('male')); ?>
, <?php echo e(\Carbon\Carbon::now()->diffInYears($borrower->dob)); ?> <?php echo e(translate('year')); ?></span>
<?php endif; ?>
<?php if($borrower->gender=="Female"): ?>
<span class="display-block"><?php echo e(translate('female')); ?>
, <?php echo e(\Carbon\Carbon::now()->diffInYears($borrower->dob)); ?> <?php echo e(translate('year')); ?></span>
<?php endif; ?>
</div>
<a href="#" class="display-inline-block content-group-sm">
<?php if(!empty($borrower->photo)): ?>
<a href="<?php echo e(asset('uploads/'.$borrower->photo)); ?>"
class="display-inline-block content-group-sm fancybox"> <img
class="img-circle img-responsive"
src="<?php echo e(asset('uploads/'.$borrower->photo)); ?>"
alt="user image" style="max-height: 120px!important;"/></a>
<?php else: ?>
<a href="#" class="display-inline-block content-group-sm "> <
<img class="img-circle img-responsive"
src="<?php echo e(asset('assets/dist/img/user.png')); ?>"
alt="user image" style="height: 120px!important;"/>
</a>
<?php endif; ?>
</a>
<ul class="list-inline list-inline-condensed no-margin-bottom">
<li><a href="<?php echo e(url('communication/email/create?borrower_id='.$borrower->id)); ?>"
class="btn bg-indigo btn-rounded btn-icon" data-toggle="tooltip"
title="<?php echo e(translate('email')); ?>"><i class="icon-envelop3"></i></a>
</li>
<li><a href="<?php echo e(url('communication/sms/create?borrower_id='.$borrower->id)); ?>"
class="btn bg-indigo btn-rounded btn-icon" data-toggle="tooltip"
title="<?php echo e(translate('sms')); ?>"><i class="icon-mobile"></i></a>
</li>
<li><a href="<?php echo e(url('borrower/'.$borrower->id.'/edit')); ?>"
class="btn bg-indigo btn-rounded btn-icon" data-toggle="tooltip"
title="<?php echo e(translate('edit')); ?>"><i class=" icon-pen6"></i></a>
</li>
</ul>
</div>
<div class="panel no-border-top no-border-radius-top">
<ul class="navigation">
<li class="navigation-header">Navigation</li>
<li class="active"><a href="#profile" data-toggle="tab"><i class="icon-profile"></i>
<?php echo e(translate('profile')); ?></a></li>
<li><a href="#loans" data-toggle="tab"><i
class="icon-balance"></i> <?php echo e(translate('loan')); ?></a></li>
<li><a href="#payments" data-toggle="tab"><i
class="icon-coin-dollar"></i> <?php echo e(translate('payment')); ?> </a>
</li>
<!--<li><a href="#savings" data-toggle="tab"><i
class="icon-database2"></i> <?php echo e(translate('saving')); ?></a>
</li>-->
</ul>
</div>
</div>
<!-- /user details -->
</div>
</div>
</div>
<!-- /detached sidebar -->
<div class="container-detached">
<div class="content-detached">
<!-- Tab content -->
<div class="tab-content">
<div class="tab-pane fade in active" id="profile">
<div class="panel panel-white">
<div class="panel-heading">
<h6 class="panel-title"><?php echo e(translate('profile')); ?></h6>
<div class="heading-elements">
<div class="input-group-btn">
<button type="button" class="btn btn-info dropdown-toggle margin"
data-toggle="dropdown">
<?php echo e(translate('borrower statement')); ?>
<span class="fa fa-caret-down"></span></button>
<ul class="dropdown-menu" role="menu">
<li>
<a href="<?php echo e(url('loan/'.$borrower->id.'/borrower_statement/print')); ?>"
target="_blank"><i
class="icon-printer"></i> <?php echo e(translate('print statement')); ?>
</a>
</li>
<li>
<a href="<?php echo e(url('loan/'.$borrower->id.'/borrower_statement/pdf')); ?>"
target="_blank"><i
class="icon-file-pdf"></i> <?php echo e(translate('download in pdf')); ?>
</a>
</li>
<!--<li>
<a href="<?php echo e(url('loan/'.$borrower->id.'/borrower_statement/excel')); ?>"
target="_blank"><?php echo e(translate('download in excel')); ?></a></li>
<li>
<a href="<?php echo e(url('loan/'.$borrower->id.'/borrower_statement/csv')); ?>"
target="_blank"><?php echo e(translate('download in csv')); ?></a></li>-->
</ul>
</div>
</div>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<h6><b><?php echo e(translate('basic detail')); ?></b>
</h6>
<table class="table table-striped table-hover">
<tr>
<td><b><?php echo e(translate('business')); ?></b></td>
<td><?php echo e($borrower->business_name); ?></td>
</tr>
<tr>
<td><b><?php echo e(translate('working_status')); ?></b></td>
<td><?php echo e($borrower->working_status); ?></td>
</tr>
<tr>
<td><b><?php echo e(translate('dob')); ?></b></td>
<td><?php echo e($borrower->dob); ?></td>
</tr>
<tr>
<td><b><?php echo e(translate('address')); ?></b></td>
<td><?php echo e($borrower->address); ?></td>
</tr>
<tr>
<td><b><?php echo e(translate('city')); ?></b></td>
<td><?php echo e($borrower->city); ?></td>
</tr>
<tr>
<td><b><?php echo e(translate('state')); ?></b></td>
<td><?php echo e($borrower->state); ?></td>
</tr>
<tr>
<td><b><?php echo e(translate('zip')); ?></b></td>
<td><?php echo e($borrower->zip); ?></td>
</tr>
<tr>
<td><b><?php echo e(translate('country')); ?></b></td>
<td>
<?php if($borrower->country): ?>
<?php echo e($borrower->country->name); ?>
<?php endif; ?>
</td>
</tr>
</table>
</div>
<div class="col-md-6">
<h6>
<b><?php echo e(translate('contact detail')); ?></b>
</h6>
<table class="table table-striped table-hover">
<tr>
<td><b><?php echo e(translate('phone')); ?></b></td>
<td><?php echo e($borrower->phone); ?></td>
</tr>
<tr>
<td><b><?php echo e(translate('email')); ?></b></td>
<td>
<a
href="<?php echo e(url('communication/email/create?borrower_id='.$borrower->id)); ?>">
<?php echo e($borrower->email); ?>
</a>
</td>
</tr>
<tr>
<td><b><?php echo e(translate('mobile')); ?></b></td>
<td>
<a
href="<?php echo e(url('communication/sms/create?borrower_id='.$borrower->id)); ?>">
<?php echo e($borrower->mobile); ?>
</a>
</td>
</tr>
</table>
<h6>
<b><?php echo e(translate('file')); ?></b>
</h6>
<a data-toggle="collapse" data-parent="#accordion" href="#viewFiles">
<?php echo e(translate('view borrower file')); ?>
</a>
<div id="viewFiles" class="panel-collapse collapse">
<div class="panel-body">
<ul class="list-unstyled">
<?php $__currentLoopData = unserialize($borrower->files); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li>
<a href="<?php echo asset('uploads/'.$value); ?>"
target="_blank"><?php echo $value; ?></a>
</li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h6><b><?php echo e(translate('custom_field')); ?></b></h6>
<table class="table table-striped table-hover">
<?php $__currentLoopData = $custom_fields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td>
<?php if(!empty($key->custom_field)): ?>
<strong><?php echo e($key->custom_field->name); ?>:</strong>
<?php endif; ?>
</td>
<td><?php echo e($key->name); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade in " id="loans">
<div class="panel panel-white">
<div class="panel-heading">
<h3 class="panel-title"><?php echo e(translate('loan')); ?></h3>
<div class="heading-elements">
</div>
</div>
<div class="panel-body">
<div class="table-responsive">
<table id="loan-data-table" class="table table-condensed">
<thead>
<tr style="">
<th>#</th>
<th><?php echo e(translate('id')); ?></th>
<th><?php echo e(translate('principal')); ?></th>
<th><?php echo e(translate('released')); ?></th>
<th><?php echo e(translate('interest')); ?>%</th>
<th><?php echo e(translate('due')); ?></th>
<th><?php echo e(translate('paid')); ?></th>
<th><?php echo e(translate('balance')); ?></th>
<th><?php echo e(translate('status')); ?></th>
<th><?php echo e(translate('action')); ?></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $borrower->loans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<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 class="credit"><?php echo e(currency_converter($key->principal,2)); ?></td>
<td><?php echo e($key->release_date); ?></td>
<td>
<?php echo e(round($key->interest_rate)); ?>%/<?php echo e($key->interest_period); ?>
</td>
<td class="credit"><?php echo e(currency_converter(round(\App\Helpers\GeneralHelper::loan_total_due_amount($key->id)),2)); ?></td>
<td class="credit"><?php echo e(currency_converter(round(\App\Helpers\GeneralHelper::loan_total_paid($key->id)),2)); ?></td>
<td class="credit">
<?php echo e(currency_converter(round(\App\Helpers\GeneralHelper::loan_total_balance($key->id)),2)); ?>
</td>
<td>
<?php if($key->maturity_date<date("Y-m-d") && \App\Helpers\GeneralHelper::loan_total_balance($key->id)>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-info"><?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 class="text-center">
<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">
<li><a href="<?php echo e(url('loan/'.$key->id.'/show')); ?>"><i
class="fa fa-search"></i> <?php echo e(translate('detail')); ?>
</a></li>
<li><a href="<?php echo e(url('loan/'.$key->id.'/edit')); ?>"><i
class="fa fa-edit"></i> <?php echo e(translate('edit')); ?>
</a></li>
<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>
</ul>
</li>
</ul>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="tab-pane fade in " id="payments">
<div class="panel panel-white">
<div class="panel-heading">
<h3 class="panel-title"><?php echo e(translate('repayment')); ?></h3>
<div class="heading-elements">
</div>
</div>
<div class="panel-body table-responsive">
<table id="repayments-data-table"
class="table table-condensed table-hover">
<thead>
<tr>
<td>#</td>
<th>
<?php echo e(translate('collection date')); ?>
</th>
<th>
<?php echo e(translate('collected_by')); ?>
</th>
<th>
<?php echo e(translate('method')); ?>
</th>
<th>
<?php echo e(translate('amount')); ?>
</th>
<th>
<?php echo e(translate('action')); ?>
</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = \App\Models\LoanTransaction::where('borrower_id',$borrower->id)->where('transaction_type','repayment')->where('reversed',0)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index=> $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($index+1); ?></td>
<td><?php echo e($key->date); ?></td>
<td>
<?php if(!empty($key->user)): ?>
<?php echo e($key->user->first_name); ?> <?php echo e($key->user->last_name); ?>
<?php endif; ?>
</td>
<td>
<?php if(!empty($key->loan_repayment_method)): ?>
<?php echo e($key->loan_repayment_method->name); ?>
<?php endif; ?>
</td>
<td class="credit"><?php echo e(currency_converter($key->credit)); ?></td>
<td class="text-center">
<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">
<li>
<a href="<?php echo e(url('loan/transaction/'.$key->id.'/show')); ?>"><i
class="fa fa-search"></i> <?php echo e(translate('view')); ?>
</a></li>
<li>
<?php if($key->transaction_type=='repayment' && $key->reversible==1): ?>
<li>
<a href="<?php echo e(url('loan/transaction/'.$key->id.'/print')); ?>"
target="_blank"><i
class="icon-printer"></i> <?php echo e(translate('print')); ?> <?php echo e(translate('receipt')); ?>
</a></li>
<li>
<a href="<?php echo e(url('loan/transaction/'.$key->id.'/pdf')); ?>"
target="_blank"><i
class="icon-file-pdf"></i> <?php echo e(translate('pdf')); ?> <?php echo e(translate('receipt')); ?>
</a></li>
<li>
<a href="<?php echo e(url('loan/repayment/'.$key->id.'/edit')); ?>"><i
class="fa fa-edit"></i> <?php echo e(translate('edit')); ?>
</a></li>
<li>
<a href="<?php echo e(url('loan/repayment/'.$key->id.'/reverse')); ?>"
class="delete"><i
class="fa fa-minus-circle"></i> <?php echo e(translate('reverse')); ?>
</a></li>
<?php endif; ?>
</ul>
</li>
</ul>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
<div class="tab-pane fade in " id="savings"></div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('footer-scripts'); ?>
<script>
$('#loan-data-table').DataTable({
dom: '<"datatable-header"fl><"datatable-scroll"t><"datatable-footer"ip>',
autoWidth: false,
columnDefs: [{
orderable: false,
width: '100px',
targets: [8]
}]
, "order": [[0, "desc"]],
language: {
"lengthMenu": "<?php echo e(translate('lengthMenu')); ?>",
"zeroRecords": "<?php echo e(translate('zeroRecords')); ?>",
"info": "<?php echo e(translate('info')); ?>",
"infoEmpty": "<?php echo e(translate('infoEmpty')); ?>",
"search": "<?php echo e(translate('search')); ?>:",
"infoFiltered": "<?php echo e(translate('infoFiltered')); ?>",
"paginate": {
"first": "<?php echo e(translate('first')); ?>",
"last": "<?php echo e(translate('last')); ?>",
"next": "<?php echo e(translate('next')); ?>",
"previous": "<?php echo e(translate('previous')); ?>"
}
}
});
$('#repayments-data-table').DataTable({
dom: '<"datatable-header"fl><"datatable-scroll"t><"datatable-footer"ip>',
autoWidth: false,
columnDefs: [{
orderable: false,
width: '100px',
targets: [4]
}],
"order": [[0, "desc"]],
language: {
"lengthMenu": "<?php echo e(translate('lengthMenu')); ?>",
"zeroRecords": "<?php echo e(translate('zeroRecords')); ?>",
"info": "<?php echo e(translate('info')); ?>",
"infoEmpty": "<?php echo e(translate('infoEmpty')); ?>",
"search": "<?php echo e(translate('search')); ?>:",
"infoFiltered": "<?php echo e(translate('infoFiltered')); ?>",
"paginate": {
"first": "<?php echo e(translate('first')); ?>",
"last": "<?php echo e(translate('last')); ?>",
"next": "<?php echo e(translate('next')); ?>",
"previous": "<?php echo e(translate('previous')); ?>"
}
},
});
</script>
<script>
$(document).ready(function () {
$('body').addClass('has-detached-left');
$('.deletePayment').on('click', function (e) {
e.preventDefault();
var href = $(this).attr('href');
swal({
title: '<?php echo e(translate('are_you_sure')); ?>',
text: 'If you delete a payment, a fully paid loan may change status to open.',
type: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: '<?php echo e(translate('ok')); ?>',
cancelButtonText: '<?php echo e(translate('cancel')); ?>'
}).then(function () {
window.location = href;
})
});
});
</script>
<?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/borrower/show.blade.php ENDPATH**/ ?>