added multi-select filters everywhere
This commit is contained in:
		@@ -13,9 +13,9 @@
 | 
			
		||||
<div class="box box-success">
 | 
			
		||||
    <div class="box-header with-border">
 | 
			
		||||
        {!! Form::open(['url' => 'banking/reconciliations', 'role' => 'form', 'method' => 'GET']) !!}
 | 
			
		||||
        <div class="pull-left">
 | 
			
		||||
        <div id="items" class="pull-left box-filter">
 | 
			
		||||
            <span class="title-filter hidden-xs">{{ trans('general.search') }}:</span>
 | 
			
		||||
            {!! Form::select('account', $accounts, request('account'), ['class' => 'form-control input-filter input-sm']) !!}
 | 
			
		||||
            {!! Form::select('accounts[]', $accounts, request('accounts'), ['id' => 'filter-accounts', 'class' => 'form-control input-filter input-lg', 'multiple' => 'multiple']) !!}
 | 
			
		||||
            {!! Form::button('<span class="fa fa-filter"></span>  ' . trans('general.filter'), ['type' => 'submit', 'class' => 'btn btn-sm btn-default btn-filter']) !!}
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="pull-right">
 | 
			
		||||
@@ -83,3 +83,12 @@
 | 
			
		||||
<!-- /.box -->
 | 
			
		||||
@endsection
 | 
			
		||||
 | 
			
		||||
@push('scripts')
 | 
			
		||||
<script type="text/javascript">
 | 
			
		||||
    $(document).ready(function(){
 | 
			
		||||
        $("#filter-accounts").select2({
 | 
			
		||||
            placeholder: "{{ trans('general.form.select.field', ['field' => trans_choice('general.accounts', 1)]) }}"
 | 
			
		||||
        });
 | 
			
		||||
    });
 | 
			
		||||
</script>
 | 
			
		||||
@endpush
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user