@extends('layouts.master') @section('title', 'Sales Collection Report') @section('content')
Back to Dashboard
Sales Collection Report
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@if(isset($collectionData) && count($collectionData) > 0)
@csrf
Sales Collection Report
@php $grandTotal = 0; @endphp @foreach($collectionData as $row) @php $grandTotal = $row['balance']; @endphp @endforeach
Date Description Reference Customer Code Customer Name DR CR Balance
{{ $row['date'] }} {{ $row['description'] }} {{ $row['reference'] }} {{ $row['customer_code'] }} {{ $row['customer_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($collectionData) && count($collectionData) == 0)
No collection transactions found for the selected criteria.
@endif
@endsection @section('styles') @endsection @section('scripts') @endsection