admin invoices for mining tax
This commit is contained in:
@@ -81,7 +81,7 @@ class MiningTaxesAdminController extends Controller
|
||||
$totalPrice += $item['amount'];
|
||||
}
|
||||
|
||||
return view('miningtax.user.display.details.invoice')->with('ores', $ores)
|
||||
return view('miningtax.admin.display.details.invoice')->with('ores', $ores)
|
||||
->with('invoice', $invoice)
|
||||
->with('totalPrice', $totalPrice);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
@extends('layouts.admin.dashb4')
|
||||
@section('content')
|
||||
<br>
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2>Invoice Details</h2><br>
|
||||
<h3>Id: {!! $invoice->invoice_id !!}</h3><br>
|
||||
<h3>Amount: {!! number_format($totalPrice, 2, ".", ",") !!} ISK</h3>
|
||||
<h3>Invoice Date: {!! $invoice->date_issued !!}</h3><br>
|
||||
<h3>Invoice Due Date: {!! $invoice->date_due !!}</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<th>Ore Name</th>
|
||||
<th>Quantity</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($ores as $name => $quantity)
|
||||
<tr>
|
||||
<td>{{ $name }}</td>
|
||||
<td>{{ $quantity }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user