@extends('student.layout') @section('title','My Profile') @section('page-title','My Profile') @section('content') @php $si = $student->stageInfo(); $docLabels = \App\Models\StudentDocument::docLabels(); @endphp

Personal Details

{{ substr($student->name,0,1) }}
{{ $student->name }}
{{ $student->student_id }}
{{ $si['label'] }}
@foreach([ ['fa-envelope','Email',$student->email], ['fa-phone','Phone',$student->phone], ['fa-book-open','Course',$student->course], ['fa-users','Batch',$student->batch], ['fa-calendar','Enrolled',$student->enrollment_date?->format('d M Y')], ['fa-graduation-cap','Education',$student->education], ['fa-user','Father',$student->father_name], ['fa-map-marker-alt','City',$student->city], ] as $row)
{{ $row[1] }} {{ $row[2] ?: '—' }}
@endforeach

My Documents

@php $uploadedDocs = $student->documents->keyBy('doc_type'); @endphp @foreach($docLabels as $type => $label) @php $doc = $uploadedDocs->get($type); @endphp
{{ $label }}
@if($doc) {{ ucfirst($doc->status) }} @else Not submitted @endif
@endforeach
Contact your teacher to submit documents.
@endsection