osb/spark/resources/views/settings/invoices/invoice-list.blade.php
2017-11-03 16:26:07 +11:00

39 lines
1.4 KiB
PHP

<spark-invoice-list :user="user" :team="team"
:invoices="invoices" :billable-type="billableType" inline-template>
<div class="panel panel-default">
<div class="panel-heading">Invoices</div>
<div class="panel-body">
<table class="table table-borderless m-b-none">
<thead>
</thead>
<tbody>
<tr v-for="invoice in invoices">
<!-- Invoice Date -->
<td>
<div class="btn-table-align">
<strong>@{{ invoice.created_at | date }}</strong>
</div>
</td>
<!-- Invoice Total -->
<td>
<div class="btn-table-align">@{{ invoice.total | currency }}</div>
</td>
<!-- Invoice Download Button -->
<td class="text-right">
<a :href="downloadUrlFor(invoice)">
<button class="btn btn-default">
<i class="fa fa-btn fa-file-pdf-o"></i>Download PDF
</button>
</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</spark-invoice-list>