@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) @php $isHrdAdmin = in_array('hrdadm', $users_rules ?? [], true); $exportColumns = $isHrdAdmin ? [2, 3, 4, 5, 7, 8, 9, 10] : [1, 2, 3, 4, 6, 7, 8, 9]; $nonSortableColumns = $isHrdAdmin ? [0, 1] : [0]; @endphp
{{-- Breadcrumb --}} {{-- Filter Section --}}
{{-- header trn list dan button create TNA --}}
TRN List
@if (isset($authorize) && $authorize->add == '1') @endif
{{-- Daftar TRN Section --}} @if ($isHrdAdmin)
Approval Inbox
Select multiple TRNs and process approvals simultaneously.
0 selected
Use the checkbox in the table header to select all TRNs based on the applied filters.
@endif {{-- Action Buttons --}}
@if ($isHrdAdmin && isset($authorize) && $authorize->add == '1') @endif
{{-- Table --}}
@if ($isHrdAdmin) @endif @foreach ($trn_list as $trn) isactive == 0 ? 'style=background-color:#ffe9ed;' : '' }}> @if ($isHrdAdmin) @endif @endforeach
Action No ID TNA ID TRN TRN Name Schedule Place TRN Schedule Known Approved
@if ($trn->isactive == 1 && ($trn->approval_diketahui === 'P' || $trn->approval_disetujui === 'P')) @else @endif @php $canEditTrn = isset($authorize) && $authorize->edit == '1'; $needsCompletion = !$trn->is_approval_ready && $canEditTrn; @endphp
@unless ($needsCompletion) @endunless
{{ $loop->iteration }} {{ $trn->id_tna }} {{ $trn->id_trn }} {{ $trn->nama_trn ?? '-' }} @if (!$trn->is_approval_ready)
Data belum lengkap
@endif
{{ $trn->ruangan ?? '-' }} {{ $trn->all_jadwal_trn ?? '-' }} @if ($trn->approval_diketahui == 'A') Approved @elseif($trn->approval_diketahui == 'R') Rejected @else Pending @endif @if ($trn->approval_disetujui == 'A') Approved @elseif($trn->approval_disetujui == 'R') Rejected @else Pending @endif
{{-- Download Template Modal --}} {{-- Import Modal --}} @if ($authorize->add == '1') @endif {{-- Schedule Modal --}} @endsection @push('css') @endpush @push('js') @endpush