@extends('layouts.app') @section('title', 'Sale Details') @section('content')
{{ $sale->sale_no }}
| # | Product | Qty | @if(auth()->user()->role === 'owner')Cost Price | @endifSelling Price | MRP | GST % | Tax | Line Total | @if(auth()->user()->role === 'owner')Profit | @endif
|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} |
@if($item->product)
{{ $item->product->name }}
@if($item->product->sku)
SKU: {{ $item->product->sku }}
@endif
@else
Product Deleted
@endif
|
{{ number_format((float) $item->qty, 2) }}
@if((float) $item->free_qty > 0)
+{{ number_format((float) $item->free_qty, 2) }}
Free
@endif
|
@if(auth()->user()->role === 'owner')
₹{{ number_format((float) $item->cost_price, 2) }} | @endif₹{{ number_format((float) $item->selling_price, 2) }} | ₹{{ number_format((float) $item->mrp, 2) }} | {{ number_format((float) $item->gst_rate, 2) }}% | ₹{{ number_format((float) $item->tax_amount, 2) }} | ₹{{ number_format((float) $item->line_total, 2) }} | @if(auth()->user()->role === 'owner')@if((float) $item->profit >= 0) ₹{{ number_format((float) $item->profit, 2) }} @else ₹{{ number_format((float) $item->profit, 2) }} @endif | @endif
| No products found for this sale. | |||||||||
| # | Date | Method | Reference | Notes | Added By | Amount |
|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $payment->payment_date ? $payment->payment_date->format('d-m-Y') : '-' }} | @if($payment->payment_method === 'Cash') Cash @elseif($payment->payment_method === 'UPI') UPI @elseif($payment->payment_method === 'Bank') Bank @elseif($payment->payment_method === 'Card') Card @else Other @endif | {{ $payment->reference_no ?: '-' }} | {{ $payment->notes ?: '-' }} | {{ $payment->creator->name ?? 'N/A' }} | ₹{{ number_format((float) $payment->amount, 2) }} |
| No payments recorded yet. | ||||||
| Product | Transaction | Qty In | Qty Out | Balance |
|---|---|---|---|---|
| {{ $ledger->product->name ?? 'Product Deleted' }} | {{ ucfirst($ledger->transaction_type) }} | {{ number_format((float) $ledger->qty_in, 2) }} | {{ number_format((float) $ledger->qty_out, 2) }} | {{ number_format((float) $ledger->balance, 2) }} |