Browse Source
Add invoice delete feature with deletation confirm page
Add invoice delete feature with deletation confirm page
Restructure invoice detail page to invoice detail view partialpull/3/head
5 changed files with 93 additions and 15 deletions
-
16app/Http/Controllers/Invoices/InvoicesController.php
-
37resources/views/invoices/edit.blade.php
-
12resources/views/invoices/partials/detail.blade.php
-
13resources/views/invoices/show.blade.php
-
30tests/Feature/Invoices/ManageInvoicesTest.php
@ -0,0 +1,12 @@ |
|||
<table class="table"> |
|||
<tbody> |
|||
<tr><th>{{ trans('invoice.number') }}</th><td class="text-primary strong">{{ $invoice->number }}</td></tr> |
|||
<tr><th>{{ trans('invoice.date') }}</th><td>{{ $invoice->date }}</td></tr> |
|||
<tr><th>{{ trans('invoice.due_date') }}</th><td>{{ $invoice->due_date }}</td></tr> |
|||
<tr><th>{{ trans('invoice.project') }}</th><td>{{ $invoice->project->nameLink() }}</td></tr> |
|||
<tr><th>{{ trans('invoice.customer') }}</th><td>{{ $invoice->project->customer->nameLink() }}</td></tr> |
|||
<tr><th>{{ trans('invoice.items_count') }}</th><td>{{ $invoice->items_count }}</td></tr> |
|||
<tr><th>{{ trans('invoice.creator') }}</th><td>{{ $invoice->creator->name }}</td></tr> |
|||
<tr><th>{{ trans('invoice.amount') }}</th><td class="text-right strong">{{ formatRp($invoice->amount) }}</td></tr> |
|||
</tbody> |
|||
</table> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue