@extends('layouts.master') @section('styles') @endsection @section('content')

Report Management

Export Excel

{{$type}} Product Coverage Report

@if($type=="EmployeeWise") @else @endif @if(count($data['segments'])>0) @foreach($data['segments'] as $segment) @endforeach @endif @if(count($data['segments'])>0) @foreach($data['segments'] as $segment) @endforeach @endif @if (collect($data['allData'])->count()>0) @foreach (collect($data['allData']) as $item) @if($type=="EmployeeWise") @else @endif @foreach($item->detail as $itemDetails) @endforeach @endforeach @endif
Brand ID Product Brand Product NameEmployee ID Employee NameDistributor IDDistributor Region RSM{{$segment->name}}
Total Outlets Covered Outlets Cov. %
{{$item->brand_id}} {{$item->brand_name}} {{$item->item_name}}{{$item->employee_id}} {{$item->employee_name}}{{$item->distributor_id}}{{$item->distributor_name}} {{$item->region}} {{$item->rsm}}{{$itemDetails->total_outlets}} {{$itemDetails->covered_outlets}} {{($itemDetails->total_outlets!=0)? number_format(($itemDetails->covered_outlets/$itemDetails->total_outlets*100),2): 0}}%
@endsection @section('scripts') @endsection