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

{{$page_info['page_name']}}

Fresh Cases Disbursed on {{ date('jS F Y', strtotime("-1 days")) }}

@php $totalCases = 0; $totalAmount = 0; @endphp @foreach ($FreshCaseDisbursed_of_lastday as $data) @php $cases = $data->FreshCases ?? 0; $amount = $data->LoanAmount ?? 0; $totalCases += $cases; $totalAmount += $amount; @endphp @endforeach
Credit Wise Count of Cases Loan Amount
{{ $data->SanctionOfficer ?? 'N/A' }} {{ $cases }} {{ number_format($amount, 2) }}
Total {{ $totalCases }} {{ number_format($totalAmount, 2) }}

Fresh And Repeated Disbursement Comparison ({{ date('01') }} - {{ date('jS M Y', strtotime("-1 days")) }}) CM

@php $totalCurrMonthFreshCases = 0; $totalCurrMonthLoanAmount = 0; $totalLastMonthFreshCases = 0; $totalLastMonthLoanAmount = 0; @endphp @foreach ($FreshRepeatCaseComparison as $data) @php $totalCurrMonthFreshCases += $data->CurrMonthFreshCases; $totalCurrMonthLoanAmount += $data->CurrMonthLoanAmount; $totalLastMonthFreshCases += $data->LastMonthFreshCases; $totalLastMonthLoanAmount += $data->LastMonthLoanAmount; @endphp @endforeach
Credit Wise {{ date("M Y", strtotime('m')) }} {{ date("M Y", strtotime(date('Y-m') . " -1 month")) }}
Credit Manager Cases Loan Amount Cases Loan Amount Deficit Amount
{{ $data->SanctionOfficer }} {{ $data->CurrMonthFreshCases }} {{ number_format($data->CurrMonthLoanAmount, 2) }} {{ $data->LastMonthFreshCases }} {{ number_format($data->LastMonthLoanAmount, 2) }} {{ number_format($data->LastMonthLoanAmount - $data->CurrMonthLoanAmount, 2) }}
Total {{ $totalCurrMonthFreshCases }} {{ number_format($totalCurrMonthLoanAmount, 2) }} {{ $totalLastMonthFreshCases }} {{ number_format($totalLastMonthLoanAmount, 2) }} {{ number_format($totalLastMonthLoanAmount - $totalCurrMonthLoanAmount, 2) }}

Fresh Cases comparison - {{ date("M Y", strtotime('m')) }} / {{ date("M Y", strtotime("-1 month")) }} CM

@php $totalLastMonthCases = 0; $totalLastLoanAmount = 0; $totalCurrentMonthCases = 0; $totalCurrentLoanAmount = 0; @endphp @foreach ($FreshCaseComparison_lastmonth_tilldate as $data) @php $totalLastMonthCases += $data->LastMonthCases; $totalLastLoanAmount += $data->LastLoanAmount; $totalCurrentMonthCases += $data->CurrentMonthCases; $totalCurrentLoanAmount += $data->CurrentLoanAmount; @endphp @endforeach
Credit Wise {{ date("M Y", strtotime('m')) }} {{ date("M Y", strtotime(date('Y-m') . " -1 month")) }}
Credit Manager Cases Loan Amount Cases Loan Amount Deficit Amount
{{ $data->SanctionOfficer }} {{ $data->CurrentMonthCases }} {{ number_format($data->CurrentLoanAmount, 2) }} {{ $data->LastMonthCases }} {{ number_format($data->LastLoanAmount, 2) }} {{ number_format($data->CurrentLoanAmount - $data->LastLoanAmount, 2) }}
Total {{ $totalCurrentMonthCases }} {{ number_format($totalCurrentLoanAmount, 2) }} {{ $totalLastMonthCases }} {{ number_format($totalLastLoanAmount, 2) }} {{ number_format($totalCurrentLoanAmount - $totalLastLoanAmount, 2) }}

Disbursment comparison {{ date("M Y", strtotime('m')) }} / {{ date("M Y", strtotime("-1 month")) }}

{{ date("M Y", strtotime('m')) }} {{ date("M Y", strtotime(date('Y-m') . " -1 month")) }}
Date Loan Amount Date Loan Amount
{{ '1-' . date('j') . ' ' . date('M') }} {{ $finaldisburseComparisonQuery->CurrentMonthLoanAmount ?? 0 }} {{ '1-' . date('j', strtotime('-1 month')) . ' ' . date('M', strtotime('-1 month')) }} {{ $finaldisburseComparisonQuery->LastMonthLoanAmount }}
@endsection @section('custom-js') @endsection