@php use App\Models\Static\Piece; use App\Models\Structure; $edgeLength = 150 @endphp
@if ($autosaveMessage)
{{ __("Données enregistrées ...") }}
@endif @if($activeSlot !== null)
@foreach($piecesAvailable as $piece => $null)

@endforeach
@else
@if(!empty($piecesChosen))
@endif
@foreach(range(0, Structure::ROWS) as $row)
@foreach(range(0, Structure::COLS) as $column) @php $active = Arr::get($piecesChosen, $row.'.'.$column, false); if ($loop->parent->even) { $bearing = $loop->even ? Piece::POINT_UP : Piece::POINT_DOWN; } else { $bearing = $loop->even ? Piece::POINT_DOWN : Piece::POINT_UP; } @endphp
@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 @endif