@extends('layouts.app') @section('content') @include('layouts.navbar') @php use App\Helpers\RouteHelper; @endphp @include(RouteHelper::getSidebarView())
@if ($roleName == 'Customer Super Admin')
@endif

Total QR Scans

{{ $totalQrScans }}

No of project

{{ $totalQrProjects }}

Total Registered QR's

{{ $totalRegisterQrs }}



Customer Details

Name

{{ $customer->name }}


Country Origin

{{ $customer->country_origin ?? '' }}


Industry

{{ $customer->industry ?? '' }}


Description

{{ $customer->pdescription ?? '' }}


User Details

Name

{{ $user->name }}


Email Id

{{ $user->email ?? '' }}



Top Project by QR

Name

Qr


@foreach ($topProjectsByQr as $key => $topProject)

{{ $topProject->name }}

{{ $topProject->total_qr_count ?? '' }}


@endforeach

Top Project by Impression

Name

Scan


@foreach ($topProjectsByImpression as $key => $topProjectImpression)

{{ $topProjectImpression->name }}

{{ $topProject->scannedQrs->count() }}


@endforeach

Top Map Function by Qr

Name

Count

@foreach ($topMapFunction as $key => $function) @php if ($function['type'] == 1) { $name = 'Scan to call'; } elseif ($function['type'] == 2) { $name = 'SMS'; } elseif ($function['type'] == 3) { $name = 'Mail'; } elseif ($function['type'] == 4) { $name = 'URL'; } elseif ($function['type'] == 5) { $name = 'Text'; } elseif ($function['type'] == 6) { $name = 'Whatsapp'; } elseif ($function['type'] == 7) { $name = 'Connect to WiFi'; } elseif ($function['type'] == 8) { $name = 'Emergency Contact'; } elseif ($function['type'] == 9) { $name = ' Lost and Found'; } elseif ($function['type'] == 10) { $name = ' Contact Information'; } else { $name = null; } @endphp

{{ $name }}

{{ $function['count'] }}


@endforeach



Countries - Top 10
@php $total = array_sum(array_column($countries, 'count')); @endphp @foreach ($countries as $country) @php $percentage = ($country['count'] / $total) * 100; @endphp

{{ $country['name'] }}

({{ round($percentage, 2) }}%)

@endforeach
States - Top 10
@php $total = array_sum(array_column($states, 'count')); @endphp @foreach ($states as $state) @php $percentage = ($state['count'] / $total) * 100; @endphp

{{ $state['name'] }}

({{ round($percentage, 2) }}%)

@endforeach
Cities - Top 10
@php $total = array_sum(array_column($cities, 'count')); @endphp @foreach ($cities as $city) @php $percentage = ($city['count'] / $total) * 100; @endphp

{{ $city['name'] }}

({{ round($percentage, 2) }}%)

@endforeach
@if ($roleName == 'Customer Super Admin')
@foreach ($customer->customerUsers as $key => $customerUser) @endforeach
@endif
@endsection @section('script') @endsection