@extends('admin.layout') @section('title', 'Products') @section('content')
New arrivals page (updates by itself): {{ $newUrl }}
| Name | Category | Price | Stock | Rating | Shown | ||
|---|---|---|---|---|---|---|---|
| @if ($p->image) |
{{ $p->name }} {{ $p->brand }} |
{{ $p->category->name ?? '-' }} | {{ naira($p->price) }}@if ($p->old_price) |
{{ \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 |