@extends('layouts.app') @section('title', __('app.'.$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') @include('layouts.partials.breadcrumb',['page_title'=> __( 'contact.manage_your_'.$type) , 'bread_crumbs'=>array( array('title'=>__('contact.'.$type),'url'=>''),array('title'=> __('contact.manage_your_'.$type),'url'=>''))])
@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')
@lang( 'messages.add' )
@endslot @endif @if(userHasPermission('supplier.view') || userHasPermission('customer.view') || userHasPermission('supplier.view_own') || userHasPermission('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('app.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('app.advance_balance') @lang('app.added_on') @lang('business.address') @lang('contact.mobile') @lang('contact.total_purchase_due') @lang('app.total_purchase_return_due')@lang('business.business_name') @lang('user.name') @lang('business.email') @lang('contact.tax_no') @lang('app.credit_limit') @lang('contact.pay_term') @lang('account.opening_balance') @lang('app.advance_balance') @lang('app.added_on'){{session('business.rp_name')}}@lang('app.customer_group') @lang('business.address') @lang('contact.mobile') @lang('contact.total_sale_due') @lang('app.total_sell_return_due') {{ $custom_labels['contact']['custom_field_1'] ?? '' }} {{ $custom_labels['contact']['custom_field_2'] ?? '' }} {{ $custom_labels['contact']['custom_field_3'] ?? '' }} {{ $custom_labels['contact']['custom_field_4'] ?? '' }} {{ $custom_labels['contact']['custom_field_5'] ?? '' }} {{ $custom_labels['contact']['custom_field_6'] ?? '' }} {{ $custom_labels['contact']['custom_field_7'] ?? '' }} {{ $custom_labels['contact']['custom_field_8'] ?? '' }} {{ $custom_labels['contact']['custom_field_9'] ?? '' }} {{ $custom_labels['contact']['custom_field_10'] ?? '' }} @lang('messages.action')
@endif @endcomponent
@stop @section('javascript') @if(!empty($api_key)) @endif @endsection