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

{{ $title }}

@include('ivareport._filters')
@if (!empty($error))
{{ $error }}
@endif @include('ivareport._tabs')
@include('ivareport._export_header')
@php $groups = $brandGroups ?? []; $colCount = 2; foreach ($groups as $group) { $colCount += count($group['columns'] ?? []); } @endphp @foreach ($groups as $group) @endforeach @foreach ($groups as $group) @foreach ($group['columns'] as $j => $col) @endforeach @endforeach @forelse ($rows as $row) @foreach ($groups as $group) @php $brand = $row['brands'][$group['name']] ?? []; @endphp @endforeach @empty @endforelse
Territory KAM Name{{ $group['name'] }}
{{ $col['label'] }}
{{ $row['territory'] }} {{ $row['kam_name'] }}{{ $ivaFmt($brand['plan'] ?? 0) }} {{ $ivaFmt($brand['done'] ?? 0) }} {{ $ivaFmt($brand['pct'] ?? 0, true) }}
No data
@include('ivareport._styles') @endsection @section('script') @include('ivareport._scripts') @endsection