{{ $courseDetails->courseTitle ?? 'Application' }} Details

{{-- 1. Profile Section --}}
@php $imagePath = ($studentInfo && $studentInfo->profile_pic) ? public_path('storage/uploads/students/thumbnail/' . $studentInfo->profile_pic) : public_path('assets/frontend/images/avatar.png'); @endphp
Student ID{{ $studentInfo->id_number ?? 'N/A' }}
Full Name{{ $studentInfo->first_name ?? '' }} {{ $studentInfo->last_name ?? '' }}
Email{{ $studentInfo->email ?? 'N/A' }}
Mobile{{ $studentInfo->contact_number ?? 'N/A' }}
{{-- 2. Dynamic Groups --}} @if(!empty($processedGroups)) @foreach($processedGroups as $group)
{{ $group['group_name'] }}
{{-- Loop through each set (Degree 1, Degree 2, etc.) --}} @foreach($group['sets'] as $set) {{-- We simply print the table for each set without the "Entry #" divider --}} @foreach($set as $field) @endforeach
{{ $field['label'] }} {!! nl2br(e($field['value'])) !!}
@endforeach @endforeach @endif {{-- 3. Payment Details --}} @php $hasPayments = isset($paymentDetails) && method_exists($paymentDetails, 'isEmpty') ? !$paymentDetails->isEmpty() : !empty($paymentDetails); @endphp @if($hasPayments)
Payment History
@foreach($paymentDetails as $payment) @endforeach
Date Transaction ID Status Amount
{{ $payment->payment_date ? \Carbon\Carbon::parse($payment->payment_date)->format('d M Y') : 'N/A' }} {{ $payment->transaction_id ?? 'N/A' }} {{ $payment->status ?? 'N/A' }} {{ number_format($payment->transactionAmount ?? 0, 2) }}
@endif