@extends('admin.admin-layout') @section('content')
@if (session('success')) @endif @if (session('error')) @endif

All Product's

@foreach ($products as $product) @endforeach
Product Name & Size Price Stock Category Image Video Rating Action
{{ $product->name }}

Size : {{ $product->size ?? 'N/A'}}

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

{{ $product->stock }} Item Left

{{-- Replace with real sold data if available --}}
{{ $product->category->title ?? 'N/A' }} @php $groupedImages = $product->images->groupBy('color.color_name'); @endphp
@foreach($groupedImages as $colorName => $images)
{{ ucfirst($colorName) }} @foreach($images as $img) Product Image @endforeach
@endforeach
@if ($product->product_video && \Storage::disk('public')->exists($product->product_video)) @else No video available @endif
4.5 55 Review
@csrf @method('DELETE')
@endsection