69 lines
3.0 KiB
PHP
69 lines
3.0 KiB
PHP
@extends('layouts.admin.b4')
|
|
@section('content')
|
|
<br>
|
|
<div class="container-fluid">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h2>Invoice Status</h2>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="column">
|
|
{{ $invoices->links() }}
|
|
</div>
|
|
<div class="column">
|
|
<div class="container">
|
|
{!! Form::open(['action' => 'MiningTaxes\MiningTaxesAdminController@SearchUnpaidInvoice', 'method' => 'POST']) !!}
|
|
<div class="form-group">
|
|
{{ Form::text('q', '', ['class' => 'form-control']) }}
|
|
{{ Form::submit('Search', ['class' => 'btn btn-primary']) }}
|
|
</div>
|
|
{!! Form::close() !!}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<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>
|
|
@if(isset($invoices))
|
|
@foreach($invoices as $invoice)
|
|
<tr>
|
|
<td>{{ $invoice->character_name }}</td>
|
|
<td><a href="/miningtax/admin/display/detail/invoice/{{ $invoice->invoice_id }}">{{ $invoice->invoice_id }}</a></td>
|
|
<td>{{ number_format($invoice->invoice_amount, 2, ".", ",") }}</td>
|
|
<td>{{ $invoice->date_issued }}</td>
|
|
<td>{{ $invoice->date_due }}</td>
|
|
<td>{{ $invoice->status }}</td>
|
|
<td>
|
|
{!! Form::open(['action' => 'MiningTaxes\MiningTaxesAdminController@UpdateInvoice', 'method' => 'POST']) !!}
|
|
{{ Form::hidden('invoiceId', $invoice->invoice_id) }}
|
|
{{ Form::label('status', 'Paid') }}
|
|
{{ Form::radio('status', 'Paid', true) }}
|
|
{{ Form::label('status', 'Deferred') }}
|
|
{{ Form::radio('status', 'Deferred') }}
|
|
{{ Form::label('status', 'Delete') }}
|
|
{{ Form::radio('status', 'Deleted') }}
|
|
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
|
|
{!! Form::close() !!}
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@endif
|
|
</tbody>
|
|
</table>
|
|
{{ $invoices->links() }}
|
|
<br>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection |