@php $craft = \App\CraftType::where('name', '=', $carpet->type)->first(); $info = \App\LableDisplayInfo::where('idCraft', '=', $craft->idCraft)->first(); @endphp
@if($carpet->type == 'Crewel' || $carpet->type == 'Copperware'|| $carpet->type == 'Willow Wicker' || $carpet->type == 'Chain Stitch' || $carpet->type == 'Namdha' || $carpet->type == 'Filigree')

{{$carpet->type}} (Handmade , Genuine product)

@else

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

@endif
@php $isDisplay = \App\CarpetTestParamVal::join('craft_test_params','carpet_test_param_value.idTestParam','=','craft_test_params.idTestParam')->join('test_parameters','craft_test_params.idTestParam','=','test_parameters.id')->select('divider','craft_test_params.testtype','paramValue','displayNo','color','section','label','craft_test_params.idTestParam','craft_test_params.id')->where('displayNo','>',0)->where('idCarpet','=',$carpet->idCarpet)->where('idCraft', '=', $craft->idCraft)->groupBy('param')->orderBy('displayNo','ASC')->get(); $type =''; @endphp @if($isDisplay->count() > 0 && ( $carpet->type == 'Kani Shawl' || $carpet->type == 'Kashmir Sozni' || $carpet->type == 'Willow Wicker' || $carpet->type == 'Crewel'|| $carpet->type == 'Kashmir Walnut Wood Carving' || $carpet->type == 'Chain Stitch' || $carpet->type == 'Kashmir Khatamband'|| $carpet->type == 'Copperware' || $carpet->type == 'Kashmir Paper Machie' || $carpet->type == 'Namdha' || $carpet->type == 'Kashmir Pashmina')) @foreach($isDisplay as $dl) @if($dl->divider == 'Y') @endif @if($dl->testtype == 'Lab' && $dl->section == null) @if($type != '' && $type != 'Lab' && $dl->section == null) @endif @php if($dl->section != null) $type = $dl->section; else $type = 'Lab'; if($dl->color != null) $color = $dl->color; else $color = "#ed7d31"; $ltpv = \App\CarpetTestParamVal::where('idCarpet','=',$carpet->idCarpet)->where('idTestParam','=',$dl->idTestParam)->first(); $lparameter = \App\TestParam::where('id','=',$dl->idTestParam)->first(); @endphp @if(!empty($ltpv)) @endif @else @if($type != '' && $type != 'Physical' && $dl->section == null) @endif @php if($dl->section != null) $type = $dl->section; else $type = 'Physical'; if($dl->color != null) $color = $dl->color; else $color = "#5b9bd5"; $ctpv = \App\CarpetTestParamVal::where('idCarpet','=',$carpet->idCarpet)->where('idTestParam','=',$dl->idTestParam)->first(); $aparameter = \App\TestParam::where('id','=',$dl->idTestParam)->first(); @endphp @if(!empty($ctpv)) @endif @endif @endforeach @else @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)) @if(($carpet->type == 'Kashmir Pashmina') && ($lparameter->param == 'Weaving')) @else @endif @endif @endforeach @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 @endif @if(!empty($info) && $craft->type == 'GI') @else @endif
@php $hqr = \App\QrcodeGenerator::where('qrcode','=',$carpet->qrcode)->first(); @endphp @if(!empty($hqr)) {{$hqr->humanReadableCode}} @endif
@if(isset($carpet->customer)){{$carpet->customer->gis_no}} @endif @if(isset($carpet->customer)) @endif
{{$lparameter->param}} {{$ltpv->paramValue}}
{{$aparameter->param}} {{$ctpv->paramValue}}
{{$lparameter->param}} {{$ltpv->paramValue}}
{{$aparameter->param}} {{$ctpv->paramValue}}
Authorized GI User @if(isset($carpet->customer)) {{$carpet->customer->name}} @endif
Address of Authorized GI User @if(isset($carpet->customer)) {{$carpet->customer->area}} {{$carpet->customer->area}} {{$carpet->customer->pincode}} @endif
Artisan/Weaver {{$carpet->weaver_name}}
Address Of Artisan/ Weaver {{$carpet->area}} {{$carpet->district}} {{$carpet->pincode}}
Company @if(isset($carpet->customer)) {{$carpet->customer->name}} @endif
Address @if(isset($carpet->customer)) {{$carpet->customer->area}} {{$carpet->customer->area}} {{$carpet->customer->pincode}} @endif
Artisan {{$carpet->weaver_name}}
Address Of Artisan {{$carpet->area}} {{$carpet->district}} {{$carpet->pincode}}
@if(!empty($info))

{{$craft->description}}

@if($craft->washing_instructions != null)
Care Instructions:

{{$craft->washing_instructions}}

@endif @endif @if($carpet->type == 'Kani Shawl' || $carpet->type == 'Sozni Kashmir')

Disclaimer: Hand Spun Yarn is Superior To Machine Made Yarn.

@endif @if($carpet->status == 'Certified') @else @if($carpet->status == 'Rejected')

Rejected !

@else

@endif @endif @if(isset($craft) && $craft->type == 'NON-GI')

Tested & certified at
Quality Control division of DHHK .

@else

Tested,Certified and Labeled at
Pashmina Testing & Quality Certification Centre,
CDI Govt of Jammu & Kashmir, India.

@endif