@extends('layouts.admin') @section('title', $category->name . ' Products - ' . $vendor->vendor_name) @section('content')

{{ $category->name }} Products

Back to Dashboard
Add Product
{{ $products->total() }}
Total Products
{{ $products->where('is_active', true)->count() }}
Active Products
{{ $products->where('is_featured', true)->count() }}
Featured Products
{{ $products->where('stock_status', 'low_stock')->count() }}
Low Stock
Products ({{ $products->total() }})
@if($products->count() > 0)
@foreach($products as $product) @endforeach
Product Brand SKU Price Stock Status Actions
@if($product->featured_image) {{ $product->name }} @else
@endif
{{ $product->name }}
@if($product->short_description) {{ Str::limit($product->short_description, 60) }} @endif
@if($product->is_featured) Featured @endif @if($product->variants_count > 0) {{ $product->variants_count }} variants @endif
@if($product->brand) {{ $product->brand->name }} @else - @endif @if($product->sku) {{ $product->sku }} @else - @endif
@if($product->sale_price) د.إ{{ number_format($product->sale_price, 2) }}
د.إ{{ number_format($product->base_price, 2) }} @else د.إ{{ number_format($product->base_price, 2) }} @endif
{{ $product->stock_quantity }}
{{ ucwords(str_replace('_', ' ', $product->stock_status)) }}
is_active ? 'checked' : '' }} onchange="toggleAvailability({{ $product->id }})">
Showing {{ $products->firstItem() }} to {{ $products->lastItem() }} of {{ $products->total() }} products
{{ $products->links() }}
@else
No Products Found

Start by adding your first product to this category.

Add Your First Product
@endif
@endsection