@extends('admin.layouts.app') @section('title','CSR Report') @section('breadcrumb') / Reports / CSR @endsection @section('content')
@if($from || $to) {{ $from?->format('d M Y') ?? 'Beginning' }} — {{ $to?->format('d M Y') ?? 'Till Date' }} @else All Time @endif
| Company | Type | Projects | Budget | Spent | Remaining | Status |
|---|---|---|---|---|---|---|
| {{ $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) }} | ||||