@extends('layouts.app') @section('title', __('contact.view_contact')) @section('content')
@lang('contact.view_contact')
{!! Form::select('contact_id', $contact_dropdown, $contact->id , ['class' => 'form-control select2', 'id' => 'contact_id']); !!}

@include('contact.partials.contact_info_tab')
@include('contact.partials.ledger_tab')
@if(in_array($contact->type, ['both', 'supplier']))
{!! Form::label('purchase_list_filter_date_range', __('report.date_range') . ':') !!} {!! Form::text('purchase_list_filter_date_range', null, ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control bd-rd-7', 'readonly']); !!}

@include('purchase.partials.purchase_table')
@include('contact.partials.stock_report_tab')
@endif @if(in_array($contact->type, ['both', 'customer']))
@include('sell.partials.sell_list_filters', ['only' => ['sell_list_filter_payment_status', 'sell_list_filter_date_range', 'only_subscriptions']])

@include('sale_pos.partials.sales_table')
@if(in_array('subscription', $enabled_modules)) @include('contact.partials.subscriptions') @endif @endif
@include('contact.partials.documents_and_notes_tab')
@if( in_array($contact->type, ['customer', 'both']) && session('business.enable_rp'))

@if($reward_enabled)
{{session('business.rp_name')}} {{$contact->total_rp ?? 0}}
@endif
@lang('messages.date') @lang('sale.invoice_no') @lang('lang_v1.earned') @lang('lang_v1.redeemed')
@endif
@include('activity_log.activities')
@if(!empty($contact_view_tabs)) @foreach($contact_view_tabs as $key => $tabs) @foreach ($tabs as $index => $value) @if(!empty($value['tab_content_path'])) @php $tab_data = !empty($value['tab_data']) ? $value['tab_data'] : []; @endphp @include($value['tab_content_path'], $tab_data) @endif @endforeach @endforeach @endif
@include('ledger_discount.create') @stop @section('javascript') @include('sale_pos.partials.sale_table_javascript') @if(in_array($contact->type, ['both', 'supplier'])) @endif @include('documents_and_notes.document_and_note_js') @if(!empty($contact_view_tabs)) @foreach($contact_view_tabs as $key => $tabs) @foreach ($tabs as $index => $value) @if(!empty($value['module_js_path'])) @include($value['module_js_path']) @endif @endforeach @endforeach @endif @include('sale_pos.partials.subscriptions_table_javascript', ['contact_id' => $contact->id]) @endsection