@extends('pmb.layout') @section('title', 'Upload Berkas') @section('content')
Upload Dokumen Persyaratan
Ketentuan: Format PDF/JPG/PNG, ukuran maksimal 2MB per file.
@php $berkasList = [ 'ijazah' => ['label' => 'Ijazah / SKHU', 'icon' => 'fa-file-alt'], 'ktp' => ['label' => 'KTP', 'icon' => 'fa-id-card'], 'kk' => ['label' => 'Kartu Keluarga', 'icon' => 'fa-users'], 'raport' => ['label' => 'Raport', 'icon' => 'fa-file-alt'], ]; @endphp
@csrf @foreach($berkasList as $key => $item) @php $existing = $pendaftaran->berkas->firstWhere('jenis_berkas', $key); @endphp
@if($existing)
{{ basename($existing->file_path) }}
@endif

{{ $existing ? 'Ganti file' : 'Upload ' . $item['label'] }}

@endforeach
Kembali
@endsection