@component('components.filters', ['title' => __('report.filters')])
@if ($type == 'customer')
@elseif($type == 'supplier')
@endif
@if ($type == 'customer')
{!! Form::select(
'has_no_sell_from',
[
'one_month' => __('lang_v1.one_month'),
'three_months' => __('lang_v1.three_months'),
'six_months' => __('lang_v1.six_months'),
'one_year' => __('lang_v1.one_year'),
],
null,
['class' => 'form-control', 'id' => 'has_no_sell_from', 'placeholder' => __('messages.please_select')],
) !!}
{!! Form::select('cg_filter', $customer_groups, null, ['class' => 'form-control', 'id' => 'cg_filter']) !!}
@endif
@if (config('constants.enable_contact_assign') === true)
{!! Form::label('assigned_to', __('lang_v1.assigned_to') . ':') !!}
{!! Form::select('assigned_to', $users, null, ['class' => 'form-control select2', 'style' => 'width:100%']) !!}
@endif
{!! Form::select(
'status_filter',
['active' => __('business.is_active'), 'inactive' => __('lang_v1.inactive')],
null,
['class' => 'form-control', 'id' => 'status_filter', 'placeholder' => __('lang_v1.none')],
) !!}
@endcomponent
@component('components.widget', [
'class' => 'box-primary',
'title' => __('contact.all_your_contact', ['contacts' => __('lang_v1.' . $type . 's')]),
])
@if (auth()->user()->can('supplier.create') ||
auth()->user()->can('customer.create') ||
auth()->user()->can('supplier.view_own') ||
auth()->user()->can('customer.view_own'))
@slot('tool')
@endslot
@endif
@if (auth()->user()->can('supplier.view') ||
auth()->user()->can('customer.view') ||
auth()->user()->can('supplier.view_own') ||
auth()->user()->can('customer.view_own'))
@endif
@endcomponent
@stop
@section('javascript')
@if (!empty($api_key))
@endif
@endsection