@extends('layouts.app') @section('title', 'Profit & Loss Report') @section('breadcrumb')
{{ $from->format('d M Y') }} — {{ $to->format('d M Y') }}
| Month | Revenue | Transactions | Bar |
|---|---|---|---|
| {{ \Carbon\Carbon::createFromFormat('Y-m', $m->month)->format('M Y') }} | ৳{{ number_format($m->revenue,0) }} | {{ $m->transactions }} |
| # | Product | Qty | Revenue | Profit | Margin |
|---|---|---|---|---|---|
| {{ $i+1 }} |
{{ $item->productVariant?->product?->name }}
{{ $item->productVariant?->variant_name }}
|
{{ $item->total_qty }} | ৳{{ number_format($item->revenue,0) }} | ৳{{ number_format($item->profit,0) }} | {{ $item->revenue > 0 ? number_format(($item->profit/$item->revenue)*100,1) : 0 }}% |