2019-11-16 10:21:14 +03:00
|
|
|
@extends('layouts.portal')
|
|
|
|
|
2019-11-30 02:08:25 +03:00
|
|
|
@section('title', trans_choice('general.payments', 2))
|
2019-11-16 10:21:14 +03:00
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header border-bottom-0">
|
|
|
|
{!! Form::open([
|
|
|
|
'route' => 'portal.payments.index',
|
|
|
|
'role' => 'form',
|
|
|
|
'method' => 'GET',
|
|
|
|
'class' => 'mb-0'
|
|
|
|
]) !!}
|
|
|
|
|
2020-01-03 14:43:12 +03:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 d-flex align-items-center">
|
|
|
|
<span class="font-weight-400 d-none d-lg-block mr-2">{{ trans('general.search') }}:</span>
|
|
|
|
<akaunting-search></akaunting-search>
|
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-flush table-hover">
|
|
|
|
<thead class="thead-light">
|
|
|
|
<tr class="row table-head-line">
|
|
|
|
<th class="col-xs-3 col-sm-3">@sortablelink('paid_at', trans('general.date'))</th>
|
|
|
|
<th class="col-xs-3 col-sm-3">@sortablelink('amount', trans('general.amount'))</th>
|
|
|
|
<th class="col-xs-6 col-sm-3">@sortablelink('payment_method', trans_choice('general.payment_methods', 1))</th>
|
2019-12-16 17:03:53 +03:00
|
|
|
<th class="col-sm-3 d-none d-sm-block">@sortablelink('description', trans('general.description'))</th>
|
2019-11-16 10:21:14 +03:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach($payments as $item)
|
|
|
|
<tr class="row align-items-center border-top-1">
|
2020-01-22 19:03:34 +03:00
|
|
|
<td class="col-xs-3 col-sm-3"><a href="{{ route('portal.payments.show', $item->id) }}">@date($item->paid_at)</a></td>
|
2019-11-16 10:21:14 +03:00
|
|
|
<td class="col-xs-3 col-sm-3">@money($item->amount, $item->currency_code, true)</td>
|
|
|
|
<td class="col-xs-6 col-sm-3">{{ $payment_methods[$item->payment_method] }}</td>
|
2019-12-16 17:03:53 +03:00
|
|
|
<td class="col-sm-3 d-none d-sm-block">{{ $item->description }}</td>
|
2019-11-16 10:21:14 +03:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-footer table-action">
|
|
|
|
<div class="row">
|
2019-12-24 17:53:18 +03:00
|
|
|
@include('partials.admin.pagination', ['items' => $payments])
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@push('scripts_start')
|
2020-01-03 14:43:12 +03:00
|
|
|
<script src="{{ asset('public/js/portal/payments.js?v=' . version('short')) }}"></script>
|
2019-11-16 10:21:14 +03:00
|
|
|
@endpush
|