@extends('layouts.app') @section('title', 'Event Budgets') @section('content')
Event Budget Allocations
@can('EventBudget create') @endcan @can('EventBudget delete') @endcan
@forelse($budgets as $budget) @empty @endforelse
Event Name Budget Code Total Fund Allocated Utilization Actions
{{ $budget->name }} {{ $budget->budget_code }} LKR {{ number_format($budget->total_budget, 0) }} LKR {{ number_format($budget->allocated_amount, 0) }} @php $utilization = ($budget->total_budget > 0) ? ($budget->allocated_amount / $budget->total_budget) : 0; $usePercent = min(100, round($utilization * 100)); $statusClass = $usePercent > 90 ? 'badge-danger' : ($usePercent > 70 ? 'badge-warning' : 'badge-blue'); @endphp {{ $usePercent }}%
No data to display
Showing {{ $budgets->firstItem() ?? 0 }} to {{ $budgets->lastItem() ?? 0 }} of {{ $budgets->total() }} entries
{{ $budgets->appends(request()->query())->links() }}
@endsection @push('js') @endpush