@extends('layouts.master') @section('title', 'Supplier Payments Report') @section('content')
Back to Dashboard
Supplier Payments Report
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@if(isset($paymentsData) && count($paymentsData) > 0)
@csrf
Supplier Payments Report
@php $grandTotal = 0; @endphp @foreach($paymentsData as $row) @php $grandTotal = $row['balance']; @endphp @endforeach
Date Description Reference Supplier Code Supplier Name DR CR Balance
{{ $row['date'] }} {{ $row['description'] }} {{ $row['reference'] }} {{ $row['supplier_code'] }} {{ $row['supplier_name'] }} {{ number_format($row['dr'], 2) }} {{ number_format($row['cr'], 2) }} {{ number_format($row['balance'], 2) }}
Grand Total : {{ number_format($grandTotal, 2) }}

Copyright © Melsoft (Private) Limited

@elseif(isset($paymentsData) && count($paymentsData) == 0)
No payment transactions found for the selected criteria.
@endif
@endsection @section('styles') @endsection @section('scripts') @endsection