General Report from {{$startDay}} to {{$currentDay}}


Total Revenue
₦{{number_format($totalRevenue, 2)}}
Debt
₦{{number_format($totalDebt, 2)}}
Discount
₦{{number_format($totalDiscountAmount, 2)}}
Net Revenue
₦{{number_format($netRevenue, 2)}}

Sales Report for {{$currentDay}}


Total Sales
₦{{number_format($todayOrderAmount, 2)}}
Total Revenue
₦{{number_format(($todayRevenue), 2)}}
Debt
₦{{number_format($todayDebt, 2)}}
Discount
₦{{number_format($todayDiscountAmount, 2)}}
Net Revenue
₦{{number_format(($todayNetRevenue), 2)}}

Today's Cash flow ({{$currentDay}})


@foreach($cashFlows as $cashFlow)
{{$cashFlow["name"]}}
₦{{number_format($cashFlow["amount"], 2)}}
@endforeach
Total
₦{{number_format($cashFlowTotalAmount, 2)}}
@if(count($orderAdvancePayments) > 0)

Advance Payments for Orders on {{$currentDay}}


@foreach($orderAdvancePayments as $orderLatePayment)
{{$orderLatePayment["name"]}}: Paid on {{$orderLatePayment["day"]}}
₦{{number_format($orderLatePayment["amount"], 2)}}
@endforeach
Total
₦{{number_format($orderAdvancePaymentTotal, 2)}}
@else

No Advance Payments for Orders on {{$currentDay}}

@endif @if(count($orderLatePayments) > 0)

Late Payments for Orders


@foreach($orderLatePayments as $orderLatePayment)
{{$orderLatePayment["name"]}}: Orders on {{$orderLatePayment["day"]}}
₦{{number_format($orderLatePayment["amount"], 2)}}
@endforeach
Total
₦{{number_format($orderLatePaymentTotal, 2)}}
@else

No Late Payments for Orders

@endif @if(count($debtors) > 0)

Debtors for {{\Carbon\Carbon::parse($date)->format("M, Y")}}


@foreach($debtors as $debtor) @php $debtorName = ""; if($debtor["type"] === "staff"){ $debtorName = \App\Models\User::find($debtor["id"])->name; $debtorType = "Staff"; } else{ $debtorName = \App\Models\Customer::find($debtor["id"])->customer_name; $debtorType = "Customer"; } @endphp
{{$debtorType}}: {{Str::title($debtorName)}}
₦{{number_format($debtor["debt"], 2)}}
@endforeach
@else

No Debtors for {{\Carbon\Carbon::parse($date)->format("M, Y")}}

@endif

Report Summary


Net Cash Flow = Today's Cash flow + Advance Payment - Late Payment

Today's Cash Flow
₦{{number_format($cashFlowTotalAmount, 2)}}
Advance Payment
₦{{number_format($orderAdvancePaymentTotal,2)}}
Late Payment
₦{{number_format($orderLatePaymentTotal,2)}}

Net Cash Flow
₦{{number_format(($cashFlowTotalAmount + $orderAdvancePaymentTotal - $orderLatePaymentTotal), 2)}}
Net Revenue
₦{{number_format(($todayNetRevenue), 2)}}
Difference
₦{{number_format(($cashFlowTotalAmount + $orderAdvancePaymentTotal - $orderLatePaymentTotal) - ($todayNetRevenue), 2)}}

Comment


{!! nl2br(e(str_replace(' - ', "\n", $comment))) !!}