@extends('admin.layouts.app') @section('title','CSR Report') @section('breadcrumb') / Reports / CSR @endsection @section('content')
Clear
Companies
{{ $summary['total_companies'] }}
Projects
{{ $summary['total_projects'] }}
Total Budget
₹{{ number_format($summary['total_budget'],2) }}
Total Spent
₹{{ number_format($summary['total_spent'],2) }}
CSR Company Breakdown
{{ $companies->count() }} companies
@forelse($companies as $c) @php $budget = $c->projects->sum('budget_allocation'); $spent = $c->projects->sum('total_spent'); @endphp @empty @endforelse @if($companies->count()) @endif
CompanyTypeProjectsBudgetSpentRemainingStatus
{{ $c->company_name }} {{ $c->company_type ?? '—' }} {{ $c->projects->count() }} ₹{{ number_format($budget,2) }} ₹{{ number_format($spent,2) }} ₹{{ number_format(max(0,$budget-$spent),2) }} {{ ucfirst($c->status) }}
No CSR companies found
TOTAL ₹{{ number_format($summary['total_budget'],2) }} ₹{{ number_format($summary['total_spent'],2) }}
@endsection @push('scripts') @endpush