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

Product Details: {{ $product->name }}

@if(auth('admin')->user()?->can('update products')) Edit @endif Back to List
Name {{ $product->name }}
Category {{ optional($product->category)->name }}
Subcategory {{ optional($product->subcategory)->name }}
Brand {{ optional($product->brand)->name }}
Price ${{ number_format($product->price, 2) }}
Discount {{ $product->discount }}%
Available Quantity {{ $product->available_qty }}
Stock Threshold {{ $product->stock_threshold_qty }}
Down Payment ${{ number_format($product->down_payment, 2) }}
Status {{ $product->is_active ? 'Active' : 'Inactive' }}
Description {{ $product->description }}

Variants

@if($product->variants && $product->variants->count() > 0)
    @foreach($product->variants as $variant)
  • {{ $variant->name }} - Price: ${{ $variant->price }}
  • @endforeach
@else

No variants

@endif
@endsection