@extends('layouts.app') @section('title', $stock->product_name) @section('page-title', $stock->product_name) @section('content')
@if($stock->images && count($stock->images) > 0) {{ $stock->product_name }} @else @endif

{{ $stock->product_name }}

{{ $stock->product_code }}

@if($stock->is_available && $stock->available_quantity > 0) Available @elseif($stock->available_quantity <= 0) Out of Stock @else Unavailable @endif @if($stock->is_featured) Featured @endif
Edit

Product Information

{{ $stock->product_name }}

{{ $stock->product_code }}

{{ $stock->category->name ?? 'N/A' }}

{{ $stock->unit }}

@if($stock->description)

{{ $stock->description }}

@endif

Pricing & Inventory

₹{{ number_format($stock->price_per_unit, 2) }}

{{ number_format($stock->available_quantity, 2) }} {{ $stock->unit }}

{{ number_format($stock->minimum_order_quantity, 2) }} {{ $stock->unit }}

{{ $stock->lead_time_days }} days

@if($stock->discount_percentage > 0)

{{ $stock->discount_percentage }}% off

@endif @if($stock->bulk_discount_quantity && $stock->bulk_discount_percentage)

{{ $stock->bulk_discount_percentage }}% off for {{ number_format($stock->bulk_discount_quantity, 2) }}+ {{ $stock->unit }}

@endif
@if($stock->specifications)

Specifications

@foreach($stock->specifications as $key => $value)

{{ $value }}

@endforeach
@endif @if($stock->colors_available || $stock->sizes_available)

Available Options

@if($stock->colors_available)
@foreach($stock->colors_available as $color) {{ $color }} @endforeach
@endif @if($stock->sizes_available)
@foreach($stock->sizes_available as $size) {{ $size }} @endforeach
@endif
@endif

Supplier Information

{{ $stock->supplier->business_name }}
{{ $stock->supplier->contact_person }}
{{ $stock->supplier->phone }}
{{ $stock->supplier->city }}, {{ $stock->supplier->state }}
@if($stock->quality_grade || $stock->quality_notes)

Quality Information

@if($stock->quality_grade)
Grade {{ $stock->quality_grade }}
@endif @if($stock->quality_notes)

{{ $stock->quality_notes }}

@endif
@endif

Statistics

Views {{ number_format($stock->view_count) }}
Inquiries {{ number_format($stock->inquiry_count) }}
Orders {{ number_format($stock->order_count) }}
Last Updated {{ $stock->last_updated_at ? $stock->last_updated_at->format('M d, Y') : 'N/A' }}
@if($relatedStocks->count() > 0)

More from {{ $stock->supplier->business_name }}

@foreach($relatedStocks as $relatedStock)

{{ $relatedStock->product_name }}

{{ $relatedStock->product_code }}

₹{{ number_format($relatedStock->price_per_unit, 2) }} View Details
@endforeach
@endif
@endsection