@extends('layouts.admin') @section('title', trans_choice('general.payments', 2)) @section('new_button') @permission('create-purchases-payments')  {{ trans('general.add_new') }}  {{ trans('import.import') }} @endpermission  {{ trans('general.export') }} @endsection @section('content') @if ($payments->count())
{!! Form::open([ 'method' => 'GET', 'route' => 'payments.index', 'role' => 'form', 'class' => 'mb-0' ]) !!}
{{ Form::bulkActionRowGroup('general.payments', $bulk_actions, ['group' => 'purchases', 'type' => 'payments']) }} {!! Form::close() !!}
@foreach($payments as $item) @if ($item->reconciled) @else @endif @endforeach
{{ Form::bulkActionAllGroup() }} @sortablelink('paid_at', trans('general.date'), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow']) @sortablelink('amount', trans('general.amount')) @sortablelink('contact.name', trans_choice('general.vendors', 1)) @sortablelink('category.name', trans_choice('general.categories', 1)) @sortablelink('account.name', trans_choice('general.accounts', 1)) {{ trans('general.actions') }}
{{ Form::bulkActionGroup($item->id, $item->contact->name) }}@date($item->paid_at)@date($item->paid_at)@money($item->amount, $item->currency_code, true) {{ $item->contact->name }} @if($item->bill) @if ($item->bill->status == 'paid') @elseif ($item->bill->status == 'partial') @endif @endif {{ $item->category->name }} {{ $item->account->name }}
@else @include('partials.admin.empty_page', ['page' => 'payments', 'docs_path' => 'purchases/payments']) @endif @endsection @push('scripts_start') @endpush