@extends('layouts.admin') @section('title', 'Products') @section('page_title', 'Products') @section('content')
Add New Product
@if($search)
Clear Filter Found {{ $products->total() }} result(s)
@endif
@forelse($products as $product) @empty @endforelse
Product Name Category Brand Price Stock Status Actions
{{ substr($product->name, 0, 30) }}
SKU: {{ $product->sku }}
{{ $product->category->name }} {{ $product->brand->name ?? 'N/A' }} {{ \App\Support\Currency::symbol() }}{{ number_format($product->price, 2) }} @if($product->inventory->quantity > 0) {{ $product->inventory->quantity }} @else Out of Stock @endif @if($product->is_active) Active @else Inactive @endif
@csrf @method('DELETE')
@if($search) No products found matching "{{ $search }}" @else No products found @endif
@if($products->count())
@endif @endsection