@extends('main') @section('content')

Carpet Registration

Add Carpet Details

@if(isset($carpet)) {!! Form::model($carpet, ['method' => 'PATCH', 'action' => ['CarpetController@update', $carpet->idCarpet], 'class' => 'form-horizontal','files'=>true]) !!} @else {!! Form::open(['url' => 'carpets', 'class' => 'form-horizontal','files'=>true]) !!} @endif
{!! Form::select('idUser',$users,null,['class' => 'form-control show-tick ms select2','required'=>'required']) !!}
{!! Form::text('gi_registration_no',null,['class' => 'form-control','required'=>'required']) !!} @if ($errors->has('gi_registration_no')) @endif
@if(isset($carpet)) {!! Form::submit('UPDATE',['class' => 'btn btn-raised btn-primary btn-round waves-effect']) !!} @else {!! Form::submit('SAVE',['class' => 'btn btn-raised btn-primary btn-round waves-effect','id'=>'submit-btn']) !!} @endif {!! Form::close() !!}

Physical Testing


@if(isset($carpet)) {!! Form::model($carpet, ['method' => 'PATCH', 'action' => ['CarpetController@update', $carpet->idCarpet], 'class' => 'form-horizontal','files'=>true]) !!}
{!! Form::text('knot_per_square',null,['class' => 'form-control']) !!}
{!! Form::select('raw_material_type',[''=>'---Select---','Pile Yarn'=>'Pile Yarn','Warp Yarn'=>'Warp Yarn','Weft Yarn'=>'Weft Yarn'],null,['class' => 'form-control show-tick ms']) !!}
{!! Form::text('carpet_size',null,['class' => 'form-control']) !!}

{!! Form::submit('SUBMIT',['class' => 'btn btn-raised btn-primary btn-round waves-effect']) !!}
{!! Form::close() !!} @endif

Laboratory Testing


@if(isset($carpet) && $carpet->physicalTest == 'Y' && $carpet->labTest == 'N') {!! Form::model($carpet, ['method' => 'PATCH', 'action' => ['CarpetController@update', $carpet->idCarpet], 'class' => 'form-horizontal','files'=>true]) !!}
{!! Form::text('raw_material_purity',null,['class' => 'form-control']) !!}
{!! Form::text('dye_used',null,['class' => 'form-control']) !!}
Dry
Wet


{!! Form::submit('SUBMIT',['class' => 'btn btn-raised btn-primary btn-round waves-effect']) !!}
{!! Form::close() !!} @endif

Assign Qrcode


@if(isset($carpet) && $carpet->labTest == 'Y') {!! Form::model($carpet, ['method' => 'PATCH', 'action' => ['CarpetController@update', $carpet->idCarpet], 'class' => 'form-horizontal','files'=>true]) !!}
{!! Form::select('qrcode',qrcodes(),null,['class' => 'form-control show-tick ms select2','required'=>'required']) !!}

{!! Form::submit('ASSIGN',['class' => 'btn btn-raised btn-primary btn-round waves-effect']) !!}
{!! Form::close() !!} @endif
@stop