@if(!empty($for_pdf)) @endif
{{$contact->business->name}}
@if(!empty($location))
{!! $location->location_address !!}
@else
{!! $contact->business->business_address !!}
@endif
@lang('lang_v1.to'):
{{$contact->name}}
{!! $contact->contact_address !!} @if(!empty($contact->email))
@lang('business.email'): {{$contact->email}} @endif
@lang('contact.mobile'): {{$contact->mobile}}
@if(!empty($contact->tax_number))
@lang('contact.tax_no'): {{$contact->tax_number}} @endif
| @lang('lang_v1.opening_balance') | @format_currency($ledger_details['beginning_balance']) |
| @lang('report.total_purchase') | @format_currency($ledger_details['total_purchase']) |
| @lang('lang_v1.total_invoice') | @format_currency($ledger_details['total_invoice']) |
| @lang('lang_v1.total_return_paid') | @format_currency($ledger_details['total_sell_return_paid']) |
| @lang('sale.total_paid') | @format_currency($ledger_details['total_paid']) |
| @lang('lang_v1.advance_balance') | @format_currency($contact->balance - $ledger_details['total_reverse_payment']) |
| @lang('lang_v1.ledger_discount') | @format_currency($ledger_details['ledger_discount']) |
| @lang('lang_v1.balance_due') | @format_currency($ledger_details['balance_due'] - $ledger_details['ledger_discount'] - $contact->balance - $ledger_details['total_reverse_payment']) |
@lang('lang_v1.ledger_table_heading', ['start_date' => $ledger_details['start_date'], 'end_date' => $ledger_details['end_date']])
| @lang('lang_v1.date') | @lang('purchase.ref_no') | @lang('lang_v1.type') | @lang('sale.location') | @lang('sale.payment_status') | {{--@lang('sale.total') | --}}@lang('account.debit') | @lang('account.credit') | @lang('lang_v1.balance') | @lang('lang_v1.payment_method') | @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['others'] !!}
@if(!empty($is_admin) && !empty($data['transaction_id']) && $data['transaction_type'] == 'ledger_discount')
@endif |
| @include('sale_pos.partials.format_3sale_line_details', ['sell' => (object)$data, 'enabled_modules' => [], 'is_warranty_enabled' => false, 'for_ledger' => true]) | ||||||||||
| Item# | @lang('product.product_name') | @lang('sale.unit_price') | @lang('lang_v1.return_quantity') | @lang('lang_v1.return_subtotal') | ||||||
| {{ $loop->iteration }} | {{ $sell_line->product->name }} @if( $sell_line->product->type == 'variable') - {{ $sell_line->variations->product_variation->name}} - {{ $sell_line->variations->name}} @endif | {{ $sell_line->unit_price_inc_tax }} | {{@format_quantity($sell_line->quantity_returned)}} {{$unit_name}} | @php $line_total = $sell_line->unit_price_inc_tax * $sell_line->quantity_returned; $total_before_tax += $line_total ; @endphp {{$line_total}} | ||||||
| Item# | @lang('product.product_name') | @lang('sale.unit_price') | @lang('lang_v1.return_quantity') | @lang('lang_v1.return_subtotal') | ||||||
| {{ $loop->iteration }} | {{ $purchase_line->product->name }} @if( $purchase_line->product->type == 'variable') - {{ $purchase_line->variations->product_variation->name}} - {{ $purchase_line->variations->name}} @endif | {{ $purchase_line->purchase_price_inc_tax }} | {{@format_quantity($purchase_line->quantity_returned)}} {{$unit_name}} | @php $line_total = $purchase_line->purchase_price_inc_tax * $purchase_line->quantity_returned; $total_before_tax += $line_total ; @endphp {{$line_total}} | ||||||
| @include('contact.partials.ledger_purchase_lines_details', ['purchase' => (object)$data]) | ||||||||||