@extends('pdf.reports.layouts.pdf') @section('style') @endsection @section('content') @foreach($task as $key=>$val) @if(!isset($val->assignedTo)) @continue @endif @endforeach
Converted Leads Closing Ratios
Salesperson Completed Appointments Without Appointments With Appointments Total Lead With / Completed Total Leads / Completed
@if($val->assignedTo){{$val->assignedTo->FirstName.' '.$val->assignedTo->LastName}}@endif {{$completedApp[$key]}} {{$withoutApp[$key]}} {{$withApp[$key]}} {{$withoutApp[$key]+$withApp[$key]}} @if($completedApp[$key]!=0){{round($withApp[$key]/$completedApp[$key]*100,2)}}@else{{0}}@endif% @if($completedApp[$key]!=0){{round(($withoutApp[$key]+$withApp[$key])/$completedApp[$key]*100,2)}}@else{{0}}@endif%
@endsection