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

{{ trans('Add production') }}

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

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

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

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

{{ session()->get('error') }}
@endif
{{-- @if(in_array("Add", $inventorys)) --}} {!! Form::open(array('url' => route('mask-production-report.store'), 'method'=>'post', 'class' => 'form-horizontal', 'id' => 'addNewLeadSources', 'enctype'=>'multipart/form-data')) !!}
{{ trans('labels.back') }}
{!! Form::text('machines', '', array('class'=>'form-control typeahead', 'id'=>'machines', 'autocomplete'=>'off')) !!}
{!! Form::text('order_id', '', array('class'=>'form-control', 'id'=>'order_id')) !!}
{!! Form::text('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'], '', ['class' => 'form-control', 'id'=>'units', 'required'=>'required'])!!}
{!! 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')) !!}
{!! Form::text('total_quantity', '', 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() !!} {{-- @else

Please contact with SuperAdmin

@endif --}}
@endsection @section('scripts') @endsection