%PDF- %PDF-
Direktori : /home/silvzytp/crm-dub-code/storage/framework/views/ |
Current File : //home/silvzytp/crm-dub-code/storage/framework/views/954916ba79a8ca7a42fa66e467ff0bcde2103bb4.php |
<table class="table"> <thead> <th style="min-width: 200px;">Agent</th> <?php $__currentLoopData = MONTH_DAY_DATA; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$day): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <th style="min-width: 80px;"><?php echo e($day); ?></th> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <th style="min-width: 80px;">Total</th> </thead> <tbody> <?php foreach (MONTH_DAY_DATA as $key => $value) { $$key = 0; } ?> <?php $__currentLoopData = $agents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $agent): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $total = 0; ?> <tr> <td><?php echo e($agent->name); ?></td> <?php $__currentLoopData = MONTH_DAY_DATA; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$day): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $call_count = DB::table('fresh_leads') ->where('agent_id',$agent->id) ->whereYear('created_at',$year) ->whereMonth('created_at',$month) ->whereDay('created_at',$key)->count(); $$key += $call_count; $total += $call_count; ?> <td class="<?php echo e($call_count == 0 ? 'opacity-7' : ''); ?>"><?php echo e($call_count); ?></td> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <td><strong><?php echo e($total); ?></strong></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tr class="bg-success"> <td style="min-width: 200px;"><strong>Total</strong></td> <?php $in_total = 0; ?> <?php $__currentLoopData = MONTH_DAY_DATA; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$day): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $in_total += $$key; ?> <td><strong><?php echo e($$key); ?></strong></td> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <td><strong><?php echo e($in_total); ?></strong></td> </tr> <?php foreach (MONTH_DAY_DATA as $day_id => $day_name) { $$day_id = 0; } ?> <?php $__currentLoopData = $sources; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $source): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $source_column_total = 0; ?> <tr> <td><?php echo e($source->name); ?></td> <?php $__currentLoopData = MONTH_DAY_DATA; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $day_id=>$day_name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $source_count = DB::table('fresh_leads') ->where(['marketing_source_id'=>$source->id]) ->whereYear('created_at',$year) ->whereMonth('created_at',$month) ->whereDay('created_at',$day_id)->count(); $$day_id += $source_count; $source_column_total += $source_count; ?> <td class="<?php echo e($source_count == 0 ? 'opacity-7' : ''); ?>"><?php echo e($source_count); ?></td> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <td><strong><?php echo e($source_column_total); ?></strong></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tr class="bg-success"> <td style="min-width: 200px;"><strong>Total</strong></td> <?php $source_in_total = 0; ?> <?php $__currentLoopData = MONTH_DAY_DATA; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $day_id=>$day_name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $source_in_total += $$day_id; ?> <td><strong><?php echo e($$day_id); ?></strong></td> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <td><strong><?php echo e($source_in_total); ?></strong></td> </tr> </tbody> </table> <?php /**PATH /home/silvzytp/crm-dub-code/resources/views/backend/report/filter.blade.php ENDPATH**/ ?>