@extends('layouts.master-vnext') @section('page-title') @lang("stock-movements.return.title") @endsection @section('content') @include('common.errors') {{ Form::open(array('url' => action("Inventory\\ReturnController@store", ['division' => $division]))) }}
@if($consumers->count() === 1)
{{ Form::label('consumerName', trans('validation.attributes.consumer'), ['class' => 'control-label']) }} {{ Form::text('consumerName', $consumers->first()->name, ['class' => 'form-control disabled', 'disabled' => 'disabled']) }} {{ Form::hidden('consumer', $consumers->first()->id) }}
@else {{ Form::customSelect('consumer', $consumers->pluck('name', 'id'), $movement->stock_consumer_id) }} @endif
@if($locations->count() === 1)
{{ Form::label('locationName', trans('validation.attributes.stockRoom'), ['class' => 'control-label']) }} {{ Form::text('locationName', $locations->first()->name, ['class' => 'form-control disabled', 'disabled' => 'disabled']) }} {{ Form::hidden('location', $locations->first()->id) }}
@else {{ Form::customSelect('location', $locations->pluck('name', 'id'), $movement->location_id) }} @endif
{{ Form::customText('movedAt', \App\Localization\CarbonExtensions::toUserLocal($movement->moved_at), ['class' => 'form-control datetimepicker-control']) }}
{{ Form::customSelect('product', $products) }}
{{ Form::customText('quantity') }}
{{ Form::label('currencyName', trans('validation.attributes.currency'), ['class' => 'control-label']) }} {{ Form::text('currencyName', $currency->name, ['class' => 'form-control disabled', 'disabled' => 'disabled']) }} {{ Form::hidden('unitPriceCurrency', $currency->id) }}
{{ Form::customText('comments') }}
{{ Form::customSubmit(trans("stock-movements.return.title")) }} {{ Form::close() }} @include('inventory.return.recent-movements', ['recentMovements' => $recentMovements]) @endsection