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

Products Management

Add Product
@if ($products->count() > 0)
@foreach ($products as $product) @endforeach
Image Name Price Stock Status Actions
@if ($product->image) {{ $product->name }} @else
@endif
{{ $product->name }} @if ($product->best_seller) Best Seller @endif
{{ Str::limit($product->description, 50) }}
Rp {{ number_format($product->price, 0, ',', '.') }} {{ $product->stock }} @if ($product->stock > 0) In Stock @else Out of Stock @endif
@csrf @method('DELETE')
Showing {{ $products->firstItem() }} to {{ $products->lastItem() }} of {{ $products->total() }} products
@if ($products->hasPages()) @endif
@else
No products found

Start by adding your first product.

Add Product
@endif
@endsection