@php /*
@component('components.filters', ['title' => __('report.filters')])
@if($type == 'customer')
@elseif($type == 'supplier')
@endif
@if($type == 'customer')
{!! Form::select('has_no_sell_from', ['one_month' => __('app.one_month'), 'three_months' => __('app.three_months'), 'six_months' => __('app.six_months'), 'one_year' => __('app.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', __('app.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' => __('app.inactive')], null, ['class' => 'form-control', 'id' => 'status_filter', 'placeholder' => __('app.none')]); !!}
@endcomponent
*/
@endphp
@component('components.widget', ['class' => 'box', 'title' => __( 'contact.all_your_'.$type, ['contacts' => __('app.'.$type.'s') ])])
@if(userHasPermission('supplier.create') || userHasPermission('customer.create') || userHasPermission('supplier.view_own') || userHasPermission('customer.view_own'))
@slot('tool')
@endslot
@endif
@if(userHasPermission('supplier.view') || userHasPermission('customer.view') || userHasPermission('supplier.view_own') || userHasPermission('customer.view_own'))
@endif
@endcomponent
@stop
@section('javascript')
@if(!empty($api_key))
@endif
@endsection