@extends('layouts.master') @section('page-title',$page_info['page_title']) @section('main-section')

{{$page_info['page_name']}} ({{$filterShow}})

@if(isSuperAdmin()) @endif @if(rolesAccess('UTM Fresh Vs Repeated', 'export') || isSuperAdmin() || isAdmin())
@endif @if(!empty($filter)) @endif
@php $totalFreshCases = 0; $totalFreshLoanAmount = 0; $totalRepeatCases = 0; $totalRepeatLoanAmount = 0; @endphp @if(count($utmFreshRepeatData) > 0) @foreach($utmFreshRepeatData as $arr) @php $grandTotalCases = $arr->freshCases + $arr->repeatCases; $grandTotalLoanAmount = $arr->freshLoanAmount + $arr->repeatLoanAmount; // Accumulate totals $totalFreshCases += $arr->freshCases; $totalFreshLoanAmount += $arr->freshLoanAmount; $totalRepeatCases += $arr->repeatCases; $totalRepeatLoanAmount += $arr->repeatLoanAmount; @endphp @endforeach @else @endif @if(count($utmFreshRepeatData) > 0) @endif
UTM Source Fresh Cases Fresh Loan Amount Repeat Cases Repeat Loan Amount Grand Total Cases Grand Total Loan Amount
{{$arr->leadSource}} {{ $arr->freshCases }} {{ nf($arr->freshLoanAmount) }} {{ $arr->repeatCases }} {{ nf($arr->repeatLoanAmount) }} {{ $grandTotalCases }} {{ nf($grandTotalLoanAmount) }}
No Records Found
Total {{ $totalFreshCases }} {{ nf($totalFreshLoanAmount) }} {{ $totalRepeatCases }} {{ nf($totalRepeatLoanAmount) }} {{ $totalFreshCases + $totalRepeatCases }} {{ nf($totalFreshLoanAmount + $totalRepeatLoanAmount) }}
@endsection @section('custom-js') @endsection