@if ($type == 'student') {{-- form for student --}}
@csrf @if (auth()->user()->hasRole('Super Admin'))
@else @endif
{{-- {{ $student }} --}}
@foreach ($academicFeeSetUps as $feeSetUp) @if ($feeSetUp->paymentFeeSchedule->discount_id) @php $discount_type = $feeSetUp->paymentFeeSchedule->discount->discount_type; $discount_amount; if ($discount_type == 1) { $discount_amount = $feeSetUp->paymentFeeSchedule->discount->discount_amount; } else { $discount_amount = ($feeSetUp->amount * $feeSetUp->paymentFeeSchedule->discount->discount_amount) / 100; $discount_amount = ceil($discount_amount); } @endphp @else @endif

@endforeach
@if ($type == 'student')
@endif {{-- {{ $type }} --}}
@else {{-- form for invoice --}}
@csrf @if (auth()->user()->hasRole('Super Admin'))
@else @endif
{{-- {{ $student }} --}}
@endif