| 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/92bd90900469d01c83acde14a7f381de6171b87c.php |
<link rel="stylesheet" href="<?php echo e(asset('kh-fonts/kh-fonts.css')); ?>">
<style>
div, span {
font-size: 11px;
}
.header{
width:100%;
padding:5px;
}
.header .logo{
width:20%;
float: left;
margin:0 auto;
}
.header .main-header{
width:60%;
padding:10px;
float: left;
margin:0 auto;
}
img {
height:70px;
}
.main-title h4 {
margin:0px;
}
.main-title {
width:100%;
height: 20px;
float: left;
text-align: left;
}
.title{
clear:both;
}
.title .column1, .title .column2, .title .column3 {
float: left;
}
.content {
clear:both;
}
tr {
border: 1px solid #555;
}
.table-bordered th, td {
text-align: center;
padding: 10px 10px;
width: 20%;
}
.none-table th, td {
text-align: center;
padding: 2px 3px;
}
.table-bordered tr th:nth-child(1) {
width:5% !important;
}
.row{
clear: both;
}
.col-4 {
width: 29.3333%;
height: 150px;
float: left;
border:1px solid #000;
margin-right: 5px;
padding:10px;
}
.table-bordered {
border: 1px solid #ddd;
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
border: 1px solid #ddd;
}
.none-table, .table-bordered th{
line-height: 10px;
font-size: 11px;
}
.row {
clear:both;
}
.header-table tr th {
text-align: left !important;
}
</style>
<div class="main">
<div class="header row">
<div class="logo">
<?php if(!empty(\App\Models\Setting::where('setting_key','company_logo')->first()->setting_value)): ?>
<img src="<?php echo e(asset('uploads/'.\App\Models\Setting::where('setting_key','company_logo')->first()->setting_value)); ?>"
class="img-responsive"/>
<?php endif; ?>
</div>
<div class="main-header">
<img src="<?php echo e(asset('uploads/receipt-header.jpg')); ?>"
class="img-responsive"/>
</div>
</div>
<div class="title row">
<div style="width:100%;text-align: center;">
<h2 style="font-size: 25px;">តារាងបង់ប្រាក់ </h2>
</div>
</div>
<div class="row">
<table style="border:none; " class="none-table header-table">
<tr>
<th> លេខអតិថិជន: </th>
<th><?php echo e(substr('0000'.$loan->borrower->id, strlen($loan->borrower->id)<=5?-5:-(strlen($loan->borrower->id)))); ?></th>
<th> អតិថិជន: </th>
<th> <?php echo e($loan->borrower->first_name); ?> <?php echo e($loan->borrower->last_name); ?> </th>
</tr>
<tr>
<th> ភេទ: </th>
<th><?php echo e($loan->borrower->gender=="Male"?"ប្រុស":"ស្រី"); ?></th>
<th> លេខទូរស័ព្ទ: </th>
<th> <?php echo e($loan->borrower->phone); ?> </th>
</tr>
<tr>
<th> របៀបបង់ប្រាក់: </th>
<th>
<?php if($loan->interest_method=="interest_only"): ?>
បង់តែការប្រាក់
<?php elseif($loan->interest_method=="flat_rate"): ?>
ការប្រាក់ថេរ
<?php elseif($loan->interest_method=="declining_balance_equal_principal"): ?>
Declining balance equal principal
<?php elseif($loan->interest_method=="declining_balance_equal_installments"): ?>
Declining balance equal installments
<?php endif; ?>
</th>
<th> ទឹកប្រាក់យក: </th>
<th><?php echo e(currency_converter($loan->principal, 2)); ?> </th>
</tr>
<tr>
<th> អត្រាការប្រាក់: </th>
<th><?php echo e(number_format($loan->interest_rate, 2)); ?>% </th>
<th> ចំនួនកាលវិភាគ: </th>
<?php
$types = ["day"=> "ថ្ងៃ", "week"=>"សប្តាហ៍", "month"=>"ខែ", "year"=>"ឆ្នាំ"]
?>
<th><?php echo e($loan->loan_duration); ?> <?php echo e($types[$loan->loan_duration_type]); ?> </th>
</tr>
<tr>
<th> កាលបរិច្ឆេទកម្ចី: </th>
<th><?php echo e($loan->release_date); ?> </th>
<th> កាលបរិច្ឆេទបញ្ចប់កម្ចី: </th>
<th><?php echo e($loan->schedules->last()->due_date); ?> </th>
</tr>
<tr>
<th>
លេខទូរស័ព្ទក្រុមហ៊ុន:
</th>
<th colspan="3">
<?php echo e(\App\Models\Setting::where('setting_key','company_phone')->first()->setting_value); ?>
</th>
</tr>
</table>
</div>
<div class="row">
<table class="first table table-bordered" style="border-collapse: collapse">
<thead>
<tr style=" background-color: #ffead7 !important;">
<th style="width:2%">ល.រ</th>
<th>កាលបរិច្ឆេទ</th>
<th>ការប្រាក់</th>
<th>ប្រាក់ដើម</th>
<th>សរុប</th>
<th style="width:30%"> សមតុល្យប្រាក់ដើម</th>
</tr>
</thead>
<tbody>
<?php
$index=1 ;
?>
<?php $__currentLoopData = $loan->schedules->where("description", "Repayment"); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $schedule): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td style="width:2%"><?php echo e($index); ?></td>
<td><?php echo e($schedule->due_date); ?></td>
<td><?php echo e(currency_converter($schedule->interest, 2)); ?></td>
<td><?php echo e(currency_converter($schedule->principal, 2)); ?></td>
<td><?php echo e(currency_converter($schedule->due, 2)); ?></td>
<td><?php echo e(currency_converter($schedule->principal_balance, 2)); ?></td>
</tr>
<?php $index++; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr style="font-weight: bold;">
<td colspan="2"> សរុប </td>
<td><?php echo e(currency_converter($loan->schedules->where("description", "Repayment")->sum("interest"))); ?></td>
<td><?php echo e(currency_converter($loan->schedules->where("description", "Repayment")->sum("principal"))); ?></td>
<td><?php echo e(currency_converter($loan->schedules->where("description", "Repayment")->sum("due"))); ?></td>
<td><?php echo e(currency_converter($loan->schedules->where("description", "Repayment")->last()->principal_balance )); ?></td>
</tr>
</tbody>
</table>
</div>
<div class="row" style="margin-top:70px;font-weight: bold;">
<div style="width:50%;float:left;text-align: center;">
ស្នាមមេដៃអតិថិជន
<br/><br/><br/><br/><br/><br/><br/><br/>
.....................................................
</div>
<div style="width:50%;float:left;text-align: center;">
<?php
// $mc = array("jan"=>"Janvier","feb"=>"Février", "mar");
$months = array('Jan'=>"មករា",'Feb'=>"កុម្ភ:",'Mar'=>"មីនា",'Apr'=>"មេសា",'May'=>"ឧសភា",'Jun'=>"មិថុនា",'Jul'=>"កក្កដា",'Aug'=>"សីហា",'Sep'=>"កញ្ញា",'Oct'=>"តុលា",'Nov'=>"វិច្ឆិកា",'Dec'=>"ធ្នូ");
?>
ថ្ងៃទី <?php echo e(date("d")); ?> ខែ <?php echo e($months[date('M')]); ?> ឆ្នាំ <?php echo e(date('Y')); ?> <br/>
ត្រាក្រុមហ៊ុន
<br/><br/><br/><br/><br/><br/>
......................................................
</div>
</div>
</div>
<script>
window.onload = function () {
window.print();
}
</script>
<?php /**PATH /var/www/html/thb_loan_system/resources/views/loan/print_schedule.blade.php ENDPATH**/ ?>