@extends('layout2.clim.admin-header') @section('content')
Product Management
Add Product
@foreach ($products as $product) @endforeach
Image Name Price Stock Category Sub Category Status Actions
{{ $product->name }} {{ $product->name }} @if ($product->old_price) ৳{{ number_format($product->old_price) }} @endif ৳{{ number_format($product->new_price, 2) }} {{ $product->in_stock }} {{ $product->category->name }} {{ $product->subCategory->name ?? '—' }} @if ($product->is_top_selling) Top Selling @endif @if ($product->new_arrival) New Arrival @endif
@csrf @method('DELETE')
@foreach ($products as $product)
{{ $product->name }}
{{ $product->name }}
@if ($product->old_price) ${{ number_format($product->old_price) }} @endif ${{ number_format($product->new_price) }}
Stock: {{ $product->in_stock }} {{ $product->category->name }} @if ($product->subCategory) {{ $product->subCategory->name }} @endif
@if ($product->is_top_selling) Top Selling @endif @if ($product->new_arrival) New Arrival @endif
@csrf @method('DELETE')
@endforeach
@if ($products->hasPages()) @endif
@endsection