@extends('layouts.admin') @section('title', $product->name) @section('page_title', $product->name) @section('content')
Back to Products Edit Product
Product Information
Product Name: {{ $product->name }}
SKU: {{ $product->sku }}
Slug: {{ $product->slug }}
Category: @if($product->category) {{ $product->category->name }} @else N/A @endif
Brand: @if($product->brand) {{ $product->brand->name }} @else N/A @endif
Pricing
Sale Price: {{ \App\Support\Currency::symbol() }}{{ number_format($product->price, 2) }}
Cost Price: {{ \App\Support\Currency::symbol() }}{{ number_format($product->cost_price, 2) }}
Profit Margin: @php $margin = (($product->price - $product->cost_price) / $product->price * 100); @endphp {{ round($margin, 2) }}%
Description

{{ $product->description ?? 'No description available' }}

@if($product->specification)
Specifications
{!! nl2br($product->specification) !!}
@endif
Status
@if($product->is_active) Active @else Inactive @endif
@if($product->inventory)
Inventory
Quantity: @if($product->inventory->quantity > 0) {{ $product->inventory->quantity }} @else Out of Stock @endif
Location: {{ $product->inventory->location ?? 'N/A' }}
Last Updated: {{ $product->inventory->last_updated?->format('M d, Y') ?? 'N/A' }}
Edit Inventory
@endif
Details
Created: {{ $product->created_at->format('M d, Y H:i') }}
Updated: {{ $product->updated_at->format('M d, Y H:i') }}
@csrf @method('DELETE')
@endsection