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

@if($product->images->first()) {{ $product->name }} @else No Image Available @endif

{{ $product->name }}

Created: {{ $product->created_at->format('M d, Y H:i A') }}
Updated: {{ $product->updated_at->format('M d, Y H:i A') }}

Model:

{{ $product->model ?? 'N/A' }}

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

Manufacturer:

@if($product->manufacturer) {{ $product->manufacturer->name }} @else

N/A

@endif

Price:

{{ $product->formatted_price }}

Price Type:

{{ $product->price_type ?? 'N/A' }}

Unit Type:

{{ $product->unit_type ?? 'N/A' }}

Standard Price:

{{ $product->standard_price ? number_format($product->standard_price, 2) : 'N/A' }}

Special Price:

{{ $product->special_price ? number_format($product->special_price, 2) : 'N/A' }}

Barcode/SKU:

{{ $product->barcode ?? 'N/A' }}

Warranty:

{{ $product->warranty ?? 'N/A' }}

Status:

{{ $product->status ? 'Active' : 'Inactive' }}

View Count:

{{ $product->view_count }}
@if($product->datasheet_pdf_link)

Datasheet:

Download PDF
@endif

Description:

{{ $product->description ?? 'No description available.' }}
Related Information
Images

{{ $product->images->count() }}

Product Images

@if($product->images->count() > 0) View All @endif
Specifications

{{ $product->specifications->count() }}

Technical Specs

@if($product->specifications->count() > 0) View All @endif
Stock

{{ $product->stock->quantity ?? 0 }}

In Stock

@if($product->stock) Manage Stock @endif
Enquiries

{{ $product->enquiries->count() }}

Customer Enquiries

@if($product->enquiries->count() > 0) View All @endif
@can('update products') Edit Product @endcan @can('delete products')
@csrf @method('DELETE')
@endcan
@endsection @push('styles') @endpush