@if(!empty($for_pdf)) @endif

@lang('app.ledger')

@lang('app.to')
{{$contact->name}}
@lang('contact.mobile'): {{$contact->mobile}} @if(!empty($contact->email)) 
@lang('business.email'): {{$contact->email}} @endif @if(!empty($contact->tax_number))
@lang('contact.tax_no'): {{$contact->tax_number}} @endif
{!! $contact->contact_address !!}

@lang('app.account_summary')

@lang('app.period:') {{$ledger_details['start_date']}} @lang('app.to') {{$ledger_details['end_date']}}
@if( $contact->type == 'supplier' || $contact->type == 'both') @endif @if( $contact->type == 'customer' || $contact->type == 'both') @endif @if($ledger_details['ledger_discount'] > 0) @endif
@lang('app.opening_balance') @format_currency($ledger_details['beginning_balance'])
@lang('report.total_purchase') @format_currency($ledger_details['total_purchase'])
@lang('app.total_period_invoice') @format_currency($ledger_details['total_invoice'])
@lang('sale.total_period_paid') @format_currency($ledger_details['total_paid'])
@lang('app.advance_balance') @format_currency($contact->balance - $ledger_details['total_reverse_payment'])
@lang('app.ledger_discount') @format_currency($ledger_details['ledger_discount'])
@lang('app.balance_due') @format_currency($ledger_details['balance_due'] - $ledger_details['ledger_discount'])

@lang('app.ledger_table_heading', ['start_date' => $ledger_details['start_date'], 'end_date' => $ledger_details['end_date']])

{{----}} {{----}} @foreach($ledger_details['ledger'] as $data) iteration % 2 == 0) class="odd" @endif> {{----}} {{----}} @endforeach
@lang('app.date') @lang('purchase.ref_no') @lang('app.type')@lang('sale.location')@lang('sale.payment')@lang('sale.total')@lang('account.debit') @lang('account.credit') @lang('app.balance') @lang('app.mode') @lang('report.others')
{{@format_datetime($data['date'])}} {{$data['ref_no']}} {{$data['type']}}{{$data['location']}}{{$data['payment_status']}}@if($data['total'] !== '') @format_currency($data['total']) @endif@if($data['debit'] != '') @format_currency($data['debit']) @endif @if($data['credit'] != '') @format_currency($data['credit']) @endif {{$data['balance']}} {{$data['payment_method']}} {{$data['payment_method']}} {!! $data['others'] !!} @if(!empty($is_admin) && !empty($data['transaction_id']) && $data['transaction_type'] == 'ledger_discount')
@endif