@extends('layouts.app') @section('title', 'Profit & Loss Report') @section('content')

Profit & Loss Report

Back
Total Sales
₹{{ number_format($totalSales, 2) }}
Total Purchases
₹{{ number_format($totalPurchases, 2) }}
Net Profit/Loss
{{ $profit >= 0 ? '+' : '' }}₹{{ number_format($profit, 2) }}
({{ number_format($profitPercent, 2) }}% margin)
Summary

Period: {{ \Carbon\Carbon::parse($startDate)->format('d M Y') }} to {{ \Carbon\Carbon::parse($endDate)->format('d M Y') }}

Total Sales: ₹{{ number_format($totalSales, 2) }}

Total Purchases: ₹{{ number_format($totalPurchases, 2) }}

Net Profit: ₹{{ number_format($profit, 2) }}

Profit Margin: {{ number_format($profitPercent, 2) }}%

Status: {{ $profit >= 0 ? 'Profit' : 'Loss' }}

@endsection