@extends('backEnd.layouts.master') @section('title', 'Profit & Loss Report') @section('css') @endsection @section('content')
{{-- HEADER --}}

Profit & Loss Report

Financial overview for: {{ $label ?? 'Today' }}

{{-- FILTER FORM --}}
@php $type = $type ?? request('type','today'); @endphp
{{-- RESULT AREA --}}
{{-- Stat Cards --}}
Total Sales
৳{{ number_format($salesAmount ?? 0, 2) }}
COGS (Cost)
৳{{ number_format($cogs ?? 0, 2) }}
Total Expenses
৳{{ number_format($totalExpense ?? 0, 2) }}
Net Profit/Loss
৳{{ number_format($netProfit ?? 0, 2) }}
{{-- Detailed Summary Table --}}
Financial Statement
Total Revenue (Sales) ৳{{ number_format($salesAmount ?? 0, 2) }}
Cost of Goods Sold (COGS) - ৳{{ number_format($cogs ?? 0, 2) }}
Gross Profit ৳{{ number_format($grossProfit ?? 0, 2) }}
Operating Expenses - ৳{{ number_format($totalExpense ?? 0, 2) }}
Net Profit / (Loss) ৳{{ number_format($netProfit ?? 0, 2) }}
@endsection @section('script') @endsection