Profitability Analysis by Product/Service
@if($selectedPeriod)
Total Revenue
{{ number_format($totalRevenue, 2) }}
Across all products/services
Total Cost
{{ number_format($totalCost, 2) }}
Direct and indirect costs
Total Profit
{{ number_format($totalProfit, 2) }}
Net profit margin: {{ number_format($profitMargin, 2) }}%
Product/Service Performance
@foreach($productBreakdown as $product) @endforeach
Product/Service Revenue Direct Cost Indirect Cost Total Cost Gross Profit Net Profit Profit Margin Units Sold Avg. Price
{{ $product->name }} {{ number_format($product->revenue, 2) }} {{ number_format($product->direct_cost, 2) }} {{ number_format($product->indirect_cost, 2) }} {{ number_format($product->total_cost, 2) }} {{ number_format($product->gross_profit, 2) }} {{ number_format($product->net_profit, 2) }} {{ number_format($product->profit_margin, 2) }}% {{ number_format($product->units_sold) }} {{ number_format($product->average_price, 2) }}
Cost Analysis
@foreach($costBreakdown as $cost) @endforeach
Product/Service Material Cost Labor Cost Overhead Cost Other Costs Total Cost Cost per Unit
{{ $cost->product_name }} {{ number_format($cost->material_cost, 2) }} {{ number_format($cost->labor_cost, 2) }} {{ number_format($cost->overhead_cost, 2) }} {{ number_format($cost->other_costs, 2) }} {{ number_format($cost->total_cost, 2) }} {{ number_format($cost->cost_per_unit, 2) }}
Trend Analysis
@foreach($trendAnalysis as $trend) @endforeach
Product/Service Previous Period Revenue Current Period Revenue Revenue Growth Previous Period Profit Current Period Profit Profit Growth
{{ $trend->product_name }} {{ number_format($trend->previous_revenue, 2) }} {{ number_format($trend->current_revenue, 2) }} {{ number_format($trend->revenue_growth, 2) }}% {{ number_format($trend->previous_profit, 2) }} {{ number_format($trend->current_profit, 2) }} {{ number_format($trend->profit_growth, 2) }}%
@endif