@extends('layouts.admin') @section('page-title', 'Products') @section('content')
{{-- Header --}}

Products

You have total {{ $products->total() }} products

{{-- Status Tabs --}}
{{-- Filters & Table --}}
{{-- Filter Bar --}}
{{-- Table --}}
@forelse($products as $index => $product) @empty @endforelse
# Title Vendor Detail Warehouse Stock Published Featured Options
{{ $products->firstItem() + $index }}
@if($product->images->count() > 0) {{ $product->name }} @else
@endif
@if($product->vendor) {{ $product->vendor->name }} @else Admin Product @endif

Price: ${{ number_format($product->price, 2) }}

Sales: {{ $product->sales_count ?? 0 }} | Rating: {{ $product->rating ?? 0 }}

@if(($product->warehouse ?? 'ghana') === 'china') 🇨🇳 China @else 🇬🇭 Ghana @endif {{ $product->stock_quantity }}
@csrf
@csrf

No products found

Try adjusting your filters or add a new product

{{-- Pagination --}} @if($products->hasPages())
{{ $products->links() }}
@endif
@endsection