{{-- daily review --}}
{{-- total number of books sold (yesterday) --}} {{-- total number of books sold (today) --}}
daily METRIC QUANTITY VALUE (Naira)
total number of books sold (yesterday) {{ now()->yesterday()->format('D') }} {{ author()->totalBookSold('yesterday') }} {{ author()->totalSalesFromBooks('yesterday') }}
total number of books sold (today) {{ now()->format('D') }} {{ author()->totalBookSold('today') }} {{ author()->totalSalesFromBooks('today') }}
{{-- weekly review --}}
{{-- payment for lastweek information --}} {{-- payment due info for this week --}}
weekly METRIC QUANTITY REVENUE (₦) profit (₦)
LAST WEEK EARNINGS (paid on monday this week) {{ author()->totalBookSold('last_week') }} {{ author()->totalSalesFromBooks('last_week') }} {{ author()->presentTotalProfit('last_week') }}
this week's revenue: Payout Due (next monday) ongoing {{ author()->totalBookSold('this_week') }} {{ author()->totalSalesFromBooks('this_week') }} {{ author()->presentTotalProfit('this_week') }}
{{-- monthly review --}}
{{-- total number of books sold (last month) --}} {{-- total number of books sold (this month) --}}
monthly METRIC QUANTITY VALUE (Naira)
total number of books sold (last month) {{ now()->startOfMonth()->subMonth()->format('F') }} {{ author()->totalBookSold('last_month') }} {{ author()->totalSalesFromBooks('last_month') }}
total number of books sold (this month) {{ now()->startOfMonth()->format('F') }} {{ author()->totalBookSold('this_month') }} {{ author()->totalSalesFromBooks('this_month') }}
{{-- yearly review --}}
{{-- total number of books sold (last year) --}} {{-- total number of books sold (this year) --}}
YEARLY METRIC QUANTITY VALUE (Naira)
total number of books sold (last year) {{ now()->startOfYear()->subYear()->format('Y') }} {{ author()->totalBookSold('last_year') }} {{ author()->totalSalesFromBooks('last_year') }}
total number of books sold (this year) {{ now()->startOfYear()->format('Y') }} {{ author()->totalBookSold('this_year') }} {{ author()->totalSalesFromBooks('this_year') }}
{{-- all time review --}}
{{-- total no of books sold (all time) --}}
all time METRIC QUANTITY revenue (₦) profit (₦)
total no of books sold (all time) {{ author()->totalBookSold() }} {{ author()->totalSalesFromBooks() }} {{ author()->presentTotalProfit() }}