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

Total Products

{{ number_format($stats['total_products']) }}

Active Products

{{ number_format($stats['active_products']) }}

Out of Stock

{{ number_format($stats['out_of_stock']) }}

Low Stock

{{ number_format($stats['low_stock']) }}

Halal Products

{{ number_format($stats['halal_products']) }}

Clear

Products List

New Product
@forelse($products as $product) @empty @endforelse
Product Type Weight Price Stock Status Actions
@if ($product->image_path)
{{ $product->name }}
@else
@endif
{{ $product->name }}
@if ($product->is_halal) Halal @endif {{ Str::limit($product->description, 30) }}
{{ $product->type }} {{ number_format($product->weight, 2) }} kg Rp {{ number_format($product->total_price, 0, ',', '.') }} @if ($product->stock_quantity <= 0) Out of Stock @elseif($product->stock_quantity <= 10) {{ $product->stock_quantity }} (Low Stock) @else {{ $product->stock_quantity }} @endif @if ($product->status === 'active') Active @else Inactive @endif
@csrf @method('DELETE')
No products found
Try adjusting your search or filter criteria
@if ($products->hasPages())
{{ $products->appends(request()->query())->links() }}
@endif
@if (session('success'))
@endif @if (session('error'))
@endif @endsection