A
Anonymous

Revenue Report Component - Copy this Html, Bootstrap Component to your project

@extends('layouts.app') @section('content') <h1>Báo cáo doanh thu</h1> <h2>Tổng doanh thu theo danh mục</h2> <table class="table"> <thead> <tr> <th>ID Danh mục</th> <th>Tổng doanh thu</th> </tr> </thead> <tbody> @foreach ($categoryRevenue as $revenue) <tr> <td>{{ $revenue->category_id }}</td> <td>{{ number_format($revenue->total_revenue, 2) }} VND</td> </tr> @endforeach </tbody> </table> <h2>Tổng số đơn hàng: {{ $totalOrders }}</h2> <h2>Tổng số khách hàng: {{ $totalCustomers }}</h2> @endsection

Prompt
Component Preview

About

Revenue Report Component - Display total revenue by category, order count, and customer count in a table format, built with HTML and B. Download free code!

Share

Last updated 1 month ago