You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.7 KiB
41 lines
1.7 KiB
@extends('layouts.app')
|
|
|
|
@section('title', trans('transaction.list'))
|
|
|
|
@section('content')
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading"><h3 class="panel-title">{{ trans('transaction.list') }}</h3></div>
|
|
<div class="panel-body">
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ trans('app.table_no') }}</th>
|
|
<th>{{ trans('transaction.invoice_no') }}</th>
|
|
<th>{{ trans('app.date') }}</th>
|
|
<th>{{ trans('transaction.customer') }}</th>
|
|
<th>{{ trans('transaction.items_count') }}</th>
|
|
<th class="text-right">{{ trans('transaction.total') }}</th>
|
|
<th>{{ trans('app.action') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse($transactions as $key => $transaction)
|
|
<tr>
|
|
<td>{{ 1 + $key }}</td>
|
|
<td>{{ $transaction->invoice_no }}</td>
|
|
<td>{{ $transaction->created_at->format('Y-m-d') }}</td>
|
|
<td>{{ $transaction->customer['name'] }}</td>
|
|
<td>{{ $transaction->items_count }}</td>
|
|
<td class="text-right">{{ formatRp($transaction->total) }}</td>
|
|
<td>
|
|
{{ link_to_route('transactions.show', trans('app.show'), $transaction->invoice_no) }} |
|
|
{{ link_to_route('transactions.pdf', trans('app.print'), $transaction->invoice_no) }}
|
|
</td>
|
|
</tr>
|
|
@empty
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@endsection
|