@extends('layouts.admin') @section('title', trans_choice('general.transactions', 2)) @section('content')
{!! Form::open(['url' => 'banking/transactions', 'role' => 'form', 'method' => 'GET']) !!}
{!! Form::dateRange('date', trans('general.date'), 'calendar', []) !!} {!! Form::select('accounts[]', $accounts, request('accounts'), ['id' => 'filter-accounts', 'class' => 'form-control input-filter input-lg', 'multiple' => 'multiple']) !!} {!! Form::select('type', $types, request('type'), ['class' => 'form-control input-filter input-sm']) !!} {!! Form::select('categories[]', $categories, request('categories'), ['id' => 'filter-categories', 'class' => 'form-control input-filter input-lg', 'multiple' => 'multiple']) !!} {!! Form::button('  ' . trans('general.filter'), ['type' => 'submit', 'class' => 'btn btn-sm btn-default btn-filter']) !!}
{!! Form::select('limit', $limits, request('limit', setting('general.list_limit', '25')), ['class' => 'form-control input-filter input-sm', 'onchange' => 'this.form.submit()']) !!}
{!! Form::close() !!}
@foreach($transactions as $item) @endforeach
@sortablelink('paid_at', trans('general.date')) @sortablelink('account_name', trans('accounts.account_name')) @sortablelink('type', trans_choice('general.types', 1)) @sortablelink('category_name', trans_choice('general.categories', 1)) @sortablelink('description', trans('general.description')) @sortablelink('amount', trans('general.amount'))
{{ Date::parse($item->paid_at)->format($date_format) }} {{ $item->account_name }} {{ $item->type }} {{ $item->category_name }} {{ $item->description }} @money($item->amount, $item->currency_code, true)
@endsection @push('js') @if (language()->getShortCode() != 'en') @endif @endpush @push('css') @endpush @push('scripts') @endpush