@extends('layouts.admin') @section('title', 'Product Details') @section('page-title', 'Product Details') @section('breadcrumbs') Products chevron_right {{ $product->name }} @endsection @section('content')

{{ $product->name }}

Product Information

@if($product->image) {{ $product->name }} @else
inventory_2
@endif

{{ $product->name }}

{{ $product->code ?? '-' }}

{{ ucfirst($product->type) }}
@if($product->description)

Description

{{ $product->description }}

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

Gallery Images

@foreach($product->gallery_images as $galleryImage) Gallery Image @endforeach
@endif

Details

{{ $product->category->name ?? '-' }}

{{ $product->brand->name ?? '-' }}

{{ $product->unit ? $product->unit->name . ' (' . $product->unit->short_name . ')' : '-' }}

{{ $product->tax ? $product->tax->name . ' (' . $product->tax->rate . '%)' : '-' }}

Pricing

{{ number_format($product->selling_price, 2) }}

{{ number_format($product->purchase_price, 2) }}

@if($product->discount_type && $product->discount_value > 0)

{{ $product->discount_type === 'percentage' ? $product->discount_value . '%' : number_format($product->discount_value, 2) }}

@endif
@if($product->type === 'product')

Inventory

{{ $product->stock }}

{{ $product->alert_quantity }}

@if($product->barcode)

{{ $product->barcode }}

@endif
@endif

Status

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