@extends('adminlte::page') @section('title', 'View Budget') @section('content_header')

Budget Details

@stop @section('content')
Department: {{ $budget->department->name ?? '-' }}

Submitted By: {{ $budget->staff->name ?? '-' }}

Month / Year: {{ $budget->month ?? '-' }} / {{ $budget->year ?? '-' }}

Status: {{ ucfirst($budget->status) }}

Total Amount: TZS {{ number_format($budget->total_amount, 2) }}

Note: {{ $budget->note ?? '-' }}


Budget Items
@forelse($budget->items as $item) @empty @endforelse
Item Description Price (TZS) Status Approved By Note / Comment Action
{{ $item->item }} {{ $item->description ?? '-' }} {{ number_format($item->price, 2) }} {{ ucfirst($item->status ?? 'pending') }} {{ $item->approvedBy->name ?? '-' }} {{ $item->note ?? $item->comment ?? '-' }} @if(Auth::user()->role == 'hod' && $item->status == 'approved')
@csrf
@elseif($item->invoice) Invoice ({{ ucfirst($item->invoice->status) }}) @else - @endif
No items added.
Back @if(Auth::user()->role == 'do' && $budget->current_step == 'do') Approve / Reject Items @endif
@stop