@extends('layouts.master') @section('title') Revenue @endsection @section('css') @endsection @section('content')

Revenue

@php $selectedOption = request()->input('report_type', 'quick'); // Default to 'quick' if not provided $hour = \Carbon\Carbon::now()->format('H'); $formattedMonth = \Carbon\Carbon::createFromFormat('Y-m', $month)->format('F Y'); if ($hour >= 5 && $hour < 12) { $greeting = 'Good Morning'; } elseif ($hour >= 12 && $hour < 17) { $greeting = 'Good Afternoon'; } else { $greeting = 'Good Evening'; } @endphp

{{ $greeting }}, {{ auth()->user()->firstname }}!

Here's the report for the month of {{ $formattedMonth }}.

Total Revenue
{{ number_format($totalRevenue, 2) }}
Growth from Previous Month
{{ is_null($growth) ? 'N/A' : number_format($growth, 2) . ' %' }}
Total Payments
{{ $totalPayments }}
30-Day Payments Trend
@foreach(['Voucher', 'Payment Method', 'Amount', 'Reference', 'Timestamp'] as $cell) @endforeach
{{ $cell }}
@endsection @section('script') @endsection