close #349 Fixed: Transfer added edit and delete feature

This commit is contained in:
cuneytsenturk
2018-05-21 16:47:35 +03:00
parent 3fe1429313
commit c57f3936ca
3 changed files with 35 additions and 12 deletions

View File

@ -32,19 +32,33 @@
<table class="table table-striped table-hover" id="tbl-transfers">
<thead>
<tr>
<th class="col-md-3">@sortablelink('payment.paid_at', trans('general.date'))</th>
<th class="col-md-2">@sortablelink('payment.paid_at', trans('general.date'))</th>
<th class="col-md-3">@sortablelink('payment.name', trans('transfers.from_account'))</th>
<th class="col-md-3">@sortablelink('revenue.name', trans('transfers.to_account'))</th>
<th class="col-md-3 text-right amount-space">@sortablelink('payment.amount', trans('general.amount'))</th>
<th class="col-md-1 text-center">{{ trans('general.actions') }}</th>
</tr>
</thead>
<tbody>
@foreach($transfers as $item)
<tr>
<td>{{ Date::parse($item->paid_at)->format($date_format) }}</td>
<td><a href="{{ url('banking/transfers/' . $item->id . '/edit') }}">{{ Date::parse($item->paid_at)->format($date_format) }}</a></td>
<td>{{ $item->from_account }}</td>
<td>{{ $item->to_account }}</td>
<td class="text-right amount-space">@money($item->amount, $item->currency_code, true)</td>
<td class="text-center">
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" data-toggle-position="left" aria-expanded="false">
<i class="fa fa-ellipsis-h"></i>
</button>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="{{ url('banking/transfers/' . $item->id . '/edit') }}">{{ trans('general.edit') }}</a></li>
@permission('delete-banking-transfers')
<li>{!! Form::deleteLink($item, 'banking/transfers') !!}</li>
@endpermission
</ul>
</div>
</td>
</tr>
@endforeach
</tbody>