@extends('layouts.admin') @section('title','Products') @section('page-title','Products') @section('content')
Add Product
@forelse($products as $p) @empty @endforelse
Product Category Price Stock Status Actions
@if($p->images && is_array($p->images) && count($p->images) > 0) {{ $p->name }} @else 🛍️ @endif

{{ $p->name }}

SKU: {{ $p->sku ?: 'N/A' }}

{{ $p->category->name ?? 'N/A' }}

Rs. {{ number_format($p->price) }}

@if($p->is_on_sale)

Sale: Rs. {{ number_format($p->sale_price) }}

@endif
{{ $p->stock }}
@csrf
@csrf
@csrf @method('DELETE')
No products found.
{{ $products->links() }}
@endsection