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

Correct Stock

Use this only when the recorded quantity differs from the physical count.

Back to Stock
@if($errors->any())
@endif @if(!$hasProducts)
No active products are available.
@else @php $selectedData = $selectedProduct ? [ 'id'=>$selectedProduct->id,'name'=>$selectedProduct->name,'stock'=>$selectedProduct->stockDisplay(), 'single_singular'=>$selectedProduct->singleUnitSingular(),'single_plural'=>$selectedProduct->singleUnitPlural(), 'wholesale_singular'=>$selectedProduct->wholesaleUnitSingular(),'wholesale_plural'=>$selectedProduct->wholesaleUnitPlural(), 'can_single'=>$selectedProduct->canSellSingle(),'can_wholesale'=>$selectedProduct->canSellWholesale(), 'current_single'=>$selectedProduct->looseSingleAvailable(),'current_wholesale'=>$selectedProduct->wholesaleAvailable(), ] : null; @endphp
@csrf
{{ $selectedProduct ? 'Current stock: '.$selectedProduct->stockDisplay() : 'Choose one product from the results.' }}
Current quantityChoose a productQuantity after correction—
Cancel
@endif @endsection