{{-- ? To set: * required: timeline_items as array array option: active as boolean title_before as string html href as string img_src as string title_after as string html collapse_id as string progress as int 0 - 100% ? To implement in Blade: * @includeIf('layouts.components.cycle_timeline', [ 'timeline_items' => [] ]) collapse need: show only on first item!
--}} @php $component_name = 'cycle_timeline'; @endphp @if (true) @section('section-css') @parent @once @endonce @stop
{{--
--}} @php $counter = count($timeline_items); @endphp @foreach ($timeline_items as $item)
{{ $item['cycle_num'] }} {!! isset($item['title']) ? $item['title'] : 'Lorem Ipsum' !!} {{-- @includeIf('layouts.components.prozess', ['status' => $item['progress'] ?? 0, 'height' => 3]) --}} {{-- --}}
@php $counter--; @endphp @endforeach
@section('section-js') @parent @once @endonce @stop @endif