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

Our Products

Add New Product
{{-- Success / Error Messages --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@forelse ($products as $product) @empty @endforelse
# Image Name Category Stock Price (₹) Slug Actions
{{ $loop->iteration + ($products->currentPage() - 1) * $products->perPage() }} @if($product->thumbnail) {{ $product->name }} @else N/A @endif {{ $product->name }} {{ $product->category->name ?? 'N/A' }} {{ $product->stock }} {{ number_format($product->price, 2) }} {{ $product->slug }} Edit
@csrf @method('DELETE')
No products found.
{{-- Bootstrap Pagination --}}
{{ $products->links('pagination::bootstrap-5') }}
@endsection