Add customer contact inquiry system, automated receipt emails, admin communication inbox, and customer profile management
This commit is contained in:
@@ -73,6 +73,24 @@
|
||||
<span>Bestellingen</span>
|
||||
</a>
|
||||
|
||||
@php
|
||||
$unreadCommCount = \App\Models\Communication::where('status', 'new')->count();
|
||||
@endphp
|
||||
<a href="{{ route('admin.communications.index') }}" class="px-3 py-1.5 rounded-lg transition flex items-center space-x-1.5 {{ request()->routeIs('admin.communications.*') ? 'bg-slate-900 text-white font-semibold' : 'text-slate-600 hover:text-slate-900 hover:bg-slate-100' }}">
|
||||
<i data-lucide="message-square" class="w-3.5 h-3.5"></i>
|
||||
<span>Communicatie</span>
|
||||
@if($unreadCommCount > 0)
|
||||
<span class="ml-1 px-1.5 py-0.2 rounded-full text-[10px] font-bold {{ request()->routeIs('admin.communications.*') ? 'bg-white text-slate-900' : 'bg-sky-500 text-white animate-pulse' }}">
|
||||
{{ $unreadCommCount }}
|
||||
</span>
|
||||
@endif
|
||||
</a>
|
||||
|
||||
<a href="{{ route('admin.customers.index') }}" class="px-3 py-1.5 rounded-lg transition flex items-center space-x-1.5 {{ request()->routeIs('admin.customers.*') ? 'bg-slate-900 text-white font-semibold' : 'text-slate-600 hover:text-slate-900 hover:bg-slate-100' }}">
|
||||
<i data-lucide="users" class="w-3.5 h-3.5"></i>
|
||||
<span>Klanten</span>
|
||||
</a>
|
||||
|
||||
<a href="{{ route('admin.makerworld.index') }}" class="px-3 py-1.5 rounded-lg transition flex items-center space-x-1.5 {{ request()->routeIs('admin.makerworld.index*') ? 'bg-slate-900 text-white font-semibold' : 'text-slate-600 hover:text-slate-900 hover:bg-slate-100' }}">
|
||||
<i data-lucide="download-cloud" class="w-3.5 h-3.5"></i>
|
||||
<span>MakerWorld Sync</span>
|
||||
@@ -139,6 +157,17 @@
|
||||
<a href="{{ route('admin.orders.index') }}" class="block px-3 py-2 rounded-lg {{ request()->routeIs('admin.orders.*') ? 'bg-slate-100 text-slate-900 font-semibold' : 'text-slate-600 hover:bg-slate-50' }}">
|
||||
Bestellingen
|
||||
</a>
|
||||
<a href="{{ route('admin.communications.index') }}" class="block px-3 py-2 rounded-lg {{ request()->routeIs('admin.communications.*') ? 'bg-slate-100 text-slate-900 font-semibold' : 'text-slate-600 hover:bg-slate-50' }}">
|
||||
Communicatie
|
||||
@if(($unreadCommCount ?? 0) > 0)
|
||||
<span class="ml-2 px-1.5 py-0.5 rounded-full text-[10px] font-bold bg-sky-500 text-white">
|
||||
{{ $unreadCommCount }}
|
||||
</span>
|
||||
@endif
|
||||
</a>
|
||||
<a href="{{ route('admin.customers.index') }}" class="block px-3 py-2 rounded-lg {{ request()->routeIs('admin.customers.*') ? 'bg-slate-100 text-slate-900 font-semibold' : 'text-slate-600 hover:bg-slate-50' }}">
|
||||
Klanten & Profielen
|
||||
</a>
|
||||
<a href="{{ route('admin.makerworld.index') }}" class="block px-3 py-2 rounded-lg {{ request()->routeIs('admin.makerworld.*') ? 'bg-slate-100 text-slate-900 font-semibold' : 'text-slate-600 hover:bg-slate-50' }}">
|
||||
MakerWorld Sync
|
||||
</a>
|
||||
|
||||
@@ -102,6 +102,9 @@
|
||||
<a href="{{ route('catalog') }}" class="px-3 py-1.5 rounded-lg transition {{ request()->routeIs('catalog') && !request('category') ? 'bg-slate-100 text-slate-900 font-semibold' : 'hover:text-slate-900 hover:bg-slate-50' }}">
|
||||
Alle Prints
|
||||
</a>
|
||||
<a href="{{ route('contact.index') }}" class="px-3 py-1.5 rounded-lg transition {{ request()->routeIs('contact.*') ? 'bg-slate-100 text-slate-900 font-semibold' : 'hover:text-slate-900 hover:bg-slate-50' }}">
|
||||
Vraag stellen
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@@ -210,6 +213,9 @@
|
||||
<a href="{{ route('catalog') }}" class="px-3 py-2 rounded-lg hover:bg-slate-50 flex items-center justify-between text-slate-600">
|
||||
<span>Alle Prints Bekijken</span>
|
||||
</a>
|
||||
<a href="{{ route('contact.index') }}" class="px-3 py-2 rounded-lg hover:bg-slate-50 flex items-center justify-between text-slate-900 font-medium">
|
||||
<span>Vraag stellen / Contact</span>
|
||||
</a>
|
||||
|
||||
<div class="border-t border-slate-100 pt-3 mt-2">
|
||||
@guest
|
||||
@@ -337,6 +343,12 @@
|
||||
<i data-lucide="truck" class="w-3.5 h-3.5 text-slate-400"></i>
|
||||
<span>{{ setting('footer_shipping_text', 'Snelle verzending via PostNL') }}</span>
|
||||
</div>
|
||||
<div class="pt-1">
|
||||
<a href="{{ route('contact.index') }}" class="inline-flex items-center space-x-1 text-slate-900 font-semibold hover:underline">
|
||||
<span>Direct vraag stellen</span>
|
||||
<span>→</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user