@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
| Action | No | Departemen | Posisi | Standar |
|---|---|---|---|---|
| {{-- check authorize edit using policy --}} @can('update', \App\Models\PaStandardSet::class) {{-- check status active --}} @if ($record->isactive == 1) {{-- button edit --}} {{-- --}} @else Data tidak aktif @endif @else Tidak ada akses @endcan | {{ $records->firstItem() + $loop->index }} | {{ $record->department_name }} | {{ $record->position_name }} |
@php
$periodsData = $record->periods_data;
$periods = $periodsData ? explode(';;', $periodsData) : [];
@endphp
@if (count($periods) > 0)
@foreach ($periods as $period)
@php
$periodInfo = explode('|', $period);
if (count($periodInfo) >= 5) {
$periodId = $periodInfo[0];
$quarter = $periodInfo[1];
$year = $periodInfo[2];
$range = $periodInfo[3];
$status = $periodInfo[4];
$badgeClass =
$status === 'active'
? 'success'
: 'warning';
$buttonText = "Periode {$quarter} {$year}";
}
@endphp
@if (isset($periodId))
@endif
@endforeach
@else
No standards set
@endif
|
Import standar PA untuk semua posisi sekaligus dalam satu file Excel