Profit & Loss Statement

Period: {{ $data['filterDate'] === 'all' ? 'All Time' : ($data['filterDate'] === 'custom' ? $data['startDate'] . ' to ' . $data['endDate'] : ucfirst(str_replace('_', ' ', $data['filterDate']))) }}

Total Revenue

{{ $all_settings->currency ?? 'BDT' }} {{ number_format($data['totalRevenue'], 2) }}

Gross Profit

{{ $all_settings->currency ?? 'BDT' }} {{ number_format($data['grossProfit'], 2) }}

Total Expenses

{{ $all_settings->currency ?? 'BDT' }} {{ number_format($data['totalExpenses'], 2) }}

Net Profit

{{ $all_settings->currency ?? 'BDT' }} {{ number_format($data['netProfit'], 2) }}

Profit & Loss Statement

Description Amount ({{ $all_settings->currency ?? 'BDT' }})
Revenue {{ number_format($data['totalRevenue'], 2) }}
    Sales Revenue {{ number_format($data['totalRevenue'] - $data['totalRevenueFromDirectSales'], 2) }}
    Direct Sales Revenue {{ number_format($data['totalRevenueFromDirectSales'], 2) }}
Cost of Goods Sold {{ number_format($data['totalCOGS'], 2) }}
Gross Profit {{ number_format($data['grossProfit'], 2) }}
Operating Expenses {{ number_format($data['totalExpenses'], 2) }}
Net Profit {{ number_format($data['netProfit'], 2) }}

Top Selling Products

@forelse($data['topProducts'] as $product) @empty @endforelse
Product Total Sold Total Profit ({{ $all_settings->currency ?? 'BDT' }})
{{ $product->product->name ?? 'N/A' }} {{ $product->total_sold }} {{ number_format($product->total_profit, 2) }}
No data available