@extends('admin.layouts.app') @section('title', 'Fee Heads') @section('breadcrumb') @endsection @section('content')
@php $types = [ 'monthly_installment' => ['Monthly Installment', 'primary'], 'admission' => ['Admission', 'success'], 'examination' => ['Examination', 'info'], 'miscellaneous' => ['Miscellaneous', 'warning'], 'fine' => ['Fine/Late Fee', 'danger'], ]; @endphp @foreach($types as $key => [$label, $color]) @php $count = $feeHeads->where('type', $key)->count(); @endphp
{{ $count }}
{{ $label }}
@endforeach
All Fee Heads {{ $feeHeads->count() }}
@foreach($feeHeads as $head) @endforeach
Name Code Type Amount Applicable Optional Status Action
{{ $head->name }} {{ $head->code }} {{ ucfirst(str_replace('_',' ', $head->type)) }} ₹{{ number_format($head->amount, 2) }} {{ $head->applicable_to }} @if($head->is_optional) Optional @else Mandatory @endif {{ ucfirst($head->status) }}
@endsection @push('scripts') @endpush