@extends('layouts.app') @section('title', 'Product Reports') @section('content')
| Invoice | Date | Items | Subtotal | Discount | Grand Total |
|---|---|---|---|---|---|
| {{ $s->invoice_number }} | {{ $s->sale_date->format('d M Y') }} | {{ $s->items->count() }} | {{ number_format($s->subtotal, 2) }} | {{ number_format($s->discount_amount, 2) }} | {{ number_format($s->grand_total, 2) }} |
| No sales in this range. | |||||
| Product | Category | Total Sold | Current Stock | ||
| {{ $p->name }} | {{ $p->category->name ?? '—' }} | {{ (int) ($p->total_sold ?? 0) }} | {{ $p->quantity_stock }} | ||
| No products. | |||||
| Product | Category | Sale Price | Stock | @if($report==='stock')Total Sold | @endifStatus |
| {{ $p->name }} | {{ $p->category->name ?? '—' }} | {{ number_format($p->sale_price, 2) }} | {{ $p->quantity_stock }} | @if($report==='stock'){{ (int) ($p->total_sold ?? 0) }} | @endif@if($p->isOutOfStock())Out@elseif($p->isLowStock())Low@elseOK@endif |
| No products. | |||||