@extends($master) @section('title', 'Manage CashBook') @section('body')
@if(isset($selectedMonth))

Report for: {{ \Carbon\Carbon::parse($selectedMonth . '-01')->format('F Y') }}

@endif
@foreach($monthlyCashBookSummary as $cashBook) @if(isset($cashBook->date)) @else @endif @endforeach
SL No Date Income Expenses Profit
{{$loop->iteration}}{{ \Carbon\Carbon::parse($cashBook->date)->format('d-M-Y') ?? " " }}{{ \Carbon\Carbon::parse($cashBook->month . '-01')->format('M-Y') }}{{ number_format($cashBook->total_dr, 0)}} {{ number_format($cashBook->total_cr, 0)}} {{number_format($cashBook->total_dr - $cashBook->total_cr, 0)}}
@endsection