@extends('layouts.admin') @section('title', 'Reports') @section('content')

Total Revenue

₹{{ number_format($totalRevenue, 2) }}

Total Orders

{{ $totalOrders }}

Daily Breakdown

@foreach ($daily as $row) @endforeach
DateOrdersRevenue
{{ $row->day }}{{ $row->orders }}₹{{ number_format($row->revenue, 2) }}

Top Products

@foreach ($topProducts as $row) @endforeach
ItemQty SoldRevenue
{{ $row->name }}{{ $row->qty_sold }}₹{{ number_format($row->revenue, 2) }}

By Payment Method

@foreach ($byPaymentMethod as $row) @endforeach
MethodOrdersRevenue
{{ ucfirst($row->payment_method ?? '—') }}{{ $row->orders }}₹{{ number_format($row->revenue, 2) }}
@endsection