@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 select2', 'id' => 'has_no_sell_from', 'placeholder' => __('messages.please_select')],
) !!}
{!! Form::select('cg_filter', $customer_groups, null, ['class' => 'form-control select2', '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 select2', 'id' => 'status_filter', 'placeholder' => __('lang_v1.none')],
) !!}
@if ($type == 'customer')
{!! Form::select('filter_main_city', $main_cities, null, [
'class' => 'form-control select2',
'id' => 'filter_main_city',
'placeholder' => __('messages.please_select'),
]) !!}
{!! Form::label('customer_id', __('Customer Name & Mobile N0') . ':') !!}
{!! Form::select('customer_id', $customers, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'placeholder' => __('lang_v1.all'),
]) !!}
@endif
@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
{{-- bulk imprt part numbers modal --}}
@component('components.widget', ['class' => 'box-primary'])
{!! Form::open([
'url' => action('ContactController@bulkImportCheques'),
'method' => 'post',
'enctype' => 'multipart/form-data',
'id' => 'import_part_no_form',
]) !!}
{!! Form::close() !!}
@endcomponent
@stop
@section('javascript')
@if (!empty($api_key))
@endif
@endsection