@extends('layouts.app') @section('title', __('contact.view_contact')) @section('content')

{{ __('contact.view_contact') }}

@lang( 'contact.contact_info', ['contact' => __('contact.contact') ])

@include('contact.contact_basic_info')
@include('contact.contact_more_info')
@if( $contact->type != 'customer')
@include('contact.contact_tax_info')
@endif
@include('contact.contact_payment_info')
@if($reward_enabled)
{{session('business.rp_name')}} {{$contact->total_rp ?? 0}}
@endif @if( $contact->type == 'supplier' || $contact->type == 'both')
@if(($contact->total_purchase - $contact->purchase_paid) > 0) @lang("contact.pay_due_amount") @endif
@endif
@php $transaction_types = []; if(in_array($contact->type, ['both', 'supplier'])){ $transaction_types['purchase'] = __('lang_v1.purchase'); $transaction_types['purchase_return'] = __('lang_v1.purchase_return'); } if(in_array($contact->type, ['both', 'customer'])){ $transaction_types['sell'] = __('sale.sale'); $transaction_types['sell_return'] = __('lang_v1.sell_return'); } $transaction_types['opening_balance'] = __('lang_v1.opening_balance'); @endphp @component('components.widget', ['class' => 'box-primary', 'title' => __('lang_v1.ledger')])
@foreach($transaction_types as $key => $value)
@endforeach
{!! Form::label('ledger_date_range', __('report.date_range') . ':') !!} {!! Form::text('ledger_date_range', null, ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'readonly']); !!}
@endcomponent @if( in_array($contact->type, ['customer', 'both']) && session('business.enable_rp')) @component('components.widget', ['class' => 'box-primary', 'title' => session('business.rp_name')])
@lang('messages.date') @lang('sale.invoice_no') @lang('lang_v1.earned') @lang('lang_v1.redeemed')
@endcomponent @endif
@stop @section('javascript') @endsection