@extends('layouts.admin') @section('title', setting('school_name', 'ShulePoint') . ' | Fee Structures') @section('page-title', 'Fee Structures') @section('content') {{-- Add vote head card --}}

Add vote head

@csrf
@error('grade_level_id'){{ $message }}@enderror
@error('school_class_id'){{ $message }}@enderror
@error('academic_year_id'){{ $message }}@enderror
@error('term_id'){{ $message }}@enderror
@if((auth()->user()->role ?? '') === 'admin')
@error('school_id'){{ $message }}@enderror
@endif
@error('vote_head'){{ $message }}@enderror
@error('amount'){{ $message }}@enderror
{{-- Structures table card --}}

Fee structures (vote heads) {{ number_format($structures->total()) }} total

@include('layouts.partials.school-th') @forelse($structures as $s) @include('layouts.partials.school-td', ['schoolId' => $s->school_id ?? null]) @empty @endforelse
Grade / Class Year / Term Vote Head AmountAction
{{ $s->gradeLevel->name ?? 'All grades' }}@if($s->schoolClass)
{{ $s->schoolClass->name }}
@endif
{{ $s->academicYear->name ?? 'Any year' }} · {{ $s->term->name ?? 'Any term' }} {{ $s->vote_head }} KES {{ number_format($s->amount, 0) }}
@csrf @method('DELETE')

No vote heads defined

Add the first vote head using the form above.

@endsection