@extends('layouts.app') @section('title','Student Account Summary') @section('content')
@if(auth()->user()->isManager())
Edit@endif
Print@foreach(['Student Name'=>$account->student_name,'Student ID'=>$account->student_id,'Programme'=>$account->programme,'Intake'=>$account->intake_semester,'Invoice'=>$account->invoice_number,'Advice Reference'=>$account->advice_reference,'Due Date'=>$account->due_date?->format('d/m/Y'),'Outstanding'=>'RM '.number_format($account->outstanding_amount,2),'Coordinator'=>$account->coordinator?->name??'Unassigned','Status'=>ucwords(str_replace('_',' ',$account->status))] as $k=>$v)- {{$k}}
- {{$v?:'—'}}
@endforeach
| Date | User | Channel | Feedback | Status |
@forelse($account->followUps as $f)| {{$f->contacted_at->format('d/m/Y H:i')}} | {{$f->user?->name}} | {{$f->channel}} | {{$f->feedback}} | {{$f->status_after}} |
@empty| No follow-up recorded. |
@endforelse
@endsection