@extends('adminlte::page') @section('title', 'Product Details - MobileSentrix Admin') @section('content_header')

Product Details

Edit Product
@stop @section('content')

Product Information

Product Name {{ $product->name }}
SKU {{ $product->sku }}
Slug {{ $product->slug }}
Category {{ $product->category->name }}
Description {{ $product->description ?: 'No description' }}
Price ${{ number_format($product->price, 2) }}
Cost {{ $product->cost ? '$' . number_format($product->cost, 2) : 'Not set' }}
Profit Margin @if($product->cost) ${{ number_format($product->price - $product->cost, 2) }} ({{ number_format((($product->price - $product->cost) / $product->price) * 100, 1) }}%) @else N/A @endif
Stock Quantity @if($product->isLowStock()) {{ $product->stock_quantity }} (Low Stock) @elseif($product->stock_quantity == 0) Out of Stock @else {{ $product->stock_quantity }} @endif
Low Stock Threshold {{ $product->low_stock_threshold }}
Status @if($product->is_active) Active @else Inactive @endif
Featured @if($product->is_featured) Yes @else No @endif
Rating {{ $product->rating }}/5 ({{ $product->reviews_count }} reviews)
Created {{ $product->created_at->format('M d, Y H:i') }}
Last Updated {{ $product->updated_at->format('M d, Y H:i') }}

Product Images

@if($product->image)

{{ $product->name }}
@else

No main image

@endif @if($product->images && count($product->images) > 0)

@foreach($product->images as $img)
{{ $product->name }}
@endforeach
@endif

Actions

Edit Product
@csrf @method('DELETE')
Back to Products
@stop