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

Apply Filter

{!! Form::open(['method'=>'get','action' => 'HomeController@carpetReport']) !!}
@if(isset($user)) {!! Form::select('idUser',$users,$user,['class' => 'form-control']) !!} @else {!! Form::select('idUser',$users,null,['class' => 'form-control']) !!} @endif
@if(isset($status)) {!! Form::select('status',[''=>'---Select--','qrcode'=>'Qr Code Assigned','physical-test'=>'Physical Test Complete','lab-test'=>'Lab Test Complete','not-certified'=>'Yet to Certified','Certified'=>'Certified','Rejected'=>'Rejected'],$status,['class' => 'form-control']) !!} @else {!! Form::select('status',[''=>'---Select--','qrcode'=>'Qr Code Assigned','physical-test'=>'Physical Test Complete','lab-test'=>'Lab Test Complete','not-certified'=>'Yet to Certified','Certified'=>'Certified','Rejected'=>'Rejected'],null,['class' => 'form-control']) !!} @endif

@if(isset($size)) {!! Form::select('carpet_size',$carpetsize,$size,['class' => 'form-control select2']) !!} @else {!! Form::select('carpet_size',$carpetsize,null,['class' => 'form-control select2']) !!} @endif
@if(isset($quality)) {!! Form::select('overall_quality',[''=>'--select--','Excellent'=>'Excellent','Very Good'=>'Very Good','Good'=>'Good'],$quality,['class' => 'form-control']) !!} @else {!! Form::select('overall_quality',[''=>'--select--','Excellent'=>'Excellent','Very Good'=>'Very Good','Good'=>'Good'],null,['class' => 'form-control']) !!} @endif
{!! Form::submit('FILTER',['class' => 'btn btn-raised btn-primary btn-round waves-effect','id'=>'submit-btn']) !!}
{!! Form::close() !!}

List

@if(Auth::user()->idRole == '1' || Auth::user()->idRole == '2' || Auth::user()->idRole == '9') @endif @foreach($carpets as $value) @if(Auth::user()->idRole == '1' || Auth::user()->idRole == '2' || Auth::user()->idRole == '9') @endif @endforeach
S. No. Reg. No Product Picture WeaverAuthorised UserFees Status Last Updated BY Last Updated On Verification Link Contact Details Action
{{$i}} {{$value->gi_registration_no}} {{$value->weaver_name}} @if($value->idUser != null) @if(!empty($value->customer)) {{$value->customer->name}} @endif @endif {{$value->approxValue}} @if($value->status == 'Certified') {{$value->status}} @endif @if($value->status == 'Rejected') {{$value->status}} @endif
@if($value->physicalTest != null) Physical Test-Done/{{$value->physicalTest}} @else Physical Test - Pending @endif
@if($value->labTest != null) Lab Test - Done/{{$value->labTest}} @else Lab Test - Pending @endif
@if($value->qrcode != null) QR Code - Assigned @else QR Code (Not-Assigned) @endif
@if($value->updated_by != null) @if(!empty($value->updatedby)) {{$value->updatedby->name}} @endif @endif {{Carbon\Carbon::parse($value->updated_at)->format('d-m-Y H:i')}} @if($value->qrcode != null) {{$value->qrcode}} @endif @if($value->idUser != null) @if(!empty($value->customer)) {{$value->customer->mobile}} @endif @endif @if($value->status != 'Certified' && $value->status != 'Rejected')
@endif
@stop @section('script') @stop