@if(($work_order->work_status != 'Completed' && $work_order->work_status != 'Closed' && $work_order->work_status != 'Hold') && in_array(user_id(),$work_order->technician_id?:[]) )
{!! Form::horizontal_open()->id('workorder-menu-create4')->method('POST')->files('true')->enctype('multipart/form-data')->action(trans_url('admin/work_order/adminmaterialrequestsdetails_add/' . $work_order->getRouteKey())) !!} {!! Form::date('date2')->addClass('pickdate')->label('Date')->disabled()->placeholder('Please enter date')->addGroupClass('form-group-sm') !!} {!! Form::select('store_id')->readonly(user('admin.web')->access_other_work_department ? false : true)->options(['' => trans('material::material_receipt.placeholder.store_id')] + WorkDepartment::stores(), $work_order->work_department->store_id)->label(trans('material::material_receipt.label.store_id'))->addGroupClass('form-group-sm')->required() !!} {{-- {!! Form::select('material_ref')->options([], $work_order->work_department->store_id)->label('Material Code')->addGroupClass('form-group-sm')->required() !!} --}} {{-- {!! Form::text('material_name')->label('Material Name')->placeholder(' ')->addGroupClass('form-group-sm')->readonly() !!} {!! Form::text('serial_no')->label('Batch/Serial No.')->placeholder(' ')->addGroupClass('form-group-sm')->readonly() !!} {!! Form::hidden('unit')->id('unit') !!} {!! Form::hidden('price')->id('price') !!} {!! Form::hidden('manufacturer_id')->id('manufacturer_id') !!} {!! Form::hidden('supplier_id')->id('supplier_id') !!} --}}
{!! Form::number('quantity')->id('quantity_field')->min(0)->placeholder('Please enter quantity')->required()->min(1)->raw() !!} Unit
{!! Form::textarea('description')->id('description_field')->rows(2)->label('Description')->placeholder('i.e. supplier details, warranty period, serail number, etc')->addGroupClass('form-group-sm') !!}
Add Request {!! Form::close() !!}
@else
@endif