@extends('layouts.admin') @section('title', trans_choice('general.accounts', 2)) @section('new_button') @can('create-banking-accounts') {{ trans('general.add_new') }} @endcan @endsection @section('content')
{!! Form::open([ 'method' => 'GET', 'route' => 'accounts.index', 'role' => 'form', 'class' => 'mb-0' ]) !!}
{{ Form::bulkActionRowGroup('general.accounts', $bulk_actions, ['group' => 'banking', 'type' => 'accounts']) }} {!! Form::close() !!}
@foreach($accounts as $item) @endforeach
{{ Form::bulkActionAllGroup() }} @sortablelink('name', trans('general.name'), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow']) @sortablelink('number', trans('accounts.number')) @sortablelink('opening_balance', trans('accounts.current_balance')) @sortablelink('enabled', trans('general.enabled')) {{ trans('general.actions') }}
{{ Form::bulkActionGroup($item->id, $item->name) }} {{ $item->name }} {{ $item->number }} @money($item->balance, $item->currency_code, true) @if (user()->can('update-banking-accounts')) {{ Form::enabledGroup($item->id, $item->name, $item->enabled) }} @else @if ($item->enabled) {{ trans('general.yes') }} @else {{ trans('general.no') }} @endif @endif
@endsection @push('scripts_start') @endpush