@php
$current = Route::currentRouteName();
// List of learning styles
$learningStyles = [
[
'route' => 'materi-visual',
'icon' => 'eye',
'label' => 'Visual',
'btnClass' => 'btn-primary'
],
[
'route' => 'materi-auditory',
'icon' => 'volume-2',
'label' => 'Auditory',
'btnClass' => 'btn-success'
],
[
'route' => 'materi-read/write',
'icon' => 'book-open',
'label' => 'Read/Write',
'btnClass' => 'btn-secondary'
],
[
'route' => 'materi-kinesthetic',
'icon' => 'move',
'label' => 'Kinesthetic',
'btnClass' => 'btn-warning'
],
[
'route' => 'materi-multimodal',
'icon' => 'layers',
'label' => 'Multimodal',
'btnClass' => 'btn-info'
],
];
// Filter out the current learning style
$filteredStyles = array_filter($learningStyles, function($style) use ($current) {
return $style['route'] !== $current;
});
@endphp
@foreach($filteredStyles as $style)
{{ $style['label'] }}
@endforeach