{{--
--}}
@if (($list == 3 && $date) || ($list == 4 && $date) || ($list == 5 && $date))
@if (($list == 3 && $date) || ($list == 4 && $date) || ($list == 5 && $date))

WORK REPORT ({{ $date }})

@else

DAILY WORK REPORT

@endif

Sales Person

: {{ $user->name }}

Total Work Efficiency

: {{ $totalPoints }}

Average Work Efficiency

: @if ($list == 5) {{ $totalPoints / 7 }} @elseif ($list == 3) {{ $totalPoints / 15 }} @elseif ($list == 4) {{ $totalPoints / 30 }} @endif
@else

Sales Person

: {{ $user->name }}

Work Efficiency

: {{ $totalPoints }}

Date

: @php if ($list == 1) { echo $date; } elseif ($list == 2) { echo $date; } @endphp
@endif
{{-- New Lead --}} @if ($totalNewLeadPoint > 0)

New Lead : {{ $totalNewLeadPoint }} Points

{{-- --}} @php $index = 1; @endphp @foreach ($tasks as $task) @if ($task->create_task_id == 1) {{-- --}} @php $index++; @endphp @endif @endforeach
# Company NamePhone CodeContact No Remarks
{{ $index }}

{{ ucfirst(strtolower($task->getLead->enquirer_name)) ?? '' }}

+{{ $task->getLead->phone_code ?? '' }} +{{ $task->getLead->phone_code ?? '' }}{{ $task->getLead->mobile ?? '' }} {{ $task->remarks ?? '' }}
@endif {{-- Fresh Call --}} @if ($totalFreshCallPoint > 0)

Fresh Call : {{ $totalFreshCallPoint }} Points

{{-- --}} @php $index = 1; @endphp @foreach ($tasks as $task) @if ($task->create_task_id == 2) {{-- --}} @php $index++; @endphp @endif @endforeach
# Company NamePhone CodeContact No Remarks
{{ $index }}

{{ ucfirst(strtolower($task->getLead->enquirer_name)) ?? '' }}

+{{ $task->getLead->phone_code ?? '' }} +{{ $task->getLead->phone_code ?? '' }}{{ $task->getLead->mobile ?? '' }} {{ $task->remarks ?? '' }}
@endif {{-- Follow Up Call --}} @if ($totalFollowUpCallPoint > 0)

Follow Up Call : {{ $totalFollowUpCallPoint }} Points

{{-- --}} @php $index = 1; @endphp @foreach ($tasks as $task) @if ($task->create_task_id == 3) {{-- --}} @php $index++; @endphp @endif @endforeach
# Company NamePhone CodeContact No Remarks
{{ $index }}

{{ ucfirst(strtolower($task->getLead->enquirer_name)) ?? '' }}

+{{ $task->getLead->phone_code ?? '' }} +{{ $task->getLead->phone_code ?? '' }}{{ $task->getLead->mobile ?? '' }} {{ $task->remarks ?? '' }}
@endif {{-- Virtual Meeting --}} @if ($totalVirtualPoint > 0)

Virtual Meeting : {{ $totalVirtualPoint }} Points

{{-- --}} @php $index = 1; @endphp @foreach ($tasks as $task) @if ($task->create_task_id == 4) {{-- --}} @php $index++; @endphp @endif @endforeach
# Company NamePhone CodeContact No Remarks
{{ $index }}

{{ ucfirst(strtolower($task->getLead->enquirer_name)) ?? '' }}

+{{ $task->getLead->phone_code ?? '' }} +{{ $task->getLead->phone_code ?? '' }}{{ $task->getLead->mobile ?? '' }} {{ $task->remarks ?? '' }}
@endif {{-- Fresh Meeting --}} @if ($totalFreshMeetingPoint > 0)

Fresh Meeting : {{ $totalFreshMeetingPoint }} Points

{{-- --}} @php $index = 1; @endphp @foreach ($tasks as $task) @if ($task->create_task_id == 5) {{-- --}} @php $index++; @endphp @endif @endforeach
# Company NamePhone CodeContact No Remarks
{{ $index }}

{{ ucfirst(strtolower($task->getLead->enquirer_name)) ?? '' }}

+{{ $task->getLead->phone_code ?? '' }} +{{ $task->getLead->phone_code ?? '' }}{{ $task->getLead->mobile ?? '' }} {{ $task->remarks ?? '' }}
@endif {{-- Follow Up Meeting --}} @if ($totalFollowUpMeetingPoint > 0)

Follow Up Meeting : {{ $totalFollowUpMeetingPoint }} Points

{{-- --}} @php $index = 1; @endphp @foreach ($tasks as $task) @if ($task->create_task_id == 6) {{-- --}} @php $index++; @endphp @endif @endforeach
# Company NamePhone CodeContact No Remarks
{{ $index }}

{{ ucfirst(strtolower($task->getLead->enquirer_name)) ?? '' }}

+{{ $task->getLead->phone_code ?? '' }} +{{ $task->getLead->phone_code ?? '' }}{{ $task->getLead->mobile ?? '' }} {{ $task->remarks ?? '' }}
@endif {{-- Office Visit --}} @if ($totalOfficeVisitPoint > 0)

Office Visit : {{ $totalOfficeVisitPoint }} Points

{{-- --}} @php $index = 1; @endphp @foreach ($tasks as $task) @if ($task->create_task_id == 7) {{-- --}} @php $index++; @endphp @endif @endforeach
# Company NamePhone CodeContact No Remarks
{{ $index }}

{{ $task->getLead ? ucfirst(strtolower($task->getLead->enquirer_name)) : '' }}

+{{ $task->getLead->phone_code ?? '' }} +{{ $task->getLead->phone_code ?? '' }}{{ $task->getLead ? $task->getLead->mobile : '' }} {{ $task->remarks ?? '' }}
@endif {{-- Direct Marketing --}} @if ($totalDirectMarketingPoint > 0)

Direct Marketing : {{ $totalDirectMarketingPoint }} Points

{{-- --}} @php $index = 1; @endphp @foreach ($tasks as $task) @if ($task->create_task_id == 8) {{-- --}} @php $index++; @endphp @endif @endforeach
# Company NamePhone CodeContact No Remarks
{{ $index }}

{{ ucfirst(strtolower($task->getLead->enquirer_name)) ?? '' }}

+{{ $task->getLead->phone_code ?? '' }} +{{ $task->getLead->phone_code ?? '' }}{{ $task->getLead->mobile ?? '' }} {{ $task->remarks ?? '' }}
@endif