No |
Purchase Date |
Purchase Voucher |
Supplier |
Total Amount |
Transport Charges |
Other Charges |
Tax |
Total Discount |
Net Amount |
Paid Amount |
Balance Amount |
Due Date |
Remark |
Paid Action |
Edit |
Delete |
@if (count($purchaseList) != 0)
@foreach ($purchaseList as $detail)
@php
if ($detail->paid_amount == 0) {
$bgColor = 'red';
} else {
$bgColor = 'orange';
}
if (
$detail->total_amount +
$detail->transport_charges +
$detail->other_charges +
$detail->tax -
$detail->discount_amount -
$detail->paid_amount ==
0
) {
$bgColor = 'green';
}
@endphp
{{ $loop->iteration }} |
{{ date('d-m-Y', strtotime($detail->purchase_date)) }} |
{{ $detail->purchase_voucher_number }} |
{{ $detail->supplier_name }} |
{{ number_format($detail->total_amount) }} |
{{ number_format($detail->transport_charges) }} |
{{ number_format($detail->other_charges) }} |
{{ number_format($detail->tax) }} |
{{ number_format($detail->discount_amount) }} |
{{ number_format($detail->total_amount + $detail->transport_charges + $detail->other_charges + $detail->tax - $detail->discount_amount) }}
|
{{ number_format($detail->paid_amount) }} |
{{ number_format($detail->total_amount + $detail->transport_charges + $detail->other_charges + $detail->tax - $detail->discount_amount - $detail->paid_amount) }}
|
{{ date('d-m-Y', strtotime($detail->due_date)) }} |
{{ $detail->remark }} |
{{-- --}}
|
|
|
@endforeach
@endif
{{-- End Payment Modal --}}
{{-- End Paid Edit Modal --}}
{{-- End Paid Delete Modal --}}
{{-- Voucher Delete Modal --}}
{{-- End Voucher Delete --}}