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

PAYABLE

List Payable
@if(isset($payables)) @php $total = 0; $discount = 0; $paid = 0; $due = 0; @endphp @foreach($payables 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
# Supplier Name Date Invoice No. Invoice Total Discount Paid Due
{{ ++$key }} {{ $data->sup_name }} {{ $data->purchase_date }} {{ $data->memo_no }} {{ 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