Browse Source

Update invoice list page

pull/18/head
Nafies Luthfi 7 years ago
parent
commit
797b241049
  1. 2
      app/Http/Controllers/Invoices/InvoicesController.php
  2. 8
      resources/views/invoices/index.blade.php

2
app/Http/Controllers/Invoices/InvoicesController.php

@ -16,7 +16,7 @@ class InvoicesController extends Controller
{
public function index()
{
$invoices = Invoice::paginate();
$invoices = Invoice::orderBy('date', 'desc')->paginate();
return view('invoices.index', compact('invoices'));
}

8
resources/views/invoices/index.blade.php

@ -19,10 +19,10 @@
<table class="table table-condensed">
<thead>
<th class="text-center">{{ trans('app.table_no') }}</th>
<th class="col-md-2 text-center">{{ trans('invoice.number') }}</th>
<th class="col-md-2 text-center">{{ trans('app.date') }}</th>
<th class="col-md-2">{{ trans('project.project') }}</th>
<th class="col-md-2">{{ trans('invoice.customer') }}</th>
<th class="col-md-1 text-center">{{ trans('invoice.number') }}</th>
<th class="col-md-1 text-center">{{ trans('app.date') }}</th>
<th class="col-md-3">{{ trans('project.project') }}</th>
<th class="col-md-3">{{ trans('invoice.customer') }}</th>
<th class="col-md-2 text-right">{{ trans('invoice.amount') }}</th>
<th class="col-md-2 text-center">{{ trans('app.action') }}</th>
</thead>

Loading…
Cancel
Save