@extends('layouts.admin') @section('title', 'Products') @section('content')

Add Product

@csrf
@foreach ($products as $p) @endforeach
NameCategoryPriceStockStatus
{{ $p->name }} {{ $p->is_veg ? '🟢' : '🔴' }} {{ $p->category->name }} ₹{{ number_format($p->price, 2) }} @if (is_null($p->stock_qty)) Unlimited @else {{ $p->stock_qty }} @endif
@csrf
@csrf @method('DELETE')
{{ $products->links() }}
@endsection