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

Stock Adjustment Update

{!! Form::open(['url' => action('StockAdjustmentController@update',['id'=>$stock_adjustment->id]), 'method' => 'PUT', 'id' => 'stock_adjustment_form' ]) !!}
{!! Form::label('location_id', __('purchase.business_location').':*') !!} {!! Form::select('location_id', $business_locations, $stock_adjustment->location_id, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'required']); !!}
{!! Form::label('ref_no', __('purchase.ref_no').':') !!} {!! Form::text('ref_no', $stock_adjustment->ref_no, ['class' => 'form-control']); !!}
{!! Form::label('transaction_date', __('messages.date') . ':*') !!}
{!! Form::text('transaction_date',$stock_adjustment->transaction_date, ['class' => 'form-control', 'readonly', 'required']); !!}
{!! Form::label('adjustment_type', __('stock_adjustment.adjustment_type') . ':*') !!} @show_tooltip(__('tooltip.adjustment_type')) {!! Form::select('adjustment_type', [ 'normal' => __('stock_adjustment.normal'), 'abnormal' => __('stock_adjustment.abnormal')], $stock_adjustment->adjustment_type, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'required']); !!}

{{ __('stock_adjustment.search_products') }}

{!! Form::text('search_product', null, ['class' => 'form-control', 'id' => 'search_product_for_srock_adjustment', 'placeholder' => __('stock_adjustment.search_product')]); !!}
@foreach($stock_adjustment->stock_adjustment_lines as $key => $line) @php $stock=get_stock($line->product_id,$line->variation_id); @endphp @endforeach
@lang('sale.product') @lang('sale.qty') @lang('sale.unit_price') @lang('sale.subtotal')
{{$line->product->name}} {{$line->product->sku}}
@lang('stock_adjustment.total_amount'): {{$stock_adjustment->final_total}}
{!! Form::label('total_amount_recovered', __('stock_adjustment.total_amount_recovered') . ':') !!} @show_tooltip(__('tooltip.total_amount_recovered')) {!! Form::text('total_amount_recovered', $stock_adjustment->total_amount_recovered, ['class' => 'form-control input_number', 'placeholder' => __('stock_adjustment.total_amount_recovered')]); !!}
{!! Form::label('additional_notes', __('stock_adjustment.reason_for_stock_adjustment') . ':') !!} {!! Form::textarea('additional_notes', $stock_adjustment->additional_notes, ['class' => 'form-control', 'placeholder' => __('stock_adjustment.reason_for_stock_adjustment'), 'rows' => 3]); !!}
{!! Form::close() !!}
@stop @section('javascript') @endsection