Skip to content

Commit

Permalink
add latest bill
Browse files Browse the repository at this point in the history
  • Loading branch information
armanmasangkay committed Feb 21, 2022
1 parent 8058651 commit 88ac354
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions resources/views/consumer-portal/latest.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,47 @@
@section('title','Latest Bill')

@section('content')
<div class="my-2"><h2>Latest bill</h2></div>
<hr>
<div class="table-responsive">
<table class="table-bordered w-100" style="border:1px solid #e4e8ec">
<caption>Ready by ({{$transaction->getNameOfBillCreator()}})</caption>
<tr>
<td class="p-4">
<p class="text-gray">Period covered</p>
<h4>{{$transaction->period_covered}}</h4>
</td>
<td class="p-4">
<p class="text-gray">Reading Date (YYYY-MM-DD)</p>
<h4>{{$transaction->reading_date}}</h4>
</td>
</tr>
<tr>
<td class="p-4">
<p class="text-gray">Meter reading</p>
<h4>{{$transaction->reading_meter}}</h4>
</td>
<td class="p-4">
<p class="text-gray">Reading Consumption</p>
<h4>{{$transaction->reading_consumption}}</h4>
</td>
</tr>
<tr>
<td class="p-4">
<p class="text-gray">Total</p>
<h4>P {{$transaction->getBillingAmountFormatted()}}</h4>
</td>
<td class="p-4">
<p class="text-gray">Balance</p>
<h4>P {{$transaction->getOutstandingBalanceFormatted()}}</h4>
</td>
</tr>



</table>
</div>



@endsection

0 comments on commit 88ac354

Please sign in to comment.