@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
{{-- Full Width - TNA Request Approval + Approval Decision --}}
TNA Request Approval

Review and provide approval decision

{{-- alert --}} @include('components.alert')
{{-- Row 1: Requestor Info --}}

{{ $list->requestor_nik }}

{{ $list->requestor_name }}

{{ $list->requestor_departemen }}

{{ $list->requestor_bagian }}

{{-- Row 2: Training Info --}}

{{ $list->name_trn }}

{{ \Carbon\Carbon::parse($list->month_estimation)->format('d F Y') }}

{{-- Row 3: Description --}}

{{ $list->description ?: '-' }}

{{-- Row 4: Status & Created --}}

@if ($list->approval_hrd == 'approved') Approved @elseif ($list->approval_hrd == 'rejected') Rejected @else Pending @endif

{{ $list->created_at ? \Carbon\Carbon::parse($list->created_at)->format('d F Y H:i') : '-' }}

{{-- Rejection Reason - tampilkan jika status rejected --}} @if ($list->approval_hrd == 'rejected' && $list->rejection_reason)
Rejection Reason
{{ $list->rejection_reason }}
@endif {{-- Approval Decision Section --}}
Approval Decision

@if ($list->approval_hrd == 'pending') Review the request details below before submitting a final decision. @else The current decision is shown below. Use the available action only when a correction is required. @endif

@if ($list->approval_hrd == 'approved') Approved @elseif ($list->approval_hrd == 'rejected') Rejected @else Pending Review @endif
@if ($list->approval_hrd == 'pending')
{{-- Approve Button - Opens Modal --}}
{{-- Reject Button - Opens Modal --}}
@elseif ($list->approval_hrd == 'approved')
Request Approved
@elseif ($list->approval_hrd == 'rejected')
Request Rejected
@endif
{{-- Reject Reason Modal --}} {{-- Approve Confirmation Modal --}} {{-- Unapprove Confirmation Modal --}} @endsection @push('css') @endpush