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

{{$channel->name}}

--}}
{{-- DailyActivation --}}

Progress Report

@foreach ($callcenter as $item)

{{$item->call_center_name}} {{Carbon\Carbon::now()->daysInMonth}}

@inject('provider', 'App\Http\Controllers\ReportController') @php // $firstDay = $startDate->firstOfMonth(); // $now = \Carbon\Carbon::now(); $startDate = \Carbon\Carbon::now(); //returns current day $now = $startDate->firstOfMonth(); $dates = [$now->format('M d, Y')]; for($i = 0; $i < Carbon\Carbon::now()->daysInMonth - 1; $i++) { echo ''; // echo ''; } @endphp @php $itc = $item->call_center_code; $u = \App\User::select('users.*')->whereIn('role',['Sale','NumberAdmin'])->where('agent_code',$item->call_center_code)->get(); @endphp @foreach ($u as $item) {{-- @if($) --}} @php if($item->name == 'CC202'){ $bg = 'red'; } else{ $bg = 'blue'; } @endphp @php $dates = [$now->format('M d, Y')]; if($item->name == 'CC202'){ $bg = 'red'; } else{ $bg = 'white'; } @endphp @for ($i = 0; $i < Carbon\Carbon::now()->daysInMonth - 1; $i++) @endfor @endforeach @php $dates = [$now->format('M d, Y')]; @endphp @for ($i = 0; $i < Carbon\Carbon::now()->daysInMonth - 1; $i++) @endfor
Agent Name @php $startDate = \Carbon\Carbon::now(); //returns current day $now = $startDate->firstOfMonth(); echo $now->format('M d, Y') @endphp ' . $now->addDays(1)->format('M d, Y') . '' . $dates[] = $now->subDays($i)->format('M d, Y') . 'Grand Total
{{$item->name}} @php $startDate = \Carbon\Carbon::now(); //returns current day $now = $startDate->firstOfMonth(); $k = $provider::ActivationUser($item->id,$now->format('Y-m-d')); @endphp @if($k < 2) {{--

--}} {{$k}} {{-- p --}} {{--

--}} @else {{--

--}} {{$k}} {{--

--}} {{-- --}} {{-- p --}} @endif {{-- {{$now->format('Y-m-d')}} --}} {{-- {{}} --}}
{{-- {{$now->addDays(1)->format('Y-m-d')}} --}} @php $k = $provider::ActivationUser($item->id,$now->addDays(1)->format('Y-m-d')) @endphp {{-- @if ($k < 2 ) {{$k}} --}} {{-- --}} {{-- @else --}} @if($k < 2) {{$k}} {{-- p --}} {{--

--}} @else {{--

--}} {{$k}} {{--

--}} {{-- --}} {{-- p --}} @endif
{{$provider::ActivationUserGrandTotal($item->id)}} {{-- Grand Total --}}
Total Leads @php $startDate = \Carbon\Carbon::now(); //returns current day $now = $startDate->firstOfMonth(); @endphp {{-- {{$itc}} --}} {{-- {{$now->format('Y-m-d')}} --}} {{$k = $provider::ActivationCallAgent($itc,$now->format('Y-m-d'))}} {{-- {{$now->addDays(1)->format('Y-m-d')}} --}} {{$provider::ActivationCallAgent($itc,$now->addDays(1)->format('Y-m-d'))}} {{$provider::ActivationCallAgentGrandTotal($itc)}} {{-- Grand Total --}}
@endforeach

Grand Total: ({{$provider::ActivationGrandTotal()}})

{{-- @endforeach --}} @endsection