@extends('layouts.app') @section('title', 'Invoice Distribution') @section('content')

Invoice distribution

Allocate the term budget from invoice totals and compare what was billed with what was collected.
@include('finance._nav')

Invoice distribution ยท Term {{ $term }} {{ $year }}

Enter the amount of the term budget assigned to each votehead. Invoiced and collected figures are read-only.
@csrf
@forelse($rows as $row) @empty @endforelse
Votehead Invoiced Discount Net billed Budget allocation Variance
{{ $row->votehead->name }}
{{ ucfirst($row->votehead->category ?: $row->votehead->type) }}
{{ money($row->invoiced) }} {{ money($row->discount) }} {{ money($row->net) }} {{ money($row->variance) }}
Term total {{ money($totals['invoiced']) }} {{ money($totals['discount']) }} {{ money($totals['net']) }} {{ money($totals['allocation']) }} {{ money($totals['variance']) }}

Term comparison

Invoiced, collected and allocated by term for {{ $year }}.
@foreach($termRows as $item) $item['term'] == $term])> @endforeach
TermInvoicedCollectedBalanceAllocated
Term {{ $item['term'] }} {{ $item['collection_rate'] }}% {{ money($item['invoiced']) }} {{ money($item['collected']) }} {{ money($item['balance']) }} {{ money($item['allocated']) }}

Allocation mix

Share of the term budget by votehead.
@forelse($rows as $row) @php($share = $totals['allocation'] > 0 ? round($row->allocation / $totals['allocation'] * 100, 1) : 0)
{{ $row->votehead->name }} {{ $share }}%
@empty @endforelse
@endsection @push('scripts') @endpush