@extends('admin.layout') @section('title', 'Products') @section('content')
Share on social media

New arrivals page (updates by itself): {{ $newUrl }}

Share on WhatsApp Facebook Open page

@can('products.manage')

Add product

@endcan
@foreach ($list as $p) @php($st = $p->stockState()) @php($r = $ratings[$p->id] ?? null) @endforeach
NameCategoryPriceStockRatingShown
@if ($p->image)@endif {{ $p->name }}
{{ $p->brand }}
{{ $p->category->name ?? '-' }} {{ naira($p->price) }}@if ($p->old_price)
{{ naira($p->old_price) }}@endif
{{ \App\Models\Product::STOCK_LABELS[$st] ?? $st }}@if ($p->stock_qty !== null) {{ $p->stock_qty }} units@endif @if ($r){{ number_format($r['avg'], 1) }} ★ ({{ $r['count'] }})@elsenone@endif {{ $p->active ? 'Yes' : 'Hidden' }} View @can('products.manage')Edit@endcan
@endsection