@extends('admin.layouts.main') @section('title','Detail Pendaftar: ' . $reg->full_name) @section('content')
{{-- Left --}}
{{-- Personal Info --}}
Data Pribadi
@php $si = $reg->status_info; @endphp {{ $si['label'] }}
@foreach([ ['Nama Lengkap',$reg->full_name], ['Email',$reg->email], ['Telepon',$reg->phone], ['NIK',$reg->nik ?? '-'], ['Tanggal Lahir',$reg->birth_date ? $reg->birth_date->format('d M Y') : '-'], ['Jenis Kelamin',$reg->gender ?? '-'], ['Kota',$reg->city ?? '-'], ['Provinsi',$reg->province ?? '-'], ] as $info)
{{ $info[0] }}
{{ $info[1] }}
@endforeach @if($reg->address)
Alamat
{{ $reg->address }}
@endif
{{-- Education --}}
Pendidikan
@foreach([ ['Pendidikan Terakhir',$reg->education_level ?? '-'], ['Sekolah/Universitas',$reg->school_name ?? '-'], ['Tahun Lulus',$reg->graduation_year ?? '-'], ] as $info)
{{ $info[0] }}
{{ $info[1] }}
@endforeach
{{-- Motivation --}} @if($reg->motivation)
Motivasi
{{ $reg->motivation }}
@endif {{-- Documents --}}
Dokumen Diunggah
@foreach(['cv_file'=>['CV / Resume','fas fa-file-pdf','#2563eb'],'photo_file'=>['Foto','fas fa-image','#0d9488'],'ijazah_file'=>['Ijazah','fas fa-scroll','#d97706']] as $field => $meta) @if($reg->$field) {{ $meta[0] }} @else {{ $meta[0] }} (tidak ada) @endif @endforeach
{{-- Right --}}
{{-- Status Update Card --}}
Update Status & Catatan
@csrf
@foreach($statuses as $key => $s) @endforeach
{{-- Registration Info --}}
Info Pendaftaran
@foreach([ ['fas fa-hashtag','No. Registrasi',$reg->registration_number,'var(--c-blue)'], ['fas fa-book-open','Program',$reg->program->title ?? '-','var(--c-blue)'], ['fas fa-calendar','Tanggal Daftar',$reg->created_at->format('d M Y, H:i'),'var(--c-400)'], ['fas fa-user-check','Direview oleh',$reg->reviewer->name ?? 'Belum direview','var(--c-400)'], ['fas fa-clock','Waktu Review',$reg->reviewed_at ? $reg->reviewed_at->format('d M Y H:i') : '-','var(--c-400)'], ] as $info)
{{ $info[1] }}
{{ $info[2] }}
@endforeach
@endsection @push('scripts') @endpush