@extends('layouts.template') @section('template')

RECEIVABLE

List Receivable
@if(isset($receivables)) @php $total = 0; $discount = 0; $paid = 0; $due = 0; @endphp @foreach($receivables as $key => $data) @php $total += $data->memo_total; $discount += $data->discount; $paid += $data->advanced_amount; $due += $data->memo_total - $data->advanced_amount -$data->discount; @endphp @endforeach @endif
# Customer Name Date Invoice No. Invoice Total Discount Paid Due
{{ ++$key }} {{ $data->customer_name }} {{ $data->sales_date }} {{ $globalSettings->invoice_prefix."-BI-".str_pad($data->sales_master_id, 8, '0', STR_PAD_LEFT) }} {{ number_format($data->memo_total,2) }} {{ number_format($data->discount,2) }} {{ number_format($data->advanced_amount,2) }} {{ number_format($data->memo_total - $data->advanced_amount -$data->discount,2) }}
Total {{number_format($due,2)}}
@endsection