@extends('layouts.app') @section('title', 'Products') @section('breadcrumb') @endsection @section('content') {{-- Filters --}}
{{-- Products Table --}}
Products ({{ $products->total() }})
@forelse($products as $product) @empty @endforelse
Image Product SKU Category Brand Type Variants Status Actions
@if($product->image) {{ $product->name }} @else
@endif
{{ $product->name }} @if($product->serial_tracked) Serial @endif @if($product->warranty_months > 0) {{ $product->warranty_months }}m warranty @endif {{ $product->sku }} {{ $product->category->name }} @if($product->category->parent) under {{ $product->category->parent->name }} @endif {{ $product->brand?->name ?? '—' }} @php $typeColors = ['standard'=>'secondary','serial'=>'primary','non_serial'=>'info','service'=>'success','bundle'=>'warning','configurable'=>'danger']; @endphp {{ $product->type_name }} {{ $product->variants_count }} {{ $product->is_active ? 'Active' : 'Inactive' }}
@can_permission('products.edit') @endcan_permission @can_permission('products.delete')
@csrf @method('DELETE')
@endcan_permission
No products found. Create your first product.
@if($products->hasPages())@endif
@endsection