@extends('layouts.app') @section('title', __('lang.customers_report')) @section('content')

@lang('lang.customers_report')

@component('components.filters', ['title' => __('report.filters')])
{!! Form::label('contact_ids[]', __('lang.customers') . ':') !!}
{!! Form::select('contact_ids[]', $customers, null, ['class' => 'form-control select2 multiple-select', 'id' => 'contact_ids', 'multiple' => 'multiple', 'style' => 'width:100%']) !!}
{!! Form::label('assigned_to', __('lang.sales_person') . ':') !!} {!! Form::select('assigned_to', getSalesPersons()??[], null, ['class' => 'form-control select2', 'id' => 'assigned_to', 'placeholder' => __('lang.all'), 'style' => 'width:100%']) !!}
{!! Form::label('tags[]', __('lang.tags') . ':') !!}
{!! Form::select('tags[]', getTags(), null, ['class' => 'form-control select2 multiple-select', 'id' => 'tags', 'multiple' => 'multiple', 'style' => 'width:100%']) !!}
{!! Form::label('date_range', __('report.date_range') . ':') !!} {!! Form::text('date_range', null, ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'readonly']); !!}
@includeIf('locations::layouts.location_filter')
{!! 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')], ) !!}
@endcomponent @component('components.widget', [ 'class' => 'box-primary', 'title' => __('lang.customers', ['contacts' => __('lang.customers')]), ]) @if (auth()->user()->can('customer.view') || auth()->user()->can('customer.view_own'))
{{-- --}}
@lang('lang.customer_name') @lang('contact.mobile') @lang('lang.sales_person') @lang('lang.indebted_people') @lang('lang.date_last_invoice') @lang('lang.value_last_invoice') @lang('lang.date_last_payment') @lang('lang.value_last_payment')@lang('lang.number_of_days_late_last_payment')
@endif @endcomponent
@stop @section('javascript') @endsection