@extends('layouts.admin') @section('title', trans_choice('general.items', 2)) @section('new_button') @permission('create-common-items')  {{ trans('general.add_new') }}  {{ trans('import.import') }} @endpermission  {{ trans('general.export') }} @endsection @section('content')
{!! Form::open([ 'route' => 'items.index', 'role' => 'form', 'method' => 'GET', 'class' => 'mb-0' ]) !!}
{{ Form::bulkActionRowGroup('general.items', $bulk_actions, 'common/items') }} {!! Form::close() !!}
@foreach($items as $item) @endforeach
@sortablelink('name', trans('general.name'), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow']) @sortablelink('sale_price', trans('items.sales_price')) @sortablelink('enabled', trans('general.enabled')) {{ trans('general.actions') }}
{{ $item->name }} {{ $item->name }} {{ money($item->sale_price, setting('default.currency'), true) }} @if (user()->can('update-common-items')) {{ Form::enabledGroup($item->id, $item->name, $item->enabled) }} @else @if ($item->enabled) {{ trans('general.enabled') }} @else {{ trans('general.disabled') }} @endif @endif
@endsection @push('scripts_start') @endpush