views for mining taxes. next up is routes in the next update

This commit is contained in:
2021-03-06 19:10:59 +09:00
parent 3bd1b2053b
commit 5c062ebe50
10 changed files with 400 additions and 9 deletions

View File

@@ -0,0 +1,34 @@
@extends('layouts.admin.dashb4')
@section('content')
<br>
<div class="container-fluid">
<div class="card">
<div class="card-header">
<h2>Paid Invoices</h2>
</div>
<div class="card-body">
<table class="table table-striped table-bordered">
<thead>
<th>Character</th>
<th>Invoice Id</th>
<th>Amount</th>
<th>Date Issued</th>
<th>Date Due</th>
</thead>
<tbody>
@foreach($invoices as $invoice)
<tr>
<td>{{ $invoice->character_name }}</td>
<td>{{ $invoice->invoice_id }}</td>
<td>{{ $invoice->amount }}</td>
<td>{{ $invoice->date_issued }}</td>
<td>{{ $invoice->date_due }}</td>
</tr>
@endforeach
</tbody>
</table>
{{ $invoices->links() }}
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,47 @@
@extends('layouts.admin.dashb4')
@section('content')
<br>
<div class="container-fluid">
<div class="card">
<div class="card-header">
<h2>Invoice Status</h2>
</div>
<div class="card-body">
<table class="table table-striped table-bordered">
<thead>
<th>Character</th>
<th>Invoice Id</th>
<th>Amount</th>
<th>Date Issued</th>
<th>Date Due</th>
<th>Status</th>
<th>Update</th>
</thead>
<tbody>
@foreach($invoices as $invoice)
<tr>
<td>{{ $invoice->character_name }}</td>
<td>{{ $invoice->invoice_id }}</td>
<td>{{ $invoice->amount }}</td>
<td>{{ $invoice->date_issued }}</td>
<td>{{ $invoice->date_due }}</td>
<td>{{ $invoice->status }}</td>
<td>
{!! Form::open(['action' => 'MiningTax\MiningTaxesAdminController@UpdateInvoice', 'method' => 'POST']) !!}
{{ Form::hidden('invoiceId', $invoice->invoice_id, ['class' => 'form-control']) }}
{{ Form::label('status', Paid) }}
{{ Form::radio('status', 'Paid', ['class' => 'form-control']) }}
{{ Form::label('status', 'Delete') }}
{{ Form::radio('status', 'Delete', ['class' => 'form-control']) }}
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</tbody>
</table>
{{ $invoices->links() }}
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,109 @@
@extends('layouts.user.dashb4')
@section('content')
<div class="container">
<div class="card">
<div class="card-header">
<h2>Unpaid Invoices</h2><br>
<h3>Amount: {!! $unpaidAmount !!}</h3>
</div>
<div class="card-body">
<table class="table table-striped table-bordered">
<thead>
<th>Invoice Id</th>
<th>Amount</th>
<th>Due Date</th>
</thead>
<tbody>
@foreach($unpaid as $un)
<tr>
<td>{{ $un->invoice_id }}</td>
<td>{{ $un->amount }}</td>
<td>{{ $un->due_date }}</td>
</tr>
@endforeach()
</tbody>
</table>
{{ $unpaid->links() }}
</div>
</div>
</div>
<div class="container">
<div class="card">
<div class="card-header">
<h2>Paid Invoices</h2><br>
<h3>Amount: {!! $paidAmount !!}</h3>
</div>
<div class="card-body">
<table class="table table-striped table-bordered">
<thead>
<th>Invoice Id</th>
<th>Amount</th>
<th>Due Date</th>
</thead>
<tbody>
@foreach($paid as $p)
<tr>
<td>{{ $p->invoice_id }}</td>
<td>{{ $p->amount }}</td>
<td>{{ $p->due_date }}</td>
</tr>
@endforeach
</tbody>
</table>
{{ $paid->links() }}
</div>
</div>
</div>
<div class="container">
<div class="card">
<div class="card-header">
<h2>Late Invoices</h2>
</div>
<div class="card-body">
<table class="table table-striped table-bordered">
<thead>
<th>Invoice Id</th>
<th>Amount</th>
<th>Due Date</th>
</thead>
<tbody>
@foreach($late as $l)
<tr>
<td>{{ $l->invoice_id }}</td>
<td>{{ $l->amount }}</td>
<td>{{ $l->due_date }}</td>
</tr>
@endforeach
</tbody>
</table>
{{ $late->links() }}
</div>
</div>
</div>
<div class="container">
<div class="card">
<div class="card-header">
<h2>Deferred Invoices</h2>
</div>
<div class="card-body">
<table class="table table-striped table-bordered">
<thead>
<th>Invoice Id</th>
<th>Amount</th>
<th>Due Date</th>
</thead>
<tbody>
@foreach($deferred as $d)
<tr>
<td>{{ $d->invoice_id }}</td>
<td>{{ $d->amount }}</td>
<td>{{ $d->due_date }}</td>
</tr>
@endforeach
</tbody>
</table>
{{ $deferred->links() }}
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,49 @@
@extends('layouts.user.dashb4')
@section('content')
<br>
<div class="container-fluid">
<div class="row">
<div class="container">
<h2>Moon Mining Ledgers</h2>
</div>
</div>
<br>
<ul class="nav nav-pills">
@foreach($structures as $structure)
<li class="nav-item">
<a class="nav-link" data-toggle="pill" href="#W4RP-{{$structure}}">{{$structure}}</a>
</li>
@endforeach
</ul>
<br>
<div class="tab-content">
@foreach($structures as $structure)
<div id="W4RP-{{$structure}}" class="tab-pane fade">
<table class="table table-striped table-bordered">
<thead>
<th>Structure</th>
<th>Character</th>
<th>Corp Ticker</th>
<th>Ore</th>
<th>Quantity</th>
<th>Updated</th>
</thead>
<tbody>
@foreach($miningLedgers as $ledger)
@if($ledger['structure'] == $structure['name'])
<tr>
<td>{{ $ledger['structure'] }}</td>
<td>{{ $ledger['character'] }}</td>
<td>{{ $ledger['corpTicker'] }}</td>
<td>{{ $ledger['ore'] }}</td>
<td>{{ $ledger['quantity'] }}</td>
<td>{{ $ledger['updated'] }}</td>
</tr>
@endif
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,31 @@
@extends('layouts.user.dashb4')
@section('content')
<br>
<div class="container">
<div class="card">
<div class="card-header">
<h2>Upcoming Extractions</h2>
</div>
<div class="card-body">
<table class="table table-striped table-bordered">
<thead>
<th>Structure Name</th>
<th>Start Time</th>
<th>Arrival Time</th>
<th>Decay Time</th>
</thead>
<tbody>
@foreach($extractions as $ex)
<tr>
<td>{{ $ex->structure_name }}</td>
<td>{{ $ex->start_time }}</td>
<td>{{ $ex->arrival_time }}</td>
<td>{{ $ex->decay_time }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection