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

Total Scan

{{$total}}

Traceability Report

@foreach($data as $i => $row) @php $scanned = \App\Carpet::select('gi_registration_no','idUser','type','qrcode','idCarpet')->whereNotNull('qrcode')->where('idCarpet',$row->idCarpet)->orderBy('idCarpet', 'desc')->first(); @endphp @endforeach
S. No. QR Code Craft Type Product Code Latitude Longitude Name of Place Date & Time
{{ $i+1 }} @if($scanned != null) {{ str_replace("https://cdiptqccgi.com/verify/","", $scanned->qrcode) }} @endif @if($scanned != null) {{$scanned->type}} @endif @if($scanned != null) {{$scanned->gi_registration_no}} @endif {{ round($row->latitude, 4) }} {{ round($row->longitude,4) }} View Place {{\Carbon\Carbon::parse($row->created_at)->format('d-m-Y')}}
@stop @section('script') @stop