@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 $brandColumns = $brandColumns ?? []; $colCount = 3 + count($brandColumns); @endphp @foreach ($brandColumns as $col) @endforeach @forelse ($rows as $row) @foreach ($brandColumns as $col) @endforeach @empty @endforelse
Territory KAM Name Total Brand POB Val{{ $col['key'] }}
{{ $row['territory'] }} {{ $row['kam_name'] }} {{ $ivaFmt($row['total'] ?? 0) }}{{ $ivaFmt($row['values'][$col['key']] ?? 0) }}
No data
@include('ivareport._styles') @endsection @section('script') @include('ivareport._scripts') @endsection