@extends('layouts.vertical-individual', ['page_title' => $title ?? 'Synchrobreathe Report Card']) @section('css') @endsection @section('content')
Generating report card...

{{ $title }}

Select a user (territory), then add the lines that appear on the report card.

@if (!empty($reportError)) @endif @if (!empty($token ?? '')) @endif
@if (!empty($report)) @php $doctorCount = count($report['doctors']); $blankRows = max(0, 19 - $doctorCount); $monthCount = max(count($report['months']), 1); @endphp
Download
foracort synchrobreathe
Report Card
Cipla

Upgradation of Respi Physician

Name: {{ $report['tm']['name'] }}
HQ: {{ $report['tm']['hq'] }}
ABM: {{ $report['tm']['abm'] }}
Zone: {{ $report['tm']['zone'] }}
@for ($i = 0; $i < $monthCount * 2; $i++) @endfor @forelse ($report['months'] as $month) @empty @endforelse @foreach ($report['months'] as $month) @endforeach @if ($report['months'] === []) @endif @foreach ($report['doctors'] as $doctor) @foreach ($report['months'] as $month) @php $cell = $doctor['cells'][$month['key']] ?? null; @endphp @endforeach @endforeach @for ($i = 0; $i < $blankRows; $i++) @foreach ($report['months'] as $month) @endforeach @if ($report['months'] === []) @endif @endfor
{{ $month['label'] }}
QTY ValueQTY Value
{{ $doctor['name'] }}{{ $cell['qty'] ?? '0' }} {{ $cell['value'] ?? '0' }}
Comment: {{ $report['comment'] }}
RBM: {{ $report['rbm'] }}
ZBM: {{ $report['zbm'] }}
Marketing: {{ $report['marketing'] }}
@endif
@endsection @section('script') @endsection @section('script-bottom') @endsection