admin invoices for mining tax

This commit is contained in:
2021-05-31 21:20:36 +09:00
parent 8f23d0a1b0
commit 96f84d69e2
2 changed files with 34 additions and 3 deletions

View File

@@ -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);
}

View File

@@ -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