@extends('layouts.dashboard') @section('content') @include('customers._theme')
@if(session('success'))
✅ {{ session('success') }}
@endif
SNYT Field Sales Platform

{{ auth()->user()->isAdmin() ? 'Customers' : 'My Customers' }}

Manage customer records, locations, credit settings, and linked orders.

@if(auth()->user()->isAdmin()) 📄 Focus Import @endif 📥 Import ➕ Add Customer
All
{{ number_format($stats['all']) }}
Active
{{ number_format($stats['active']) }}
Prospects
{{ number_format($stats['prospect']) }}
Inactive
{{ number_format($stats['inactive']) }}
With Location
{{ number_format($stats['with_location']) }}
@if(auth()->user()->isAdmin())
@endif
@if(request()->query()) ✕ @endif
@if(auth()->user()->isAdmin())
@csrf Bulk move to area 0 selected Select rows below, or select this page. Only selected customers will move.
@if($errors->any())
{{ $errors->first() }}
@endif @endif
@if(auth()->user()->isAdmin()) @endif @if(auth()->user()->isAdmin()) @endif @forelse($customers as $customer) @php $statusClass = match($customer->status) { 'active' => 'badge-success', 'prospect' => 'badge-warning', 'inactive' => 'badge-error', default => 'badge-ghost', }; @endphp @if(auth()->user()->isAdmin()) @endif @if(auth()->user()->isAdmin()) @endif @empty @endforelse
Customer Contact AreaSalesmanStatus Orders Credit
{{ $customer->shop_name }} @if($customer->is_test_data)QA@endif
{{ $customer->customer_code }}
{{ $customer->contact_person ?: '—' }}
{{ $customer->phone ?: 'No phone' }}
{{ $customer->area?->name ?: '—' }} {{ $customer->salesman?->name ?: 'Unassigned' }} {{ ucfirst($customer->status) }} {{ number_format($customer->orders_count) }} @if($customer->credit_limit !== null) AED {{ number_format((float) $customer->credit_limit, 2) }} @else — @endif View
🏪
No customers found
Add customers manually or import an Excel sheet.
@if($customers->hasPages())
{{ $customers->links() }}
@endif
@if(auth()->user()->isAdmin()) @endif @endsection