@forelse($products as $product) @empty @endforelse
# Product Information Base Price Final Price Status Actions
{{ ($products->currentPage() - 1) * $products->perPage() + $loop->iteration }}
@if($product->image) @else
@endif
{{ $product->name }}
ID: #{{ $product->id }} | {{ $product->category->name ?? 'N/A' }}
Base: ${{ number_format($product->price, 2) }}
@if($product->variants->isNotEmpty()) @foreach($product->variants as $variant)
{{ $variant->name }}: ${{ number_format($variant->price, 2) }}
@endforeach @endif
${{ number_format($product->final_price, 2) }} @if($product->final_discount_percentage > 0) -{{ round($product->final_discount_percentage) }}% @endif
@if($product->variants->isNotEmpty()) @foreach($product->variants as $variant)
${{ number_format($variant->final_price ?? $variant->price, 2) }} @if($variant->final_discount_percentage > 0) -{{ round($variant->final_discount_percentage) }}% @else 0% @endif
@endforeach @endif
is_active ? 'checked' : '' }}>
@if(auth('admin')->user()?->can('update products')) @endif @if(auth('admin')->user()?->can('delete products'))
@csrf @method('DELETE')
@endif
No products found
Showing {{ $products->firstItem() ?? 0 }} to {{ $products->lastItem() ?? 0 }} of {{ $products->total() }} items
{{ $products->appends(request()->query())->links() }}