Make dashboard configurable.

This commit is contained in:
2025-02-06 11:08:30 +01:00
parent a545e253d3
commit 4c43bf2193
19 changed files with 535 additions and 159 deletions

View File

@@ -0,0 +1,13 @@
@php
$customers = \App\Models\Customer::doesntHave('address')->get();
@endphp
@if($customers->count() === 0)
<div class="w-full text-center">{{ __('dashboard.No data') }}</div>
@endif
@foreach($customers as $customer)
<a href="{{ route('customer.edit', $customer->id) }}"
class="flex max-w even:bg-gray-100 odd:bg-white">
<div class="w-1/2">{{ $customer->name }}</div>
<div class="w-1/2">{{ $customer->email }}</div>
</a>
@endforeach