@extends('admin.layout') @section('content')

{{ trans('Add production quantity') }}

@php $getUserRoleData = userRoleData(); $inventorys = explode(",",$getUserRoleData->inventory); @endphp
@if ($errors->any())
Whoops! Please correct the error
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if(session()->has('message'))

{{ trans('labels.Successlabel') }}

{{ session()->get('message') }}
@endif @if(session()->has('error'))

{{ trans('labels.WarningLabel') }}

{{ session()->get('error') }}
@endif
{!! Form::open(array('url' => route('addMaskProductionData'), 'method'=>'post', 'class' => 'form-horizontal', 'id' => 'updateLeadSources', 'enctype'=>'multipart/form-data')) !!}
{{ trans('labels.back') }}
{!! Form::text('machines', $result['inventorysData']['get_machines']->name, array('class'=>'form-control', 'id'=>'machines', 'readonly'=>'readonly')) !!}
{!! Form::text('order_id', '', array('class'=>'form-control', 'id'=>'order_id')) !!}
{!! Form::text('operator_name', $result['inventorysData']['operator_name'], array('class'=>'form-control operator_name', 'id'=>'operator_name', 'autocomplete'=>'off')) !!}
{!! Form::text('quantity_acccepted', '', array('class'=>'form-control', 'id'=>'quantity_acccepted', 'required'=>'required')) !!}
{!! Form::text('quantity_rejected', '', array('class'=>'form-control', 'id'=>'quantity_rejected', 'required'=>'required')) !!}
{!!Form::select('units', $result['unitsData'], $result['inventorysData']['units_id'], ['class' => 'form-control', 'id'=>'units', 'required'=>'required', 'disabled'=>'disabled'])!!}
{!! Form::text('stock_date', date('Y-m-d'), array('class'=>'form-control', 'id'=>'stock_date','autocomplete'=>'off', 'readonly'=>'readonly')) !!}
{!! Form::text('machines_start_time', date('H:i'), array('class'=>'form-control', 'id'=>'machines_start_time')) !!}
{!! Form::text('stock_to_date', date('Y-m-d'), array('class'=>'form-control', 'id'=>'stock_to_date', 'autocomplete'=>'off', 'readonly'=>'readonly')) !!}
{!! Form::text('machines_end_time', date('H:i',strtotime('+8 hour',strtotime(date('Y-m-d H:i')))), array('class'=>'form-control', 'id'=>'machines_end_time')) !!}
{!! Form::text('machines_down_time', '', array('class'=>'form-control', 'id'=>'machines_down_time', 'maxlength'=>'4')) !!}
{!! Form::text('total_quantity', '0', array('class'=>'form-control', 'id'=>'total_quantity', 'readonly'=>'readonly')) !!}
{!! Form::text('rejection_percent', '', array('class'=>'form-control', 'id'=>'rejection_percent', 'readonly'=>'readonly')) !!}
{!!Form::textarea('comments', '', ['class' => 'form-control', 'id'=>'comments', 'rows'=>'2'])!!}
{!! Form::close() !!}
@endsection