@extends('layouts.app') @section('title', __('lang_v1.' . $type . 's')) @php $api_key = env('GOOGLE_MAP_API_KEY'); @endphp @if (!empty($api_key)) @section('css') @include('contact.partials.google_map_styles') @endsection @endif @section('content')

@lang('lang_v1.' . $type . 's') @lang('contact.manage_your_contact', ['contacts' => __('lang_v1.' . $type . 's')])

@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')
@lang('messages.add')
@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'))
@if ($type == 'supplier') @elseif($type == 'customer') @if ($reward_enabled) @endif @endif @php $custom_labels = json_decode(session('business.custom_labels'), true); @endphp
@lang('messages.action') @lang('lang_v1.contact_id')@lang('business.business_name') @lang('contact.name') @lang('business.email') @lang('contact.tax_no') @lang('contact.pay_term') @lang('account.opening_balance') @lang('lang_v1.advance_balance') @lang('lang_v1.added_on') @lang('business.address') @lang('contact.mobile') @lang('contact.total_purchase_due') @lang('lang_v1.total_purchase_return_due')@lang('business.business_name') @lang('user.name') @lang('business.email') @lang('contact.tax_no') @lang('lang_v1.credit_limit') @lang('contact.pay_term') @lang('account.opening_balance') @lang('lang_v1.advance_balance') @lang('lang_v1.added_on'){{ session('business.rp_name') }}@lang('lang_v1.customer_group') @lang('business.address') @lang('contact.mobile') @lang('contact.total_sale_due') @lang('lang_v1.total_sell_return_due') {{ $custom_labels['contact']['custom_field_1'] ?? __('lang_v1.contact_custom_field1') }} {{ $custom_labels['contact']['custom_field_2'] ?? __('lang_v1.contact_custom_field2') }} {{ $custom_labels['contact']['custom_field_3'] ?? __('lang_v1.contact_custom_field3') }} {{ $custom_labels['contact']['custom_field_4'] ?? __('lang_v1.contact_custom_field4') }} {{ $custom_labels['contact']['custom_field_5'] ?? __('lang_v1.custom_field', ['number' => 5]) }} {{ $custom_labels['contact']['custom_field_6'] ?? __('lang_v1.custom_field', ['number' => 6]) }} {{ $custom_labels['contact']['custom_field_7'] ?? __('lang_v1.custom_field', ['number' => 7]) }} {{ $custom_labels['contact']['custom_field_8'] ?? __('lang_v1.custom_field', ['number' => 8]) }} {{ $custom_labels['contact']['custom_field_9'] ?? __('lang_v1.custom_field', ['number' => 9]) }} {{ $custom_labels['contact']['custom_field_10'] ?? __('lang_v1.custom_field', ['number' => 10]) }}
@endif @endcomponent
@stop @section('javascript') @if (!empty($api_key)) @endif @endsection