@extends('admin.layouts.app') @section('title', 'Products') @section('content')

All Products

Add Product
@if(request()->hasAny(['search', 'category', 'status'])) Clear @endif
@forelse($products as $product) @empty @endforelse
Image Product Category Price Stock Status Actions
@if($product->primaryImage) {{ $product->name }} @else
@endif
{{ Str::limit($product->name, 40) }}
SKU: {{ $product->sku }}
{{ $product->category->name ?? '-' }} @if($product->sale_price) KSh {{ number_format($product->price, 2) }}
KSh {{ number_format($product->sale_price, 2) }} @else KSh {{ number_format($product->price, 2) }} @endif
@if($product->stock_quantity == 0) Out of Stock @elseif($product->stock_quantity < 5) {{ $product->stock_quantity }} left @else {{ $product->stock_quantity }} in stock @endif @if($product->is_active) Active @else Inactive @endif @if($product->is_featured) Featured @endif
@csrf @method('DELETE')
No products found. Add your first product
{{ $products->links() }}
@endsection