@php
$colors = ['#1D75B3', '#F20544', '#FFC800', '#1E1515', '#65BB65', '#7C5704','#E37023','#AE1FF5', '#7C047C', '#7C5704'];
$newColorIndex = 0; // Initialize color index
@endphp
@foreach($departments as $department)
{{ $department->title }}
@foreach($department->courseName as $course)
@php
$newColorIndex++; // Increment color index
@endphp
@endforeach
@endforeach
{{-- @endforeach--}}
{{--
--}}
{{-- @php--}}
{{-- $colors = ['#1D75B3', '#F20544', '#FFC800', '#1E1515', '#65BB65', '#7C5704','#E37023','#AE1FF5', '#7C047C', '#7C5704'];--}}
{{-- $newColorIndex = 0; // Initialize color index--}}
{{-- @endphp--}}
{{-- @foreach($courses as $course)--}}
{{--
--}}
{{-- @php--}}
{{-- $newColorIndex++; // Increment color index--}}
{{-- @endphp--}}
{{-- @endforeach--}}
{{--
--}}