@if( $contact->type == 'supplier' || $contact->type == 'both') @lang('report.total_purchase')

{{ $contact->total_purchase }}

@lang('contact.total_purchase_paid')

{{ $contact->purchase_paid }}

@lang('contact.total_purchase_due')

{{ $contact->total_purchase - $contact->purchase_paid }}

@endif @if( $contact->type == 'customer' || $contact->type == 'both') @lang('report.total_sell')

{{ $contact->total_invoice }}

@lang('contact.total_sale_paid')

{{ $contact->invoice_received }}

@lang('contact.total_sale_due')

{{ $contact->total_invoice - $contact->invoice_received }}

@endif @if(!empty($contact->opening_balance) && $contact->opening_balance != '0.00') @lang('lang_v1.opening_balance')

{{ $contact->opening_balance }}

@lang('lang_v1.opening_balance_due')

{{ $contact->opening_balance - $contact->opening_balance_paid }}

@endif