@extends('layouts.app') @section('content')

Timeline Pelaksanaan

Kelola timeline pelaksanaan SNMB yang tampil di landing page

add Tambah Timeline
@if(session('success'))
{{ session('success') }}
@endif @php $jalurLabels = [ 'umum' => ['label' => 'Umum (Semua Jalur)', 'color' => 'blue'], 'prestasi' => ['label' => 'Jalur Prestasi', 'color' => 'purple'], 'tes' => ['label' => 'Jalur Tes', 'color' => 'green'], ]; $tipeLabels = [ 'header' => ['label' => 'Header', 'icon' => 'vertical_align_top'], 'item' => ['label' => 'Item', 'icon' => 'remove'], 'highlight' => ['label' => 'Highlight', 'icon' => 'star'], 'footer' => ['label' => 'Footer', 'icon' => 'vertical_align_bottom'], ]; @endphp @forelse($timelines as $jalur => $items)
{{ $jalurLabels[$jalur]['label'] }} {{ $items->count() }} item
@foreach($items as $timeline) @endforeach
Order Tipe Nama Tanggal Keterangan Status Aksi
{{ $timeline->order }} {{ $tipeLabels[$timeline->tipe]['icon'] }} {{ $tipeLabels[$timeline->tipe]['label'] }} {{ $timeline->nama }} {{ $timeline->tanggal }} {{ Str::limit($timeline->keterangan, 50) ?: '-' }} @if($timeline->is_active) Aktif @else Nonaktif @endif
edit
@empty
event_note

Belum ada timeline. Klik "Tambah Timeline" untuk menambahkan.

@endforelse
@endsection