|
79 | 79 | </ui-panel> |
80 | 80 | @endif |
81 | 81 |
|
| 82 | + @if (Statamic\Facades\Nav::all()->count() > 0) |
| 83 | + <ui-subheading size="lg" class="mb-2">{{ __('Navigation') }}</ui-subheading> |
| 84 | + <ui-panel> |
| 85 | + <table class="data-table"> |
| 86 | + <thead> |
| 87 | + <tr> |
| 88 | + <th class="text-start!">{{ __('Blueprint') }}</th> |
| 89 | + </tr> |
| 90 | + </thead> |
| 91 | + <tbody> |
| 92 | + @foreach (Statamic\Facades\Nav::all() as $nav) |
| 93 | + <tr> |
| 94 | + <td> |
| 95 | + <div class="flex items-center gap-2"> |
| 96 | + <ui-icon name="navigation" class="text-gray-500 me-1" /> |
| 97 | + <a href="{{ cp_route('blueprints.navigation.edit', $nav->handle()) }}" v-pre>{{ __($nav->title()) }}</a> |
| 98 | + </div> |
| 99 | + </td> |
| 100 | + </tr> |
| 101 | + @endforeach |
| 102 | + </tbody> |
| 103 | + </table> |
| 104 | + </ui-panel> |
| 105 | + @endif |
| 106 | + |
82 | 107 | @if (Statamic\Facades\Taxonomy::all()->count() > 0) |
83 | 108 | <ui-subheading size="lg" class="mb-2">{{ __('Taxonomies') }}</ui-subheading> |
84 | 109 | <ui-panel> |
|
113 | 138 | </ui-panel> |
114 | 139 | @endif |
115 | 140 |
|
116 | | - @if (Statamic\Facades\Nav::all()->count() > 0) |
117 | | - <ui-subheading size="lg" class="mb-2">{{ __('Navigation') }}</ui-subheading> |
| 141 | + @if (Statamic\Facades\AssetContainer::all()->count() > 0) |
| 142 | + <ui-subheading size="lg" class="mb-2">{{ __('Asset Containers') }}</ui-subheading> |
118 | 143 | <ui-panel> |
119 | 144 | <table class="data-table"> |
120 | 145 | <thead> |
|
123 | 148 | </tr> |
124 | 149 | </thead> |
125 | 150 | <tbody> |
126 | | - @foreach (Statamic\Facades\Nav::all() as $nav) |
| 151 | + @foreach (Statamic\Facades\AssetContainer::all() as $container) |
127 | 152 | <tr> |
128 | 153 | <td> |
129 | 154 | <div class="flex items-center gap-2"> |
130 | | - <ui-icon name="navigation" class="text-gray-500 me-1" /> |
131 | | - <a href="{{ cp_route('blueprints.navigation.edit', $nav->handle()) }}" v-pre>{{ __($nav->title()) }}</a> |
| 155 | + <ui-icon name="assets" class="text-gray-500 me-1" /> |
| 156 | + <a href="{{ cp_route('blueprints.asset-containers.edit', $container->handle()) }}" v-pre>{{ __($container->title()) }}</a> |
132 | 157 | </div> |
133 | 158 | </td> |
134 | 159 | </tr> |
|
163 | 188 | </ui-panel> |
164 | 189 | @endif |
165 | 190 |
|
166 | | - @if (Statamic\Facades\AssetContainer::all()->count() > 0) |
167 | | - <ui-subheading size="lg" class="mb-2">{{ __('Asset Containers') }}</ui-subheading> |
168 | | - <ui-panel> |
169 | | - <table class="data-table"> |
170 | | - <thead> |
171 | | - <tr> |
172 | | - <th class="text-start!">{{ __('Blueprint') }}</th> |
173 | | - </tr> |
174 | | - </thead> |
175 | | - <tbody> |
176 | | - @foreach (Statamic\Facades\AssetContainer::all() as $container) |
177 | | - <tr> |
178 | | - <td> |
179 | | - <div class="flex items-center gap-2"> |
180 | | - <ui-icon name="assets" class="text-gray-500 me-1" /> |
181 | | - <a href="{{ cp_route('blueprints.asset-containers.edit', $container->handle()) }}" v-pre>{{ __($container->title()) }}</a> |
182 | | - </div> |
183 | | - </td> |
184 | | - </tr> |
185 | | - @endforeach |
186 | | - </tbody> |
187 | | - </table> |
188 | | - </ui-panel> |
189 | | - @endif |
190 | | - |
191 | 191 | @if (Statamic\Facades\User::current()->can('configure form fields') && Statamic\Facades\Form::all()->count() > 0) |
192 | 192 | <ui-subheading size="lg" class="mb-2">{{ __('Forms') }}</ui-subheading> |
193 | 193 | <ui-panel> |
|
0 commit comments