@extends('layouts.app') @section('title', 'Event Management') @section('content')
@yield('title')
@forelse($budgets as $budget) @empty @endforelse
Budget Name Code Total Budget Allocated Utilization Actions
{{ $budget->name }} {{ $budget->budget_code }} LKR {{ number_format($budget->total_budget, 2) }} LKR {{ number_format($budget->allocated_amount, 2) }} @php $ratio = $budget->total_budget > 0 ? $budget->allocated_amount / $budget->total_budget : 0; $percent = min(100, round($ratio * 100)); $colorClass = $percent > 90 ? 'bg-danger' : ($percent > 70 ? 'bg-warning' : 'bg-primary'); @endphp
{{ $percent }}%
No budgets identified in the registry.
@forelse($suppliers as $supplier) @empty @endforelse
Supplier Name Code Contact Person Contact Phone Status Actions
{{ $supplier->name }} {{ $supplier->code }} {{ $supplier->contact_person }} {{ $supplier->contact_phone }} {{ $supplier->is_active ? 'Active' : 'Inactive' }}
No partner suppliers registered.
@php $collection = $tab == 'budgets' ? $budgets : $suppliers; @endphp
Showing {{ $collection->firstItem() ?? 0 }} to {{ $collection->lastItem() ?? 0 }} of {{ $collection->total() }} entries
{{ $collection->appends(['tab' => $tab])->links() }}
@endsection @push('css') @endpush