{{ __('app.fees.structures.title') }}

{{ __('app.fees.structures.desc') }}

@can('fee_structures.create') {{ __('app.fees.structures.create') }} @endcan
@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif @if ($showForm)
@foreach ($years as $option) @endforeach @foreach ($divisions as $option) @endforeach @foreach ($formClasses as $option) @endforeach

{{ __('app.fees.structures.items_title') }}

{{ __('app.fees.structures.items_hint') }}

@if ($availableHeads->isEmpty())
{{ __('app.fees.structures.no_heads') }}
@else
@foreach ($availableHeads as $head) @endforeach
@endif @error('items')

{{ $message }}

@enderror
{{ __('app.actions.cancel') }} {{ __('app.fees.structures.save') }}
@endif
@foreach ($years as $option) @endforeach @foreach ($divisions as $option) @endforeach @foreach ($filterClasses as $option) @endforeach
@forelse ($structures as $structure) @empty @endforelse
{{ __('app.fees.structures.columns.name') }} {{ __('app.fees.structures.columns.scope') }} {{ __('app.fees.structures.columns.period') }} {{ __('app.fees.structures.columns.items') }} {{ __('app.fees.fields.status') }} {{ __('app.actions.view') }}
{{ $structure->localizedName() }} {{ $structure->academicYear?->name }} {{ $structure->division?->localizedName() }} {{ $structure->academicClass?->localizedName() ?? __('app.fees.structures.division_wide') }} {{ $structure->effective_from->translatedFormat('d M Y') }} — {{ $structure->effective_to?->translatedFormat('d M Y') ?? __('app.fees.structures.open_ended') }} {{ $structure->items_count }} @if ($structure->isArchived()) {{ __('app.fees.status.archived') }} @else {{ __('app.fees.status.active') }} @endif
@can('fee_structures.edit') @if ($structure->isArchived()) {{ __('app.actions.restore') }} @else {{ __('app.actions.edit') }} @can('fee_structures.delete') {{ __('app.actions.archive') }} @endcan @endif @endcan
@if ($structures->hasPages())
{{ $structures->links() }}
@endif