@extends('business.layout') @section('title', 'Products') @section('content')
@if(\App\Support\Rbac::hasPermission(auth()->user()->role, 'products.manage')) @endif Export CSV {{ $showArchived ? 'Active' : 'Archived' }}
@forelse($products as $p) @php $thumbUrl = $p->image_path ? (str_starts_with($p->image_path, 'products/') ? '/api/v1/images/products/' . basename($p->image_path) . '?thumb=1' : '/' . ltrim($p->image_path, '/')) : null; @endphp @empty @endforelse
ImgProductSKU / BarcodeCategory / BrandBuying / Selling (UGX)StockActions
@if($thumbUrl) {{ $p->name }} @else
N/A
@endif
{{ $p->name }}@if($p->variant_name) ({{ $p->variant_name }})@endif {{ $p->sku }}
{{ $p->barcode ?? '-' }}
{{ $p->category->name ?? '-' }} / {{ $p->brand->name ?? '-' }} {{ number_format((float)$p->cost_price) }} / UGX {{ number_format((float)$p->selling_price) }} {{ $stocks[$p->id] ?? 0 }} {{ $p->unit_of_measure }}
Actions ▾
Print Barcode @if(\App\Support\Rbac::hasPermission(auth()->user()->role, 'products.manage'))
@csrf
@endif
No products match your filter. Click + Add Product to add one.
{{ $products->links() }}

Add New Product

@csrf
Optional Fields (Barcode, SKU, Brand, Unit, Expiry, Image, EFRIS)

Edit Product

@csrf

Import Products from CSV

Download the template first to ensure your column headers match.

Download CSV Template

@csrf
@endsection @push('scripts') @endpush