@php use App\Models\Structure; $graphicCounter = 0; $jump30 = true; $edgeLength = 150; @endphp
@foreach(range(1, 4) as $row) @php $marginX = triangle_height($edgeLength) / 4; $width = triangle_height($edgeLength) / 2; $marginY = $edgeLength / 4; $height = $edgeLength / 2; $spacing = 1.25; @endphp {{--
--}}{{-- style="margin-left: {{ round($edgeLength / 2, 2) }}px;"--}}
@foreach(range(1, 10) as $column) @if ($graphicCounter < 38) @php $active = Arr::get($graphicsChosen, $row.'.'.$column, false); $pointUp = $loop->parent->even && $loop->even || $loop->parent->odd && $loop->odd; if ($loop->parent->even && $loop->even || $loop->parent->odd && $loop->odd) { $bearing = \App\Models\Static\Graphic::POINT_UP; } else { $bearing = \App\Models\Static\Graphic::POINT_DOWN; } $css = ''; if ($bearing === \App\Models\Static\Graphic::POINT_UP) { $css = 'transform: rotate(30deg) translate(18px, -10px);'; } else { $css = 'transform: rotate(30deg) translate(-18px, 52px);'; } @endphp
@if($graphicCounter === 30 && $jump30) {{-- Do nothing here --}}   @else @endif
@if($graphicCounter === 30 && $jump30) @php $jump30 = false; @endphp @else

@php $graphicCounter++; @endphp @endif
@endif @endforeach
@endforeach