@extends('layouts.app') @section('title', 'Stock Adjustments') @section('content')

Stock Adjustments

@can('create_stock_adjustment') @endcan
@if (session('error_details'))
Some rows were not applied:
@endif
@forelse($adjustments as $adjustment) @empty @endforelse
Date & Time Product Type Quantity Change Previous Qty New Qty Price Change Reason By
{{ \Carbon\Carbon::parse($adjustment->created_at)->format('M d, Y H:i') }} @if($adjustment->product) {{ $adjustment->product?->name ?? 'Deleted Product' }}
SKU: {{ $adjustment->product->sku }} @if($adjustment->batch)
Batch: {{ $adjustment->batch->batch_no }}{{ $adjustment->batch->expiry_date ? ' (exp ' . $adjustment->batch->expiry_date->format('d M Y') . ')' : '' }} @endif @else Product Deleted @endif
{{ $adjustment->adjustment_type_text }} {{ $adjustment->quantity_change }} {{ number_format($adjustment->previous_quantity) }} {{ number_format($adjustment->new_quantity) }} @if($adjustment->previous_price != $adjustment->new_price) {{ formatCurrency($adjustment->previous_price) }} → {{ formatCurrency($adjustment->new_price) }} @else No change @endif {{ $adjustment->reason }} {{ $adjustment->user->name }}
No stock adjustments found
Showing {{ $adjustments->firstItem() }} to {{ $adjustments->lastItem() }} of {{ $adjustments->total() }} entries
{{ $adjustments->links() }}
@endsection @section('scripts') @endsection