| Path : /var/www/html/usd_loan_system/resources/views/saving/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //var/www/html/usd_loan_system/resources/views/saving/print.blade.php |
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ $saving->borrower->title }} {{ $saving->borrower->first_name }} {{ $saving->borrower->last_name }}</title>
<link rel="stylesheet" href="{{ asset('assets/bootstrap/css/bootstrap.min.css') }}">
<!-- Theme style -->
<link rel="stylesheet" href="{{ asset('assets/dist/css/AdminLTE.min.css') }}">
<style type="text/css" media="print">
@page {
size: auto; /* auto is the initial value */
margin: 0mm; /* this affects the margin in the printer settings */
}
html {
background-color: #FFFFFF;
margin: 0px; /* this affects the margin on the html before sending to printer */
}
body {
margin: 10mm 10mm 10mm 10mm; /* margin you want for the content */
}
</style>
</head>
<body>
<div class="wrapper">
<!-- Main content -->
<section class="invoice">
<!-- title row -->
<div class="row">
<div class="col-xs-12">
</div>
<div class="col-xs-12">
<div class="text-center">
<h2 class="page-header">
{{\App\Models\Setting::where('setting_key','company_name')->first()->setting_value}}
<small class="pull-right"></small>
</h2>
<h4>{{translate('saving account statement')}}</h4>
<strong>{{translate('date')}}: </strong>{{date("Y-m-d")}}<br><br>
</div>
<br>
</div>
<!-- /.col -->
</div>
<!-- info row -->
<div class="row invoice-info">
<div class="col-sm-6">
<address>
<b>{{ $saving->borrower->title }} {{ $saving->borrower->first_name }} {{ $saving->borrower->last_name }}</b><br>
</address>
</div>
</div>
<!-- /.row -->
<!-- Table row -->
<div class="row">
<div class="col-xs-12 table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>{{translate('account')}}#</th>
<th>{{translate('product')}}</th>
<th>{{translate('minimum balance')}}</th>
<th>{{translate('interest_rate_per_annum')}}</th>
<th>{{translate('interest_posting_frequency')}}</th>
<th style="text-align:right">{{translate('current balance')}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{$saving->id}}</td>
<td>
@if(!empty($saving->savings_product))
{{ $saving->savings_product->name }}
@endif
</td>
<td>{{$saving->savings_product->minimum_balance}}</td>
<td>{{$saving->savings_product->interest_rate}}</td>
<td>
@if($saving->savings_product->interest_posting==1)
{{translate('every_1_month')}}
@endif
@if($saving->savings_product->interest_posting==2)
{{translate('every_2_month')}}
@endif
@if($saving->savings_product->interest_posting==3)
{{translate('every_3_month')}}
@endif
@if($saving->savings_product->interest_posting==4)
{{translate('every_4_month')}}
@endif
@if($saving->savings_product->interest_posting==5)
{{translate('every_6_month')}}
@endif
@if($saving->savings_product->interest_posting==6)
{{translate('every_12_month')}}
@endif
</td>
<td style="text-align:right">
<b>{{round(\App\Helpers\GeneralHelper::savings_account_balance($saving->id))}}</b></td>
</tr>
</tbody>
</table>
<table class="table table-striped">
<thead>
<tr>
<th>
{{translate('id')}}
</th>
<th>
{{translate('date')}}
</th>
<th>
{{translate('submitted on')}}
</th>
<th>
{{translate('type')}}
</th>
<th>
{{translate('debit')}}
</th>
<th>
{{translate('credit')}}
</th>
<th>
{{translate('balance')}}
</th>
<th>
{{translate('detail')}}
</th>
</tr>
</thead>
<tbody>
<?php
$balance = 0;
?>
@foreach(\App\Models\SavingTransaction::where('savings_id',$saving->id)->whereIn('reversal_type',['user','none'])->orderBy('date', 'asc')->orderBy('time',
'asc')->get() as $key)
<?php
$balance = $balance + ($key->credit - $key->debit);
?>
<tr>
<td>{{$key->id}}</td>
<td>{{$key->date}} {{$key->time}}</td>
<td>{{$key->created_at}}</td>
<td>
@if($key->type=='deposit')
{{translate('deposit')}}
@endif
@if($key->type=='withdrawal')
{{translate('withdrawal')}}
@endif
@if($key->type=='bank_fees')
{{translate('charge')}}
@endif
@if($key->type=='interest')
{{translate('interest')}}
@endif
@if($key->type=='dividend')
{{translate('dividend')}}
@endif
@if($key->type=='transfer')
{{translate('transfer')}}
@endif
@if($key->type=='transfer_fund')
{{translate('transfer')}}
@endif
@if($key->type=='transfer_loan')
{{translate('transfer')}}
@endif
@if($key->type=='guarantee')
{{translate('on hold')}}
@endif
@if($key->reversed==1)
@if($key->reversal_type=="user")
<span class="text-danger"><b>({{translate('user reversed')}}
)</b></span>
@endif
@if($key->reversal_type=="system")
<span class="text-danger"><b>({{translate('system reversed')}}
)</b></span>
@endif
@endif
</td>
<td>{{currency_converter($key->debit)}}</td>
<td>{{currency_converter($key->credit)}}</td>
<td>{{currency_converter($balance)}}</td>
<td>{{$key->receipt}}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</section>
</div>
<script>
window.onload = function () {
window.print();
}
</script>
</body>
</html>