@extends('admin.layouts.app') @section('title','CSR Company — '.$company->company_name) @section('breadcrumb') / CSR Companies / {{ $company->company_name }} @endsection @section('content')
Company Details
Type{{ $company->company_type ?? '—' }}
Registration No.{{ $company->registration_number ?? '—' }}
Website{{ $company->website_url ? '' : '—' }} @if($company->website_url){{ $company->website_url }}@endif
Status{{ ucfirst($company->status) }}
Address{{ $company->address ?? '—' }}
Contact Person
Name{{ $company->contact_person_name ?? '—' }}
Position{{ $company->contact_position ?? '—' }}
Email{{ $company->contact_email ?? '—' }}
Phone{{ $company->contact_phone ?? '—' }}
Total Projects
{{ $stats['total_projects'] }}
Active
{{ $stats['active_projects'] }}
Total Budget
₹{{ number_format($stats['total_budget'],2) }}
Total Spent
₹{{ number_format($stats['total_spent'],2) }}
@if($company->csr_goals)
CSR Goals
{{ $company->csr_goals }}
@endif @if($company->csr_report_file)
View CSR Report File
@endif
Recent Projects
{{ $company->projects->count() }} total
@forelse($company->projects->take(5) as $p) @empty @endforelse
CodeTitleCategoryBudgetSpentStatus
{{ $p->project_code }} {{ Str::limit($p->project_title,30) }} {{ $p->category->name ?? '—' }} ₹{{ number_format($p->budget_allocation,2) }} ₹{{ number_format($p->total_spent,2) }} {{ ucfirst($p->status) }}
No projects yet
@endsection