@php $typeLabels = ['type1' => 'E-commerce', 'type2' => 'Inquiry', 'type3' => 'Catalog']; @endphp @extends('layouts.admin') @section('content')

Catalog manager

Products

Browse, filter and edit products. Add new products from a focused page without the list getting in your way.

{{ $trashMode ? 'Active Products' : 'View Trash' }} Add Product
Reset
@forelse($products as $product) @empty @endforelse
Title Domain Type Category Status Stock
{{ $product->name }} @if(str_contains($product->meta_title ?? '', 'DEMO_DATA')) Demo data @endif {{ $product->slug }} {{ optional(optional($product->category)->parent)->name ?? 'Unassigned' }} {{ $typeLabels[$product->product_type ?? 'type2'] ?? 'Inquiry' }} {{ optional($product->category)->name }} {{ $trashMode ? 'Trashed' : ucfirst($product->status ?? 'active') }} {{ $product->stock ?? '-' }} @include('admin.partials.record-actions', [ 'type' => 'product', 'id' => $product->id, 'view' => route('products.show', $product->slug), 'edit' => route('admin.products.edit', $product), 'trashed' => $trashMode, ])
No products found.
@if($products->hasPages()) @php $currentPage = $products->currentPage(); $lastPage = $products->lastPage(); $pageNumbers = []; foreach ([1, 2, 3, $currentPage - 1, $currentPage, $currentPage + 1, $lastPage - 1, $lastPage] as $pageCandidate) { if ($pageCandidate >= 1 && $pageCandidate <= $lastPage && ! in_array($pageCandidate, $pageNumbers, true)) { $pageNumbers[] = $pageCandidate; } } sort($pageNumbers); $previousPage = 0; @endphp @endif
@endsection