@extends('layouts.admin') @section('content')

Product List

Add Product
@forelse($products as $product)
{{ $product->name }}
{{ $product->name }}

{{ $product->description }}

Price: ₱{{ number_format($product->price, 2) }}

Merchant: {{ $product->merchant->business_name ?? 'N/A' }}

@if($product->options->count() > 0)
Options: @foreach($product->options as $option)
{{ $option->option_name }} ({{ ucfirst($option->option_type) }}) @if($option->is_required) * @endif
@php $values = collect($option->option_values)->pluck('value')->toArray(); @endphp {{ implode(', ', $values) }}
@endforeach
@endif
Edit
@csrf @method('DELETE')
@empty
No products found.
@endforelse
@endsection