@extends('layouts.admin.master') @section('title', 'Purchase Reports') @section('content')
Purchase Reports
{{--
--}}
@php $totalAmount = 0; $totalDebit = 0; @endphp @if (count($purchase_list) != 0) @php $count = 1; @endphp @foreach ($purchase_list as $purchase) @php $count++; $totalDebit += $purchase['total_amount'] + $purchase['transport_charges'] + $purchase['other_charges'] + $purchase['tax'] - $purchase['discount_amount'] - $purchase['paid_amount']; $totalAmount += $purchase['total_amount']; @endphp @endforeach @endif
No Purchase Date Purchase Voucher Supplier Total Amount Transport Charges Other Charges Tax Total Discount Net Amount Paid Amount Balance Due Date Remark
{{ $count }} {{ date('d-m-Y', strtotime($purchase['purchase_date'])) }} {{ $purchase['purchase_voucher_number'] }} {{ $purchase['supplier_name'] }} {{ number_format($purchase['total_amount']) }} {{ number_format($purchase['transport_charges']) }} {{ number_format($purchase['other_charges']) }} {{ number_format($purchase['tax']) }} {{ number_format($purchase['discount_amount']) }} {{ number_format($purchase['total_amount'] + $purchase['transport_charges'] + $purchase['other_charges'] + $purchase['tax'] - $purchase['discount_amount']) }} {{ number_format($purchase['paid_amount']) }} {{ number_format($purchase['total_amount'] + $purchase['transport_charges'] + $purchase['other_charges'] + $purchase['tax'] - $purchase['discount_amount'] - $purchase['paid_amount']) }} {{ date('d-m-Y', strtotime($purchase['due_date'])) }} {{ $purchase['remark'] }}
{{--
--}}
@endsection