@extends('layouts.adminapp') @section('title') {{ __('lng.CashFlow') }} - {{ __('lng.Print') }} @endsection @section('active_report', 'active') @section('open_report', 'open') @section('open_account', 'open') @section('active_account', 'active') @section('cash_flow', 'active') @section('content')

{{ __('lng.Print') }}

@include('PrintHeader.header')

{{ __('lng.CashFlow') }}

{{ __('lng.FromDate') }}: {{ date('d-m-Y', strtotime($from)) }}, {{ __('lng.ToDate') }}: {{ date('d-m-Y', strtotime($to)) }},
@php $balance = $openingBalance; @endphp {{-- Opening Balance --}} @foreach ($rows as $row) @php $balance += $row->credit; $balance -= $row->debit; @endphp @endforeach
{{ __('lng.Date') }} {{ __('lng.Voucher') }} {{ __('lng.Ledger') }} {{ __('lng.Receipt') }} {{ __('lng.Payment') }} {{ __('lng.ClosingBalance') }}
{{ __('lng.OpeningBalance') }} @currency($balance)
{{ \Carbon\Carbon::parse($row->date)->format('d-m-Y') }} {{ $row->voucher }} {{ $row->ledger }} {{ $row->credit > 0 ? number_format($row->credit, 2) : '' }} {{ $row->debit > 0 ? number_format($row->debit, 2) : '' }} @currency($balance)
{{ __('lng.Back') }}
@endsection