Customers Management

{{-- Search and Filters --}}
@foreach($customerTypes as $value => $label) @endforeach @foreach($activeOptions as $value => $label) @endforeach @if($search || $filterByType || $filterByActive) @endif
Name Email Registered @forelse ($customers as $cust) @empty @endforelse
Phone Type Orders Total Spent Status Actions
@if($cust->customer_type === 'business' && $cust->business_name) {{ $cust->business_name }}
{{ $cust->first_name }} {{ $cust->last_name }}
@else {{ $cust->first_name }} {{ $cust->last_name }} @endif
{{ $cust->email }} {{ $cust->phone ?? 'N/A' }} @if($cust->customer_type === 'business') Business @else Individual @endif {{ $cust->orders_count }} ${{ number_format($cust->total_spent ?? 0, 2) }} {{ $cust->registration_date?->format('M d, Y') ?? $cust->created_at?->format('M d, Y') ?? 'N/A' }}
No customers found.
{{ $customers->links() }}
{{-- Edit Customer Modal --}}

Edit Customer

{{-- Basic Info --}} {{-- Type --}}
{{-- Business Fields --}} @if($customerType === 'business') @endif {{-- Financial --}} {{-- Discount Configuration Section --}}

Discount Settings

@foreach($discountTypes as $value => $label) @endforeach @if($discountType !== 'none') @endif {{-- Status --}}
Active
{{-- Notes --}}
{{-- Read-only Fields --}} @if($stripeCustomerId)
{{ $stripeCustomerId }}
@endif @if($registrationDate)
{{ $registrationDate }}
@endif
Save Changes Cancel