@extends('layouts.admin-layout') @section('title', 'All Footer Pages') @section('content')

Monthly Product Profit Report

@foreach($data as $item) @endforeach
Product Name Actual Cost Selling Price Quantity Sold Total Profit
{{ $item['product_name'] }} $ {{ number_format($item['actual_cost'], 2) }} $ {{ number_format($item['selling_price'], 2) }} {{ $item['quantity'] }} $ {{ number_format($item['profit'], 2) }}
Total Profit: $ {{ number_format($totalProfit, 2) }}
@endsection @section('script') @endsection