@extends('layouts.app') @section('content')
Rs. {{ number_format($totalSales, 2) }}
Rs. {{ number_format($totalCost, 2) }}
Rs. {{ number_format($totalProfit, 2) }}
{{ number_format($averageMargin, 2) }}%
| Bill ID | Product | Qty | Cost/Unit | Sell/Unit | Total Cost | Total Sale | Profit | Margin | Date | Payment |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $sale['bill_id'] }} | {{ $sale['product_name'] }} | {{ $sale['quantity'] }} | Rs. {{ number_format($sale['purchase_price'], 2) }} | Rs. {{ number_format($sale['selling_price'], 2) }} | Rs. {{ number_format($sale['total_cost'], 2) }} | Rs. {{ number_format($sale['total_selling'], 2) }} | Rs. {{ number_format($sale['profit'], 2) }} | {{ number_format($sale['profit_margin'], 2) }}% | {{ $sale['sale_date'] }} | {{ ucfirst($sale['payment_method']) }} |