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

Products

@if(request('filter'))@endif
@foreach(['' => 'All', 'featured' => 'Featured', 'outofstock' => 'Out of Stock'] as $key => $label) {{ $label }} @endforeach
@forelse($products as $product) @empty @endforelse
Product Price
@if($product->mainImage()) {{ $product->name }} @endif

{{ $product->name }}

@if($product->sku)

SKU: {{ $product->sku }}

@endif
@if($product->isOnSale()) ৳{{ number_format($product->sale_price) }} ৳{{ number_format($product->price) }} @else ৳{{ number_format($product->price) }} @endif Edit
No products found.
{{ $products->links() }}
@endsection