@extends('adminlte::page') @section('title', 'Budget Summary') @section('content_header')
| # | Department | Submitted By | Month/Year | Total Amount | Approved Items | Rejected Items | Status | Action |
|---|---|---|---|---|---|---|---|---|
| {{ $budget->id }} | {{ $budget->department->name ?? 'N/A' }} | {{ $budget->staff->first_name ?? 'N/A' }} {{ $budget->staff->last_name ?? '' }} | {{ $budget->month }}/{{ $budget->year }} | {{ number_format($budget->items->where('status', 'approved')->sum('price'), 2) }} | {{ $budget->items->where('status', 'approved')->count() }} | {{ $budget->items->where('status', 'rejected')->count() }} | {{ ucfirst($budget->status) }} | View @if(auth()->user()->can('approve budgets') && $budget->status == 'pending') Approve @endif |