@include('includes.alerts')

Products Data Table

Add Product
@foreach ($products as $product) @endforeach
# Image Title Category Price Price Before Status Actions
{{ $loop->iteration }} @php($img = $product->images->first()) @if ($img) {{ $product->title }} @else No Image @endif {{ $product->title }} {{ $product->category?->name ?? '-' }} ${{ number_format($product->price, 2) }} {{ $product->price_before ? '$' . number_format($product->price_before, 2) : '-' }} @if ($product->is_active) Active @else Inactive @endif
@csrf
{{ $products->links() }}