@extends('layouts.app') @section('content')
{{--

{{$channel->name}}

--}}
@foreach ($channel_partner as $channel) @inject('provider', 'App\Http\Controllers\ReportController') {{-- --}} @foreach ($callcenter as $k => $cc) {{-- {{$k == 1}} --}} {{-- {{$i == 0}} --}} {{-- --}} @endforeach

Today Summary >> {{$day = \Carbon\Carbon::parse($date = \Carbon\Carbon::today())->format('l')}}, {{$day = \Carbon\Carbon::parse($date = \Carbon\Carbon::today())->format('M, d, Y')}}

S# Name of Call Center PaidAgentsAll Leads Verified {{-- (1.03,1.05,1.07,1.08,1.09,1.10,1.02) --}} Non Verified {{-- (1.01) --}} In Process {{-- (1.03,1.05,1.07,1.08,1.09,1.10) --}} Activated {{-- (1.02) --}} Rejected {{-- (1.04) --}} Follow Up {{-- (1.03) --}} Carry Forward Point Average
{{++$k}} {{$provider::NumberOfAgent($cc->call_center_code)}} {{$cc->call_center_name}} {{$provider::TotalPaidCallAgent($cc->call_center_code,'postpaid',$channel->name)}} {{$provider::AllLeadsCallCenterToday($cc->call_center_code,'postpaid',$channel->name)}} {{$provider::CalCenterLeadtypeDate($cc->call_center_code,'verified','postpaid',$channel->name)}} {{-- {{$provider::CalCenterLeadtype($cc->call_center_code,'1.03,1.05,1.07,1.08,1.09,1.10','postpaid',$channel->name)}} --}} {{$provider::CalCenterLeadtypeDate($cc->call_center_code,'nonverified','postpaid',$channel->name)}} {{$provider::CalCenterLeadtypeDate($cc->call_center_code,'inprocess','postpaid',$channel->name)}} {{$a = $provider::CalCenterLeadtypeDate($cc->call_center_code,'1.02','postpaid',$channel->name)}} {{$provider::CalCenterLeadtypeDate($cc->call_center_code,'rejected','postpaid',$channel->name)}} {{$provider::CalCenterLeadtypeDate($cc->call_center_code,'followup','postpaid',$channel->name)}} {{-- plan_sum --}} {{-- 0 --}} {{-- carry_forward --}} {{$provider::carry_forward($cc->call_center_code,'postpaid',$channel->name)}} {{$provider::plan_sum($cc->call_center_code,'followup','postpaid',$channel->name)}} @if($a != 0) {{$k = number_format($provider::plan_sum($cc->call_center_code,'followup','postpaid',$channel->name) / $a,2)}} @else 0 @endif
{{$channel->name}} {{$provider::TotalPaid($cc->call_center_code,'postpaid',$channel->name)}} {{$provider::AllLeadsToday($cc->call_center_code,'postpaid',$channel->name)}} {{$provider::CalCenterToday($cc->call_center_code,'verified','postpaid',$channel->name)}} {{-- {{$provider::CalCenterLeadtype($cc->call_center_code,'1.03,1.05,1.07,1.08,1.09,1.10','postpaid',$channel->name)}} --}} {{$provider::CalCenterToday($cc->call_center_code,'nonverified','postpaid',$channel->name)}} {{$provider::CalCenterToday($cc->call_center_code,'inprocess','postpaid',$channel->name)}} {{$provider::CalCenterToday($cc->call_center_code,'1.02','postpaid',$channel->name)}} {{$provider::CalCenterToday($cc->call_center_code,'rejected','postpaid',$channel->name)}} {{$provider::CalCenterToday($cc->call_center_code,'followup','postpaid',$channel->name)}} {{-- plan_sum --}} 0 {{$provider::plan_sum($cc->call_center_code,'followup','postpaid',$channel->name)}} @if($a != 0) {{$k = number_format($provider::plan_sum($cc->call_center_code,'followup','postpaid',$channel->name) / $a,2)}} @else 0 @endif
@endforeach @foreach ($channel_partner as $channel) {{-- --}} @inject('provider', 'App\Http\Controllers\ReportController') {{-- --}} @foreach ($callcenter as $k => $cc) {{-- {{$k == 1}} --}} {{-- {{$i == 0}} --}} {{-- --}} @endforeach {{-- CalCenterTotalMonth --}}

{{$day = \Carbon\Carbon::parse($date = \Carbon\Carbon::today())->format('M, Y')}}, Till {{$day = \Carbon\Carbon::parse($date = \Carbon\Carbon::today())->format('M, d, Y')}}

S#AgentsName of Call Center All Leads Paid Verified {{-- (1.03,1.05,1.07,1.08,1.09,1.10,1.02) --}} Non Verified {{-- (1.01) --}} In Process {{-- (1.03,1.05,1.07,1.08,1.09,1.10) --}} Activated {{-- (1.02) --}} Rejected {{-- (1.04) --}} Follow Up {{-- (1.03) --}} Carry Forward Point Average
{{++$k}} {{$provider::NumberOfAgent($cc->call_center_code)}} {{$cc->call_center_name}} {{$provider::AllLeadsCallCenter($cc->call_center_code,'postpaid',$channel->name)}} {{$provider::TotalPaidMonthlyCallCenter($cc->call_center_code,'postpaid',$channel->name)}} {{$provider::CalCenterLeadtype($cc->call_center_code,'verified','postpaid',$channel->name)}} {{-- {{$provider::CalCenterLeadtype($cc->call_center_code,'1.03,1.05,1.07,1.08,1.09,1.10','postpaid',$channel->name)}} --}} {{$provider::CalCenterLeadtype($cc->call_center_code,'nonverified','postpaid',$channel->name)}} {{$provider::CalCenterLeadtype($cc->call_center_code,'inprocess','postpaid',$channel->name)}} {{$a = $provider::CalCenterLeadtype($cc->call_center_code,'1.02','postpaid',$channel->name)}} {{$provider::CalCenterLeadtype($cc->call_center_code,'rejected','postpaid',$channel->name)}} {{$provider::CalCenterLeadtype($cc->call_center_code,'followup','postpaid',$channel->name)}} {{-- plan_sum --}} 0 {{round($provider::plan_sum_monthly($cc->call_center_code,'followup','postpaid',$channel->name))}} {{-- A | {{$a}} --}} @if($a != 0) {{$k = number_format($provider::plan_sum_monthly($cc->call_center_code,'followup','postpaid',$channel->name) / $a,2)}} @else 0 @endif
{{$channel->name}} {{$provider::AllLeadsMonthly($cc->call_center_code,'postpaid',$channel->name)}} {{$provider::TotalPaidMonthly($cc->call_center_code,'postpaid',$channel->name)}} {{$provider::CalCenterTotalMonth($cc->call_center_code,'verified','postpaid',$channel->name)}} {{-- {{$provider::CalCenterLeadtype($cc->call_center_code,'1.03,1.05,1.07,1.08,1.09,1.10','postpaid',$channel->name)}} --}} {{$provider::CalCenterTotalMonth($cc->call_center_code,'nonverified','postpaid',$channel->name)}} {{$provider::CalCenterTotalMonth($cc->call_center_code,'inprocess','postpaid',$channel->name)}} {{$a= $provider::CalCenterTotalMonth($cc->call_center_code,'1.02','postpaid',$channel->name)}} {{$provider::CalCenterTotalMonth($cc->call_center_code,'rejected','postpaid',$channel->name)}} {{$provider::CalCenterTotalMonth($cc->call_center_code,'followup','postpaid',$channel->name)}} {{-- plan_sum --}} 0 {{round($provider::plan_sum_monthly($cc->call_center_code,'followup','postpaid',$channel->name))}} @if($a != 0) {{$k = number_format($provider::plan_sum_monthly($cc->call_center_code,'followup','postpaid',$channel->name) / $a,2)}} @else 0 @endif
@endforeach
@foreach ($channel_partner as $key => $channel) @endforeach
{{$channel->name}} 150 & Above {{-- plan_below_150 --}} {{$provider::plan_above_150($channel->name)}} Less Than 150 {{$provider::plan_below_150($channel->name)}} Total {{$provider::plan_total($channel->name)}}

COMBINE (HEADING WILL CHANGE/REMOVE LATER)

@inject('provider', 'App\Http\Controllers\ReportController') {{-- --}} @foreach ($callcenter as $k => $cc) {{-- {{$k == 1}} --}} {{-- {{$i == 0}} --}} {{-- --}} @endforeach

Today Summary >> {{$day = \Carbon\Carbon::parse($date = \Carbon\Carbon::today())->format('l')}}, {{$day = \Carbon\Carbon::parse($date = \Carbon\Carbon::today())->format('M, d, Y')}}

S#AgentsName of Call Center All Leads Verified {{-- (1.03,1.05,1.07,1.08,1.09,1.10,1.02) --}} Non Verified {{-- (1.01) --}} In Process {{-- (1.03,1.05,1.07,1.08,1.09,1.10) --}} Activated {{-- (1.02) --}} Rejected {{-- (1.04) --}} Follow Up {{-- (1.03) --}} Carry Forward Point Average
{{++$k}} {{$provider::NumberOfAgent($cc->call_center_code)}} {{$cc->call_center_name}} {{$provider::AllLeadsCallCenterTodayCombine($cc->call_center_code,'postpaid')}} {{$provider::CalCenterLeadtypeDateCombine($cc->call_center_code,'verified','postpaid')}} {{-- {{$provider::CalCenterLeadtype($cc->call_center_code,'1.03,1.05,1.07,1.08,1.09,1.10','postpaid',$channel->name)}} --}} {{$provider::CalCenterLeadtypeDateCombine($cc->call_center_code,'nonverified','postpaid')}} {{$provider::CalCenterLeadtypeDateCombine($cc->call_center_code,'inprocess','postpaid')}} {{$a = $provider::CalCenterLeadtypeDateCombine($cc->call_center_code,'1.02','postpaid')}} {{$provider::CalCenterLeadtypeDateCombine($cc->call_center_code,'rejected','postpaid')}} {{$provider::CalCenterLeadtypeDateCombine($cc->call_center_code,'followup','postpaid')}} {{-- plan_sum --}} 0 {{round($provider::plan_sum_combine($cc->call_center_code,'followup','postpaid'))}} @if($a != 0) {{$k = number_format($provider::plan_sum_combine($cc->call_center_code,'followup','postpaid') / $a,2)}} @else 0 @endif
{{-- {{$channel->name}} --}} ALL COMBINE {{$provider::AllLeadsTodayCombine($cc->call_center_code,'postpaid',$channel->name)}} {{$provider::CalCenterToday($cc->call_center_code,'verified','postpaid',$channel->name)}} {{-- {{$provider::CalCenterLeadtype($cc->call_center_code,'1.03,1.05,1.07,1.08,1.09,1.10','postpaid',$channel->name)}} --}} {{$provider::CalCenterTodayCombine($cc->call_center_code,'nonverified','postpaid',$channel->name)}} {{$provider::CalCenterTodayCombine($cc->call_center_code,'inprocess','postpaid',$channel->name)}} {{$provider::CalCenterTodayCombine($cc->call_center_code,'1.02','postpaid',$channel->name)}} {{$provider::CalCenterTodayCombine($cc->call_center_code,'rejected','postpaid',$channel->name)}} {{$provider::CalCenterTodayCombine($cc->call_center_code,'followup','postpaid',$channel->name)}} {{-- plan_sum --}} 0 {{round($provider::plan_sum_combine($cc->call_center_code,'followup','postpaid',$channel->name))}} @if($a != 0) {{$k = number_format($provider::plan_sum_combine($cc->call_center_code,'followup','postpaid',$channel->name) / $a,2)}} @else 0 @endif
{{-- --}} @inject('provider', 'App\Http\Controllers\ReportController') {{-- --}} @foreach ($callcenter as $k => $cc) {{-- {{$k == 1}} --}} {{-- {{$i == 0}} --}} {{-- --}} @endforeach

{{$day = \Carbon\Carbon::parse($date = \Carbon\Carbon::today())->format('M, Y')}}, Till {{$day = \Carbon\Carbon::parse($date = \Carbon\Carbon::today())->format('M, d, Y')}}

S#AgentsName of Call Center All Leads Verified {{-- (1.03,1.05,1.07,1.08,1.09,1.10,1.02) --}} Non Verified {{-- (1.01) --}} In Process {{-- (1.03,1.05,1.07,1.08,1.09,1.10) --}} Activated {{-- (1.02) --}} Rejected {{-- (1.04) --}} Follow Up {{-- (1.03) --}} Carry Forward Point Average
{{++$k}} {{$provider::NumberOfAgent($cc->call_center_code)}} {{$cc->call_center_name}} {{$provider::AllLeadsCallCenterCombine($cc->call_center_code,'postpaid',$channel->name)}} {{$provider::CalCenterLeadtypeCombine($cc->call_center_code,'verified','postpaid',$channel->name)}} {{-- {{$provider::CalCenterLeadtype($cc->call_center_code,'1.03,1.05,1.07,1.08,1.09,1.10','postpaid',$channel->name)}} --}} {{$provider::CalCenterLeadtypeCombine($cc->call_center_code,'nonverified','postpaid',$channel->name)}} {{$provider::CalCenterLeadtypeCombine($cc->call_center_code,'inprocess','postpaid',$channel->name)}} {{$a = $provider::CalCenterLeadtypeCombine($cc->call_center_code,'1.02','postpaid',$channel->name)}} {{round($provider::CalCenterLeadtypeCombine($cc->call_center_code,'rejected','postpaid',$channel->name))}} {{$provider::CalCenterLeadtypeCombine($cc->call_center_code,'followup','postpaid',$channel->name)}} {{-- plan_sum --}} 0 {{$provider::plan_sum_monthly_combine($cc->call_center_code,'followup','postpaid',$channel->name)}} {{-- A | {{$a}} --}} @if($a != 0) {{$k = number_format($provider::plan_sum_monthly_combine($cc->call_center_code,'followup','postpaid',$channel->name) / $a,2)}} @else 0 @endif
ALL COMBINE {{$provider::AllLeadsMonthlyCombine($cc->call_center_code,'postpaid',$channel->name)}} {{$provider::CalCenterMonthlyCombine($cc->call_center_code,'verified','postpaid',$channel->name)}} {{-- {{$provider::CalCenterLeadtype($cc->call_center_code,'1.03,1.05,1.07,1.08,1.09,1.10','postpaid',$channel->name)}} --}} {{$provider::CalCenterMonthlyCombine($cc->call_center_code,'nonverified','postpaid',$channel->name)}} {{$provider::CalCenterMonthlyCombine($cc->call_center_code,'inprocess','postpaid',$channel->name)}} {{$provider::CalCenterMonthlyCombine($cc->call_center_code,'1.02','postpaid',$channel->name)}} {{$provider::CalCenterMonthlyCombine($cc->call_center_code,'rejected','postpaid',$channel->name)}} {{$provider::CalCenterMonthlyCombine($cc->call_center_code,'followup','postpaid',$channel->name)}} {{-- plan_sum --}} 0 {{round($provider::plan_sum_combine($cc->call_center_code,'followup','postpaid',$channel->name))}} @if($a != 0) {{$k = number_format($provider::plan_sum_combine($cc->call_center_code,'followup','postpaid',$channel->name) / $a,2)}} @else 0 @endif
{{-- @endforeach --}} @endsection