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

Product: {{ $stock->product->name }}

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

Edit @if($stock->requires_approval && !$stock->is_approved)
@csrf
@endif

#{{ $stock->id }}

@php $statusColors = [ 'in_stock' => 'success', 'out_of_stock' => 'danger', 'arriving' => 'warning' ]; @endphp

{{ str_replace('_', ' ', ucfirst($stock->availability_status)) }}

{{ $stock->quantity }}

@if($stock->requires_approval) Yes @else No @endif

@if($stock->requires_approval)

@if($stock->is_approved) Approved @else Pending @endif

@if($stock->is_approved)

User #{{ $stock->approved_by }}

@endif @endif

@if($stock->estimated_time_of_arrival_date) {{ date('M d, Y', strtotime($stock->estimated_time_of_arrival_date)) }} @else N/A @endif

@if($stock->next_arrival_date) {{ date('M d, Y', strtotime($stock->next_arrival_date)) }} @else N/A @endif

@if($stock->last_arrival_date) {{ date('M d, Y', strtotime($stock->last_arrival_date)) }} @else N/A @endif

@if($stock->expected_restock_date) {{ date('M d, Y', strtotime($stock->expected_restock_date)) }} @else N/A @endif

{{ $stock->created_at->format('M d, Y H:i A') }}

{{ $stock->updated_at->format('M d, Y H:i A') }}

Quick Quantity Update
@csrf
Product Information

Product Name:

{{ $stock->product->name }}

Model:

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

Price:

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

Brand:

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

Manufacturer:

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

Category:

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

@endsection