Blame view
resources/views/admin/editbloks/parent_id.blade.php
481 Bytes
90302d366 Блоки меню для фу... |
1 2 3 4 5 6 7 8 9 10 |
@if ($items->where('code_id', $parent)->count()) @php $level++ @endphp @foreach ($items->where('code_id', $parent) as $item) <option value="{{ $item->id }}" @if ($item->id == $parent_id) selected @endif> @if ($level) {!! str_repeat(' ', $level) !!} @endif {{ $item->name }} ({{ $item->id }}) </option> @include('admin.editbloks.parent_id', ['level' => $level, 'parent' => $item->id]) @endforeach @endif |