@extends('layouts.app-admin') @section('content')
You are here:

Student Name: {{$data['Student']->name}}/ ID: {{$data['Student']->studentid}}

{{-- @dump($data['StudentCourses']) --}}
@foreach ($data['StudentCourses'] as $item)

@if($item->courseFees != NULL) @php $FeesStructuredis = (array)json_decode($item->courseFees->FeesStructureJSONArray, true); //print_r($FeesStructure); $pdfees=0 @endphp @foreach ($FeesStructuredis as $dit) {{-- {{isset($it["frmdate"])}} --}} @if(isset($dit["is_paid"])) @if ($dit["is_paid"] == 0) @else @php $pdfees=$pdfees+$dit["PaymentAmount"] @endphp @endif @endif @endforeach
Payable Amount: {{$item->courseFees->AmountToBePaid}} Paid Amount {{$pdfees}}
@else
Course Fees is not set yet
@endif
@if($item->courseFees!=NULL) @php $FeesStructure = (array)json_decode($item->courseFees->FeesStructureJSONArray, true); //print_r($FeesStructure); @endphp @foreach ($FeesStructure as $it) {{-- {{isset($it["frmdate"])}} --}} @endforeach
term From To Fees Payment Amount
{{(isset($it['term']))?$it['term']:""}} {{(isset($it['frmdate']))?$it['frmdate']:""}} {{(isset($it['todate']))?$it['todate']:""}} {{(isset($it['term_fees']))?$it['term_fees']:""}} {{(isset($it['PaymentAmount']))?$it['PaymentAmount']:""}}
@if(isset($it["is_paid"])) @if ($it["is_paid"] == 0) @else @php $pdfees=$pdfees+$it["PaymentAmount"] @endphp Paid @endif @endif
@endif
@endforeach
@stop @section('links') @endsection @section('script') @endsection @section('script') @endsection