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

Digital Products

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

{{-- Status Tabs --}}
{{-- Filters & Table --}}
{{-- Filter Bar --}}
{{-- Table --}}
@forelse($products as $index => $product) @empty @endforelse
# Title Seller Detail Current Stock Published Catalog Today's Deal Featured Option
{{ $products->firstItem() + $index }}
@if($product->images->count() > 0) {{ $product->name }} @else
@endif {{ $product->name }}
{{ $product->vendor?->name ?? '-' }}

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

Total Sale: {{ $product->sales_count ?? 0 }}

Rating: {{ $product->rating ?? 0 }}

@if($product->variants && $product->variants->count() > 0) @foreach($product->variants->take(3) as $variant) {{ $variant->sku ?? $variant->name }}: {{ $variant->stock_quantity }}
@endforeach @if($product->variants->count() > 3) +{{ $product->variants->count() - 3 }} more @endif @else {{ $product->stock_quantity }} @endif
@csrf
@csrf
@csrf
@csrf
@csrf @method('DELETE')

No digital products found

Try adjusting your filters

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