|
|
|
@ -5,28 +5,29 @@ |
|
|
|
@section('content') |
|
|
|
<h1 class="page-header"> |
|
|
|
<div class="pull-right"> |
|
|
|
{!! link_to_route('payments.create', trans('payment.create'), [], ['class'=>'btn btn-success']) !!} |
|
|
|
{!! link_to_route('payments.create', trans('payment.create'), [], ['class' => 'btn btn-success']) !!} |
|
|
|
</div> |
|
|
|
{{ trans('payment.payments') }} <small>{{ $payments->total() }} {{ trans('payment.found') }}</small> |
|
|
|
</h1> |
|
|
|
<div class="well well-sm text-right"> |
|
|
|
<div class="pull-left hidden-xs">{!! str_replace('/?', '?', $payments->appends(Request::except('page'))->render()) !!}</div> |
|
|
|
{{ Form::open(['method'=>'get','class'=>'form-inline']) }} |
|
|
|
{{ Form::text('q', request('q'), ['class'=>'form-control index-search-field','placeholder' => trans('payment.search')]) }} |
|
|
|
<div class="pull-left hidden-xs">{{ $payments->appends(Request::except('page'))->render() }}</div> |
|
|
|
{{ Form::open(['method' => 'get', 'class' => 'form-inline']) }} |
|
|
|
{{ Form::text('q', request('q'), ['class' => 'form-control index-search-field', 'placeholder' => trans('payment.search')]) }} |
|
|
|
{{ Form::select('partner_id', ['' => '-- '.trans('payment.customer').' --'] + $partnersList, request('partner_id'), ['class' => 'form-control', 'id' => 'partner_id']) }} |
|
|
|
{{ Form::submit(trans('app.search'), ['class' => 'btn btn-info btn-sm']) }} |
|
|
|
{{ link_to_route('payments.index','Reset',[],['class' => 'btn btn-default btn-sm']) }} |
|
|
|
{{ link_to_route('payments.index', trans('app.reset'), [], ['class' => 'btn btn-default btn-sm']) }} |
|
|
|
{{ Form::close() }} |
|
|
|
</div> |
|
|
|
<table class="table table-condensed"> |
|
|
|
<div class="panel panel-default"> |
|
|
|
<table class="table"> |
|
|
|
<thead> |
|
|
|
<th>{{ trans('app.table_no') }}</th> |
|
|
|
<th class="col-md-3">{{ trans('payment.project') }}</th> |
|
|
|
<th class="col-md-1 text-center">{{ trans('app.date') }}</th> |
|
|
|
<th class="col-md-2 text-right">{{ trans('payment.amount') }}</th> |
|
|
|
<th class="col-md-3">{{ trans('payment.description') }}</th> |
|
|
|
<th class="col-md-1">{{ trans('payment.customer') }}</th> |
|
|
|
<th class="col-md-2">{{ trans('app.action') }}</th> |
|
|
|
<th class="col-md-2 text-right">{{ trans('payment.amount') }}</th> |
|
|
|
<th class="col-md-4">{{ trans('payment.description') }}</th> |
|
|
|
<th class="col-md-1 text-center">{{ trans('app.action') }}</th> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
@forelse($payments as $key => $payment) |
|
|
|
@ -42,22 +43,23 @@ |
|
|
|
<strong class="text-success">{{ $payment->type() }}</strong> |
|
|
|
</td> |
|
|
|
<td class="text-center">{{ $payment->date }}</td> |
|
|
|
<td>{{ $payment->partner->name }}</td> |
|
|
|
<td class="text-right">{{ $payment->present()->amount }}</td> |
|
|
|
<td>{{ $payment->description }}</td> |
|
|
|
<td>{{ $payment->partner->name }}</td> |
|
|
|
<td> |
|
|
|
{!! link_to_route('payments.show', trans('app.show'), [$payment->id], ['class'=>'btn btn-info btn-xs']) !!} |
|
|
|
{!! link_to_route('payments.edit', trans('app.edit'), [$payment->id], ['class'=>'btn btn-warning btn-xs']) !!} |
|
|
|
<td class="text-center"> |
|
|
|
{!! html_link_to_route('payments.show', '', [$payment->id], ['icon' => 'search', 'class' => 'btn btn-info btn-xs', 'title' => trans('app.show')]) !!} |
|
|
|
{!! html_link_to_route('payments.pdf', '', [$payment->id], ['icon' => 'print', 'class' => 'btn btn-warning btn-xs', 'title' => trans('app.print')]) !!} |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
@empty |
|
|
|
<tr> |
|
|
|
<td colspan="5">{{ trans('payment.not_found') }}</td> |
|
|
|
<td colspan="7">{{ trans('payment.not_found') }}</td> |
|
|
|
</tr> |
|
|
|
@endforelse |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
{!! str_replace('/?', '?', $payments->appends(Request::except('page'))->render()) !!} |
|
|
|
</div> |
|
|
|
{{ $payments->appends(Request::except('page'))->render() }} |
|
|
|
@endsection |
|
|
|
|
|
|
|
@section('ext_css') |
|
|
|
|