@extends('layouts.app') @section('title', 'Kitchen Votes') @section('content')

Vote allocations

Budget votes for kitchen departments and their commitment against spend.
Purchase requisitions
@include('kitchen._nav')

Vote register

{{ $votes->count() }} votes
@forelse($votes as $vote) @php($available = (float) $vote->amount - (float) $vote->spent) @php($rate = (float) $vote->amount > 0 ? min(100, round((float) $vote->spent / (float) $vote->amount * 100)) : 0) @empty @endforelse
VoteDepartmentPeriodAllocatedCommittedSpentAvailableUtilisation
{{ $vote->name }} {{ $vote->department ?: '—' }} {{ $vote->period }} {{ money($vote->amount) }} {{ money($vote->committed) }} {{ money($vote->spent) }} {{ money($available) }}
{{ $rate }}%
@csrf
@endsection