@extends('master.app') @section('title', 'Stock') @section('body') Edit Raw Material Stock Back @if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif @include('general.valert') @csrf @method('PUT') Category Choose Category @foreach ($categories as $row) cat_id)==$row->id)?'selected':'' }}> {{ $row->title_ps ?? $row->title_en }} @endforeach @error('cat_id') {{ $message }} @enderror Sub Category (optional) Choose Sub Category {{-- will be loaded by JS --}} Unit Choose Unit Type @foreach ($units as $row) unit_id)==$row->id)?'selected':'' }}> {{ $row->title_ps ?? $row->title_en }} @endforeach @error('unit_id') {{ $message }} @enderror Currency Choose Currency @foreach ($currencies as $row) currency_id)==$row->id)?'selected':'' }}> {{ $row->title_ps ?? $row->title_en }} @endforeach @error('currency_id') {{ $message }} @enderror Location (optional) No Location {{-- که location table لرې، دلته foreach کړه --}} @if(old('location_id', $stock->location_id) !== null && old('location_id', $stock->location_id) !== '') Loc #{{ old('location_id', $stock->location_id) }} A B @endif Preview Available: — | Avg CPI: — | Total: — QTY Cost Price (CPI) Sale Price (SPI) (optional) Update @endsection @section('pageJs') @endsection