@extends('layouts.vertical', ['page_title' => $title ?? 'Adherence Pack POB Drive']) @section('css') @endsection @section('content')

{{ $title }}

Adherence Pack POB of at least ₹15,000. Changing the month reloads the report.

@if (!empty($reportError)) @endif
@if (!empty($sections)) @endif

Loading the report. This can take a minute.

@if (!empty($sections)) @php $tabLabels = [ 'abm' => 'Details ABM wise', 'region' => 'Region Daily Winners', 'territory' => 'Territory Daily Winners', ]; @endphp
@foreach ($sections as $index => $section) @php $firstDay = null; $lastDay = null; foreach ($section['dayTypes'] as $dayIndex => $dayType) { if ($dayType === 'W' || $dayType === 'H') { if ($firstDay === null) { $firstDay = $dayIndex; } $lastDay = $dayIndex; } } @endphp
@foreach ($section['dayTypes'] as $dayType) @endforeach @foreach ($section['headers'] as $headerIndex => $header) @php $dayType = $section['dayTypes'][$headerIndex] ?? ''; $headerClass = $dayType === 'H' ? 'pob-day-h' : ($dayType === 'W' ? 'pob-day-w' : (($firstDay !== null && $headerIndex < $firstDay) ? 'pob-identity' : 'pob-summary')); @endphp @endforeach @forelse ($section['rows'] as $row) @foreach ($row['cells'] as $cellIndex => $cell) @php $dayType = $section['dayTypes'][$cellIndex] ?? ''; $cellClass = ''; if (empty($row['vacant']) && ($dayType === 'H' || $cell === 'Holiday')) { $cellClass = 'pob-day-h'; } @endphp @endforeach @empty @endforelse
{{ $dayType }}
{!! nl2br(e($header)) !!}
{{ $cell }}
No rows for this month.
@endforeach
@endif
@endsection @section('script') @endsection