@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( $contact->type == 'customer' || $contact->type == 'both')
@endif
--}}
@if( $contact->type == 'supplier' || $contact->type == 'both')
@endif
@can('add_discount')
@endcan
@php
$total_invoice = empty($contact->total_invoice) ? 0 : $contact->total_invoice;
$amount = $total_invoice - $contact->invoice_received;
@endphp
@if($contact->type=='customer' &&($amount > 0 && $contact->balance > 0) )
@can('pay_due_by_contact_balance')
@endcan
@endif