@extends('layouts.app') @section('title', $product->brand_name) @php $routePrefix = strtolower(auth()->user()->role->name); $canEdit = auth()->user()->hasPermissionName('products.edit'); $canDelete = auth()->user()->hasPermissionName('products.delete'); $canInvoices = auth()->user()->hasPermissionName('invoices.view'); $statusColors = [ 'Active' => 'primary', 'Discontinued' => 'danger', 'Under Registration' => 'warning', ]; @endphp @section('content')
This product has not appeared on any invoice yet.
| Invoice No. | Customer | Date | Qty | Unit Price | Line Total | Status |
|---|---|---|---|---|---|---|
| {{ $inv->invoice_number }} | {{ $inv->customer_name }} | {{ \Carbon\Carbon::parse($inv->invoice_date)->format('d M Y') }} | {{ $inv->pivot_quantity }} | ₹{{ number_format($inv->pivot_price, 2) }} | ₹{{ number_format($inv->pivot_total, 2) }} | {{ $inv->invoice_status }} |
| Totals | {{ number_format($totalQtySold) }} | ₹{{ number_format($totalRevenue, 2) }} | ||||
You do not have permission to view invoice records.