@extends('admin.layout.app') @section('content')

Products

Add Product
@if (session('success'))
{{ session('success') }}
@endif
@if ((isset($categoryId) && $categoryId) || (isset($gender) && $gender) || request('subcategory_id')) @endif
@forelse ($products as $key => $product) @empty @endforelse
# Image Name Category Subcategory MRP SP Status Action
{{ ($products->firstItem() ?? 0) + $key }} @if ($product->images->count()) @else No Image @endif {{ $product->product_name }}
#{{ $product->sku }}
{{ $product->category->heading ?? '-' }} {{ $product->subCategory->subcategory_name ?? '-' }} {{ $product->mrp }} {{ $product->sp }} @if ($product->status == 'Active') Active @else Inactive @endif
@csrf @method('DELETE')
No products found.
@if ($products->hasPages())
{{ $products->links('pagination::bootstrap-4') }}
@endif
@endsection