invoice update

This commit is contained in:
2021-05-13 04:55:06 +09:00
parent 3d054535db
commit b44ebfc0b6

View File

@@ -5,21 +5,20 @@
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<h2>Invoice Details</h2><br> <h2>Invoice Details</h2><br>
<h3>Id: {!! $invoice !!}</h3> <h3>Id: {!! $invoice !!}</h3><br>
<h3>Amount: {!! $totalPrice !!}</h3>
</div> </div>
<div class="card-body"> <div class="card-body">
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
<thead> <thead>
<th>Ore Name</th> <th>Ore Name</th>
<th>Quantity</th> <th>Quantity</th>
<th>Amount</th>
</thead> </thead>
<tbody> <tbody>
@foreach($ores as $ore) @foreach($ores as $name => $quantity)
<tr> <tr>
<td>{!! $ore['ore_name'] !!}</td> <td>{{ $name }}</td>
<td>{!! $ore['quantity'] !!}</td> <td>{{ $quantity }}</td>
<td>{!! number_format($ore['amount'], 2, ".", ",") !!} ISK </td>
</tr> </tr>
@endforeach @endforeach
</tbody> </tbody>