@extends('layouts.app') @section('content')
Stock Adjustment Details
Current Status
@if($stockAdjustment->status === 'pending') Pending Approval @elseif($stockAdjustment->status === 'approved') Approved @else Rejected @endif{{ $stockAdjustment->adjustment_number }}
{{ $stockAdjustment->adjustment_date->format('F d, Y h:i A') }}
{{ $stockAdjustment->creator->name }}
{{ $stockAdjustment->approver->name }}
{{ $stockAdjustment->approved_at->format('F d, Y h:i A') }}
{{ $stockAdjustment->product->product_name }}
{{ $stockAdjustment->product->category->category_name ?? 'N/A' }}
{{ $stockAdjustment->product->brand->brand_name ?? 'N/A' }}
{{ $stockAdjustment->batch->batch_number }}
{{ $stockAdjustment->stock->batch->expiry_date->format('Y-m-d') }}
{{ number_format($stockAdjustment->stock->available_quantity, 4) }}
LKR {{ number_format($stockAdjustment->stock->selling_price, 2) }}
{{ $stockAdjustment->reason }}
{{ $stockAdjustment->notes }}
{{ $stockAdjustment->journalEntry->entry_date->format('Y-m-d') }}
{{ $stockAdjustment->journalEntry->description }}
| Account | Debit | Credit |
|---|---|---|
| {{ $line->account->account_code }} - {{ $line->account->account_name }} | {{ $line->debit_amount > 0 ? 'LKR ' . number_format($line->debit_amount, 2) : '-' }} | {{ $line->credit_amount > 0 ? 'LKR ' . number_format($line->credit_amount, 2) : '-' }} |
| Total | LKR {{ number_format($stockAdjustment->journalEntry->lines->sum('debit_amount'), 2) }} | LKR {{ number_format($stockAdjustment->journalEntry->lines->sum('credit_amount'), 2) }} |
Created
{{ $stockAdjustment->created_at->format('M d, Y h:i A') }}
by {{ $stockAdjustment->creator->name }}
{{ $stockAdjustment->status === 'approved' ? 'Approved' : 'Rejected' }}
{{ $stockAdjustment->approved_at->format('M d, Y h:i A') }}
by {{ $stockAdjustment->approver->name }}