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

Review dan berikan keputusan approval

{{-- 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)
Alasan Penolakan
{{ $list->rejection_reason }}
@endif
{{-- Approval Actions --}}
Keputusan Approval
@if ($list->approval_hrd == 'pending') {{-- Approve Button --}}
@csrf @method('PUT')
{{-- Reject Button - Toggle Form --}} {{-- Reject Form - Hidden by default --}} @elseif ($list->approval_hrd == 'approved')
Request Sudah Diapprove
@csrf @method('PUT')
@elseif ($list->approval_hrd == 'rejected')
Request Sudah Direject
@csrf @method('PUT')
@endif
@endsection @push('css') @endpush @push('js') @endpush