@php $craft = \App\CraftType::where('name', '=', $carpet->type)->first(); $info = \App\LableDisplayInfo::where('idCraft', '=', $craft->idCraft)->first(); @endphp

{{$carpet->type}} (Handmade,GI certified genuine product)

Craft {{$carpet->type}}
Code Of The Product {{$carpet->gi_registration_no}}
Date of Registration {{$carpet->created_at}}
Photograph
Physical Inspection
@if(!empty($info) && $info->physicalParam == 'Y') @php $phyparams = \App\CarpetTestParamVal::where('idCarpet','=',$carpet->idCarpet)->where('testtype','=','Physical')->get(); @endphp @endif @foreach($phyparams as $pv) @php $ctpv = \App\CarpetTestParamVal::where('idCarpet','=',$carpet->idCarpet)->where('idTestParam','=',$pv->idTestParam)->first(); $aparameter = \App\TestParam::where('id','=',$pv->idTestParam)->first(); @endphp @if(!empty($ctpv)) @endif @endforeach
{{$aparameter->param}} {{$ctpv->paramValue}}
Approx. Value {{$carpet->approxValue}}
Physical Testing {{$carpet->physicalTest}}
Q-R Label No. @php $qrlabelno = \App\QrcodeGenerator::where('qrcode', '=', $carpet->qrcode)->first(); @endphp @if(isset($qrlabelno)) {{$qrlabelno->humanReadableCode}} @endif
Lab Inspection
@if(!empty($info) && $info->labParam == 'Y') @php $labparams = \App\CarpetTestParamVal::where('idCarpet','=',$carpet->idCarpet)->where('testtype','=','Lab')->get(); @endphp @endif @foreach($labparams as $pl) @php $ltpv = \App\CarpetTestParamVal::where('idCarpet','=',$carpet->idCarpet)->where('idTestParam','=',$pl->idTestParam)->first(); $lparameter = \App\TestParam::where('id','=',$pl->idTestParam)->first(); @endphp @if(!empty($ltpv)) @endif @endforeach
{{$lparameter->param}} {{$ltpv->paramValue}}
Lab Testing {{$carpet->labTest}}
I/C Physical Inspection I/C Lab Testing
Final Approver