Implement MakerWorld collections sync every 10 minutes and Artikel Beheer staging workflow
This commit is contained in:
@@ -44,6 +44,19 @@
|
||||
<span>Producten</span>
|
||||
</a>
|
||||
|
||||
@php
|
||||
$draftBadgeCount = \App\Models\Product::where('status', 'draft')->count();
|
||||
@endphp
|
||||
<a href="{{ route('admin.makerworld.staging') }}" class="px-3 py-2 rounded-xl transition flex items-center space-x-1.5 {{ request()->routeIs('admin.makerworld.staging*') ? 'bg-amber-400 text-slate-950 font-black' : 'text-slate-300 hover:text-white hover:bg-slate-800' }}">
|
||||
<i data-lucide="layers" class="w-4 h-4"></i>
|
||||
<span>Artikel Beheer</span>
|
||||
@if($draftBadgeCount > 0)
|
||||
<span class="ml-1 px-1.5 py-0.2 rounded-full text-[10px] font-black {{ request()->routeIs('admin.makerworld.staging*') ? 'bg-slate-950 text-amber-400' : 'bg-amber-400 text-slate-950' }}">
|
||||
{{ $draftBadgeCount }}
|
||||
</span>
|
||||
@endif
|
||||
</a>
|
||||
|
||||
<a href="{{ route('admin.categories.index') }}" class="px-3 py-2 rounded-xl transition flex items-center space-x-1.5 {{ request()->routeIs('admin.categories.*') ? 'bg-amber-400 text-slate-950 font-black' : 'text-slate-300 hover:text-white hover:bg-slate-800' }}">
|
||||
<i data-lucide="folder-tree" class="w-4 h-4"></i>
|
||||
<span>Categorieën</span>
|
||||
@@ -54,9 +67,9 @@
|
||||
<span>Bestellingen</span>
|
||||
</a>
|
||||
|
||||
<a href="{{ route('admin.makerworld.index') }}" class="px-3 py-2 rounded-xl transition flex items-center space-x-1.5 {{ request()->routeIs('admin.makerworld.*') ? 'bg-amber-400 text-slate-950 font-black' : 'text-slate-300 hover:text-white hover:bg-slate-800' }}">
|
||||
<a href="{{ route('admin.makerworld.index') }}" class="px-3 py-2 rounded-xl transition flex items-center space-x-1.5 {{ request()->routeIs('admin.makerworld.index*') ? 'bg-amber-400 text-slate-950 font-black' : 'text-slate-300 hover:text-white hover:bg-slate-800' }}">
|
||||
<i data-lucide="download-cloud" class="w-4 h-4"></i>
|
||||
<span>MakerWorld</span>
|
||||
<span>MakerWorld Sync</span>
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
@@ -85,6 +98,14 @@
|
||||
<a href="{{ route('admin.products.index') }}" class="block px-3 py-2 rounded-xl {{ request()->routeIs('admin.products.*') ? 'bg-amber-400 text-slate-950' : 'text-slate-300' }}">
|
||||
📦 Producten
|
||||
</a>
|
||||
<a href="{{ route('admin.makerworld.staging') }}" class="block px-3 py-2 rounded-xl {{ request()->routeIs('admin.makerworld.staging*') ? 'bg-amber-400 text-slate-950' : 'text-slate-300' }}">
|
||||
⚡ Artikel Beheer (Geïmporteerd)
|
||||
@if(($draftBadgeCount ?? 0) > 0)
|
||||
<span class="ml-2 px-1.5 py-0.5 rounded-full text-xs font-black bg-amber-400 text-slate-950">
|
||||
{{ $draftBadgeCount }} nieuw
|
||||
</span>
|
||||
@endif
|
||||
</a>
|
||||
<a href="{{ route('admin.categories.index') }}" class="block px-3 py-2 rounded-xl {{ request()->routeIs('admin.categories.*') ? 'bg-amber-400 text-slate-950' : 'text-slate-300' }}">
|
||||
📁 Categorieën
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user