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.
55 lines
2.5 KiB
55 lines
2.5 KiB
@extends('layouts.app')
|
|
|
|
@section('title', trans('transaction.list'))
|
|
|
|
@section('content')
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
{{ Form::open(['method' => 'get','class' => 'form-inline pull-right']) }}
|
|
{!! FormField::text('q', ['value' => request('q'), 'label' => trans('transaction.search'), 'class' => 'input-sm']) !!}
|
|
{{ Form::submit(trans('transaction.search'), ['class' => 'btn btn-sm']) }}
|
|
{{ link_to_route('transactions.index', trans('app.reset')) }}
|
|
{{ Form::close() }}
|
|
<h3 class="panel-title">
|
|
{{ trans('transaction.list') }} |
|
|
{{ trans('app.total') }} : {{ $transactions->total() }} {{ trans('transaction.transaction') }}
|
|
</h3><div class="clearfix"></div>
|
|
</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 class="text-center">{{ 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'] }}
|
|
{{ $transaction->customer['phone'] ? '(' . $transaction->customer['phone'] . ')' : '' }}
|
|
</td>
|
|
<td>{{ $transaction->items_count }}</td>
|
|
<td class="text-right">{{ formatRp($transaction->total) }}</td>
|
|
<td class="text-center">
|
|
{{ 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>{!! str_replace('/?', '?', $transactions->appends(Request::except('page'))->render()) !!}</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|