@lang('auth/user.document_title')

@include('flash::message')

@lang('general.text_list')

{!! Form::open(['route' => 'users.index','method' => 'GET','class' => '','role' => 'form','id'=>'form']) !!}
{!! Form::select('limit', $limits,request()->input('limit',setting('list_limit','100')), ['class' => 'form-control input-sm', 'placeholder' => __('general.text_select'),'onchange' => 'this.form.submit()']) !!}
{!! Form::text('filter_search', request()->input('filter_search'), ['class' => 'form-control', 'placeholder' => __('general.text_search') . '...']) !!} {!! Form::button(__('general.button_search'),['type' => 'submit', 'class' => 'btn btn-default']) !!}
{!! Form::close() !!}
@if(Auth::user()->superadmin) @endif @forelse($results as $result) @if(Auth::user()->superadmin) @endif @empty @endif
@sortablelink('name', __('auth/user.column_name')) @sortablelink('email', __('auth/user.column_email')) @sortablelink('distributor', __('auth/user.column_distributor')) @sortablelink('available_folio', __('auth/user.column_available_folio')) @sortablelink('sysCustomer.name', __('auth/user.column_sys_customer')) @sortablelink('last_login', __('auth/user.column_last_login')) @sortablelink('status', __('auth/user.column_status')) @lang('general.column_actions')
{{$result->name}} {{$result->email}} @if($result->distributor) @endif @if($result->distributor) {{\App\Helpers\Helper::numberFormat($result->available_folio,0)}} @endif {{$result->sysCustomer->name ?? ''}} @if($result->sysCustomer ?? '') @if($result->sysCustomer->status == 0)
@endif @endif
{{ $result->last_login ? \App\Helpers\Helper::convertSqlToDateTime($result->last_login) : '' }} @if($result->status) @else @endif {!! Form::open(['route' => ['users.destroy', $result->id],'method' => 'DELETE','class' => 'hidden','role' => 'form','id' => 'form' . $result->id ]) !!} {!! Form::close() !!}
@lang('general.text_no_results')
@if($results->total() > 0)
{{ $results->appends(request()->except('page'))->links() }}
@endif