@php use App\Models\Structure; @endphp
@foreach(range(1, Structure::ROWS) as $row) @php $marginX = triangle_height($edgeLength) / 4; $width = triangle_height($edgeLength) / 2; $marginY = $edgeLength / 4; $height = $edgeLength / 2; $spacing = 1.25; @endphp
@foreach(range(1, Structure::COLS) as $column) @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_DOWN; } else { $bearing = \App\Models\Static\Graphic::POINT_UP; } $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($active) @else @endif
@if($active) @if($editSlot === implode('-', [$active['identifier'], $row, $column]))

@else

@endif @else
@endif
{{--
--}} {{--
--}} {{-- @if($active)--}} {{-- --}} {{-- @else--}} {{-- --}} {{-- @endif--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}}{{--right: -{{ round($edgeLength / 4, 2) }}px--}} {{-- @if($active)--}} {{-- --}} {{-- @else--}} {{-- --}} {{-- @endif--}} {{--
--}} {{--
--}} {{-- @php--}} {{-- $value = round($edgeLength / 3, 2);--}} {{-- if ($loop->parent->even) {--}} {{-- $margin = $loop->even ? 'margin-top: '.$value.'px;' : 'margin-bottom: '.$value.'px;';--}} {{-- } else {--}} {{-- $margin = $loop->even ? 'margin-bottom: '.$value.'px;' : 'margin-top: '.$value.'px;';--}} {{-- }--}} {{-- @endphp--}} {{-- --}}{{----}} {{-- @if($active)--}} {{-- @if($editSlot == $active['identifier'])--}} {{--
--}} {{--

--}} {{-- --}} {{--

--}} {{--

--}} {{-- --}} {{--

--}} {{--

--}} {{-- --}} {{--

--}} {{--
--}} {{-- @else--}} {{--

--}} {{-- @endif--}} {{-- @else--}} {{--

--}} {{-- --}} {{--

--}} {{-- @endif--}} {{-- --}} {{--
--}} {{--
--}} @endforeach {{--
--}}
@endforeach