@extends('admin.layouts.app') @section('title', $project->project_title) @section('breadcrumb') / Projects / {{ $project->project_code }} @endsection @push('styles') @endpush @section('content') @if($project->budget_allocation)
Total Budget
₹{{ number_format($project->budget_allocation) }}
Total Spent
₹{{ number_format($project->total_spent) }}
Remaining
₹{{ number_format($project->remaining_budget ?? 0) }}
Budget Used
{{ $project->budget_used_percent }}%
@endif
Project Details
Project Code
{{ $project->project_code }}
Title
{{ $project->project_title }}
CSR Company
{{ $project->csrCompany->company_name ?? '—' }}
Category
{{ $project->category->name ?? '—' }}
Location
{{ $project->location ?? '—' }}
Start Date
{{ $project->start_date?->format('d M Y') ?? '—' }}
End Date
{{ $project->end_date?->format('d M Y') ?? '—' }}
Funding Source
{{ $project->funding_source ?? '—' }}
Public
{{ $project->is_public ? 'Yes' : 'No' }}
Created By
{{ $project->createdBy->name ?? '—' }}
@if($project->approved_by)
Approved By
{{ $project->approvedBy->name ?? '—' }} on {{ $project->approved_at?->format('d M Y H:i') }}
@endif @if($project->description)
Description
{{ $project->description }}
@endif @if($project->stakeholders)
Stakeholders
{{ $project->stakeholders }}
@endif @if($project->expected_impact)
Expected Impact
{{ $project->expected_impact }}
@endif
Expense by Category
@if($expenseSummary['by_cat']->count()) @foreach($expenseSummary['by_cat'] as $cat => $total)
{{ ucfirst($cat) }} ₹{{ number_format($total) }}
@endforeach @else

No expenses recorded

@endif
Quick Stats
Total Expenses
{{ $expenseSummary['count'] }}
Total Spent
₹{{ number_format($expenseSummary['total']) }}
This Month
₹{{ number_format($expenseSummary['this_month']) }}
Beneficiaries
{{ $project->beneficiaries->count() }}
Volunteers
{{ $project->volunteers->count() }}
Project Expenses
@if(auth()->user()->hasPermission('project_expenses.create')) Add Expense @endif
@forelse($project->expenses as $exp) @empty @endforelse @if($project->expenses->count()) @endif
IDDateCategory AmountVendorModeOverrideActions
{{ $exp->expense_id }} {{ $exp->expense_date->format('d M Y') }} {{ ucfirst($exp->category) }} ₹{{ number_format($exp->amount,2) }} {{ $exp->vendor_name ?? '—' }} {{ ucwords(str_replace('_',' ',$exp->payment_mode)) }} @if($exp->is_override)Override@else@endif @if($exp->bill_file) @endif
No expenses recorded for this project
Total ₹{{ number_format($project->expenses->sum('amount'),2) }}
Project Attachments
@if($project->attachments->count())
@foreach($project->attachments as $att)
{{ $att->file_name }}
{{ ucfirst($att->attachment_type) }}
@if($att->description)
{{ $att->description }}
@endif
Download
@endforeach
@else
No attachments uploaded
@endif
Beneficiaries
Add Beneficiary
@forelse($project->beneficiaries as $ben) @empty @endforelse
IDNameMobileCategoryAssistanceStatus
{{ $ben->beneficiary_id }} {{ $ben->name }} {{ $ben->mobile ?? '—' }} {{ $ben->category ?? '—' }} {{ $ben->assistance_type ?? '—' }} {{ ucfirst($ben->status) }}
No beneficiaries assigned to this project
Assigned Volunteers
@forelse($project->volunteers as $vol) @empty @endforelse
IDNameMobileSkillsJoiningStatus
{{ $vol->volunteer_id }} {{ $vol->name }} {{ $vol->mobile }} {{ Str::limit($vol->skills,40) ?? '—' }} {{ $vol->joining_date?->format('d M Y') ?? '—' }} {{ ucfirst($vol->status) }}
No volunteers assigned
@endsection