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

Stock Adjustments

New Adjustment
@if(session('success')) @endif

Total Adjustments

{{ $stats['total'] }}

Pending Approval

{{ $stats['pending'] }}

Value Increased

LKR {{ number_format($stats['total_value_increase'], 2) }}

Value Decreased

LKR {{ number_format($stats['total_value_decrease'], 2) }}

Reset
@forelse($adjustments as $adjustment) @empty @endforelse
Adjustment # Date Product Type Quantity Value Reason Status Actions
{{ $adjustment->adjustment_number }} {{ $adjustment->adjustment_date->format('Y-m-d') }} {{ $adjustment->product->product_name }}
Batch: {{ $adjustment->batch->batch_number }}
@if($adjustment->type === 'increase') Increase @else Decrease @endif {{ number_format($adjustment->quantity_adjusted, 4) }} LKR {{ number_format($adjustment->total_value, 2) }} {{ $adjustment->reason }} @if($adjustment->status === 'pending') Pending @elseif($adjustment->status === 'approved') Approved @else Rejected @endif

No adjustments found.

Create your first stock adjustment
@if($adjustments->hasPages())
{{ $adjustments->links() }}
@endif
@endsection