@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) {{-- Top Action Bar --}}
| TNA ID | : | {{ $list->id }} |
| Training Name | : | {{ $list->name_trn }} |
| Department | : | {{ $list->department ?: '-' }} |
| Section | : | {{ $list->section ?: '-' }} |
| Training Type | : | {{ ucfirst($list->type_training) }} |
| With Score | : |
{{ $list->with_score ? 'Yes' : 'No' }}
with_score ? 'checked' : '' }}
style="width: 2.5em; height: 1.3em;">
|
| Estimated Date | : | {{ $list->month_estimation ? \Carbon\Carbon::parse($list->month_estimation)->format('d F Y') : '-' }} |
| Status | : | @if ($list->status == 'draft') Draft @elseif ($list->status == 'aktif') Active @elseif ($list->status == 'finish') Finish @endif |
| Description * | : | {{ Str::limit($list->description, 50) ?: '-' }} |
No participants yet
| Requestor | : | {{ $list->requestor_name }} ({{ $list->requestor_nik }}) |
| Supervisor | : | @if ($atasan_nik) {{ $atasan_name }} ({{ $atasan_nik }}) @else Not in structure — HRD approves @endif |
| Approval HRD | : | @if ($list->approval_hrd == 'approved') Approved @elseif ($list->approval_hrd == 'rejected') Rejected @else Pending @endif |
| HRD Rejection Reason | : | {{ $list->reject_reason_hrd }} |
| Supervisor Approval | : | @if ($list->approval_atasan == 'approved') Approved @elseif ($list->approval_atasan == 'rejected') Rejected @else Pending @endif |
| Supervisor Rejection Reason | : | {{ $list->reject_reason_atasan }} |
Reason: {{ $list->reject_reason_hrd }}
@endifReason: {{ $list->reject_reason_atasan }}
@endifNo TNA detail yet.
| No | Date | Duration | Trainer | Participants | Status |
|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ \Carbon\Carbon::parse($schedule->tna_date)->translatedFormat('l, d F Y') }} {{ $schedule->tna_start_time ? substr($schedule->tna_start_time, 0, 5) : '-' }} - {{ $schedule->tna_end_time ? substr($schedule->tna_end_time, 0, 5) : '-' }} |
@php
$durationMinutes = $schedule->duration_minutes;
if (
$durationMinutes === null &&
$schedule->tna_start_time &&
$schedule->tna_end_time
) {
$startMinutes =
(int) substr($schedule->tna_start_time, 0, 2) * 60 +
(int) substr($schedule->tna_start_time, 3, 2);
$endMinutes =
(int) substr($schedule->tna_end_time, 0, 2) * 60 +
(int) substr($schedule->tna_end_time, 3, 2);
$durationMinutes = max(0, $endMinutes - $startMinutes);
}
$durationHours = $durationMinutes
? intdiv((int) $durationMinutes, 60)
: 0;
$durationRemainder = $durationMinutes
? (int) $durationMinutes % 60
: 0;
$durationLabel = !$durationMinutes
? '-'
: ($durationHours
? $durationHours .
' jam' .
($durationRemainder
? ' ' . $durationRemainder . ' menit'
: '')
: $durationRemainder . ' menit');
@endphp
{{ $durationLabel }} |
{{ $schedule->trainer_name ?: '-' }} {{ ucfirst($schedule->institution_name ?? 'internal') }}{{ $schedule->trainer_nik ? ' · ' . $schedule->trainer_nik : '' }} |
@foreach ($schedule->participant_list as $participant) {{ $participant['name'] }} @endforeach | @if ($schedule->status == 'aktif') Active @else Completed @endif |
|
No schedules yet |
|||||