@extends('layouts.app') @section('title', 'Profit & Loss Report') @section('content')
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' }}