@extends('layouts.vertical-individual', ['page_title' => $title ?? 'Revesmart-Launch-Drive']) @section('css') @endsection @section('content') @php $v = function ($obj, $key, $default = 0) { if (!is_object($obj) && !is_array($obj)) { return $default; } if (is_array($obj)) { return $obj[$key] ?? $default; } return $obj->{$key} ?? $default; }; $pct = function ($value) { if ($value === null || $value === '') { return '-'; } return rtrim(rtrim(number_format((float) $value, 2, '.', ''), '0'), '.') . '%'; }; $num = function ($value) { if ($value === null || $value === '') { return 0; } return is_numeric($value) ? (0 + $value) : $value; }; $showYesterday = !empty($currentMonth); $statusCols = 4; $dayCols = 8; $mtdCols = 8; $chestCols = 7; @endphp
@if(!empty($token)) @endif @if(!empty($formId)) @endif
@if($showYesterday) @endif @if($showYesterday) @endif @forelse($zbmReport as $zbm) @php $zbmObj = is_object($zbm) ? $zbm : (object) $zbm; $yesterday = $zbmObj->yesterday ?? (object) []; $mtd = $zbmObj->mtd ?? (object) []; $mtdChest = $zbmObj->mtdChest ?? (object) []; $rbms = is_array($zbmObj->rbms ?? null) ? $zbmObj->rbms : []; @endphp @if($showYesterday) @endif @foreach($rbms as $rbm) @php $rbmObj = is_object($rbm) ? $rbm : (object) $rbm; $ry = $rbmObj->yesterday ?? (object) []; $rm = $rbmObj->mtd ?? (object) []; $rc = $rbmObj->mtdChest ?? (object) []; @endphp @if($showYesterday) @endif @endforeach @empty @endforelse @if(!empty($grandTotal)) @php $gt = is_object($grandTotal) ? $grandTotal : (object) $grandTotal; $gy = $gt->yesterday ?? (object) []; $gm = $gt->mtd ?? (object) []; $gc = $gt->mtdChest ?? (object) []; @endphp @if($showYesterday) @endif @endif
Revesmart Launch Status{{ $yesterdayLabel }}{{ $mtdLabel }} {{ $chestLabel ?? 'MTD Chest' }}
RBM/ZBM MNP Participation % ParticipationCount of Doctor Launch to HCPs Handwriting Activity Dr Converted No of Dr Rx No of Foracort Rx No of Chemist availability POB I UnitsCount of Doctor Launch to HCPs Handwriting Activity Dr Converted No of Dr Rx No of Foracort Rx No of Chemist availability POB I Units Count of Doctor Launch to HCPs Handwriting Activity Dr Converted No of Dr Rx No of Foracort Rx % Chest Launch
{{ $zbmObj->zbm ?? '-' }} {{ $num($zbmObj->mnp ?? 0) }} {{ $num($zbmObj->participation ?? 0) }} {{ $pct($zbmObj->participation_percentage ?? null) }}{{ $num($v($yesterday, 'countOfDoctor')) }} {{ $num($v($yesterday, 'launchToHcps')) }} {{ $num($v($yesterday, 'revesmartHandwritingActivity')) }} {{ $num($v($yesterday, 'doctorConverted')) }} {{ $num($v($yesterday, 'doctorRx')) }} {{ $num($v($yesterday, 'noOfRxForacort')) }} {{ $num($v($yesterday, 'chemistAvailability')) }} {{ $num($v($yesterday, 'pobUnits')) }}{{ $num($v($mtd, 'countOfDoctor')) }} {{ $num($v($mtd, 'launchToHcps')) }} {{ $num($v($mtd, 'revesmartHandwritingActivity')) }} {{ $num($v($mtd, 'doctorConverted')) }} {{ $num($v($mtd, 'doctorRx')) }} {{ $num($v($mtd, 'noOfRxForacort')) }} {{ $num($v($mtd, 'chemistAvailability')) }} {{ $num($v($mtd, 'pobUnits')) }} {{ $num($v($mtdChest, 'countOfDoctor')) }} {{ $num($v($mtdChest, 'launchToHcps')) }} {{ $num($v($mtdChest, 'revesmartHandwritingActivity')) }} {{ $num($v($mtdChest, 'doctorConverted')) }} {{ $num($v($mtdChest, 'doctorRx')) }} {{ $num($v($mtdChest, 'noOfRxForacort')) }} {{ $pct($v($mtdChest, 'chestLaunchPercentage', null)) }}
{{ $rbmObj->rbm ?? '-' }} {{ $num($rbmObj->mnp ?? 0) }} {{ $num($rbmObj->participation ?? 0) }} {{ $pct($rbmObj->participation_percentage ?? null) }}{{ $num($v($ry, 'countOfDoctor')) }} {{ $num($v($ry, 'launchToHcps')) }} {{ $num($v($ry, 'revesmartHandwritingActivity')) }} {{ $num($v($ry, 'doctorConverted')) }} {{ $num($v($ry, 'doctorRx')) }} {{ $num($v($ry, 'noOfRxForacort')) }} {{ $num($v($ry, 'chemistAvailability')) }} {{ $num($v($ry, 'pobUnits')) }}{{ $num($v($rm, 'countOfDoctor')) }} {{ $num($v($rm, 'launchToHcps')) }} {{ $num($v($rm, 'revesmartHandwritingActivity')) }} {{ $num($v($rm, 'doctorConverted')) }} {{ $num($v($rm, 'doctorRx')) }} {{ $num($v($rm, 'noOfRxForacort')) }} {{ $num($v($rm, 'chemistAvailability')) }} {{ $num($v($rm, 'pobUnits')) }} {{ $num($v($rc, 'countOfDoctor')) }} {{ $num($v($rc, 'launchToHcps')) }} {{ $num($v($rc, 'revesmartHandwritingActivity')) }} {{ $num($v($rc, 'doctorConverted')) }} {{ $num($v($rc, 'doctorRx')) }} {{ $num($v($rc, 'noOfRxForacort')) }} {{ $pct($v($rc, 'chestLaunchPercentage', null)) }}
No report data found for {{ $month }}.
{{ $gt->zbm ?? 'Grand Total' }} {{ $num($gt->mnp ?? 0) }} {{ $num($gt->participation ?? 0) }} {{ $pct($gt->participation_percentage ?? null) }}{{ $num($v($gy, 'countOfDoctor')) }} {{ $num($v($gy, 'launchToHcps')) }} {{ $num($v($gy, 'revesmartHandwritingActivity')) }} {{ $num($v($gy, 'doctorConverted')) }} {{ $num($v($gy, 'doctorRx')) }} {{ $num($v($gy, 'noOfRxForacort')) }} {{ $num($v($gy, 'chemistAvailability')) }} {{ $num($v($gy, 'pobUnits')) }}{{ $num($v($gm, 'countOfDoctor')) }} {{ $num($v($gm, 'launchToHcps')) }} {{ $num($v($gm, 'revesmartHandwritingActivity')) }} {{ $num($v($gm, 'doctorConverted')) }} {{ $num($v($gm, 'doctorRx')) }} {{ $num($v($gm, 'noOfRxForacort')) }} {{ $num($v($gm, 'chemistAvailability')) }} {{ $num($v($gm, 'pobUnits')) }} {{ $num($v($gc, 'countOfDoctor')) }} {{ $num($v($gc, 'launchToHcps')) }} {{ $num($v($gc, 'revesmartHandwritingActivity')) }} {{ $num($v($gc, 'doctorConverted')) }} {{ $num($v($gc, 'doctorRx')) }} {{ $num($v($gc, 'noOfRxForacort')) }} {{ $pct($v($gc, 'chestLaunchPercentage', null)) }}
@endsection