Permohonan
{{ App\IPR::where('name', 'siswa')->pluck('display_name')[0] }}
{{ ($status == 2) ? '(Lulus)' : ($status == 3 ? '(Gagal)' : '') }}
| Id Permohonan |
Nama |
No. Identiti |
Program |
Sub Program |
Dun |
Tarikh Permohonan |
Status |
{{-- Status Rekod |
Tarikh Kematian | --}}
|
{{--
| Id Permohonan |
Nama |
No. Identiti |
Program |
Sub Program |
Dun |
Tarikh Permohonan |
Status |
Status Rekod |
Tarikh Kematian |
|
@foreach ($applications as $application)
@php
$myid = \App\MyIdentity::where('ic_pemohon', $application['kad_pengenalan'])->first(['status_rekod', 'tarikh_mati']);
@endphp
| {{ $application['id'] }} |
{{ $application['nama'] }} |
{{ $application['kad_pengenalan'] }} |
{{ $application['program'] }} |
{{ $application['subprogram'] }} |
{{ $application['dun'] }} |
{{ $application['tarikh_hantar'] }} |
{{ $application['status'] }} |
@php
if(!empty($myid['status_rekod'])){
echo $myid_status->where('code', $myid['status_rekod'])->pluck('name')[0];
}
else{
echo 'Tiada Rekod';
}
@endphp
|
@php
if(!empty($myid['tarikh_mati'])){
echo \Carbon\Carbon::parse($myid['tarikh_mati'])->format('d/m/Y');
}else{
echo '-';
}
@endphp
|
|
@endforeach
{{ $applications->links() }}
--}}