General Report from {{$startDay}} to {{$currentDay}}
|
₦{{number_format($totalRevenue, 2)}}
|
|
₦{{number_format($totalDebt, 2)}}
|
|
₦{{number_format($totalDiscountAmount, 2)}}
|
|
₦{{number_format($netRevenue, 2)}}
|
Sales Report for {{$currentDay}}
|
₦{{number_format($todayOrderAmount, 2)}}
|
|
₦{{number_format(($todayRevenue), 2)}}
|
|
₦{{number_format($todayDebt, 2)}}
|
|
₦{{number_format($todayDiscountAmount, 2)}}
|
|
₦{{number_format(($todayNetRevenue), 2)}}
|
Today's Cash flow ({{$currentDay}})
@foreach($cashFlows as $cashFlow)
|
₦{{number_format($cashFlow["amount"], 2)}}
|
@endforeach
|
₦{{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
|
₦{{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
|
₦{{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
|
₦{{number_format($cashFlowTotalAmount, 2)}}
|
|
₦{{number_format($orderAdvancePaymentTotal,2)}}
|
|
₦{{number_format($orderLatePaymentTotal,2)}}
|
|
₦{{number_format(($cashFlowTotalAmount + $orderAdvancePaymentTotal - $orderLatePaymentTotal), 2)}}
|
|
₦{{number_format(($todayNetRevenue), 2)}}
|
|
₦{{number_format(($cashFlowTotalAmount + $orderAdvancePaymentTotal - $orderLatePaymentTotal) - ($todayNetRevenue), 2)}}
|
Comment
{!! nl2br(e(str_replace(' - ', "\n", $comment))) !!}
|