@extends('layouts.app') @section('title', 'Customer Registration') @section('content')

Customer Registration

@if($list === 'all') Every customer account. The created-by column shows whether the customer signed up, or a warehouse user registered them. @else Walk-in customers registered at your warehouse. Choose All customers to see every account. @endif

Register customer
{{ $list === 'all' ? 'All customers' : 'Your walk-in customers' }} {{ $stats['total'] }}
Fully updated {{ $stats['full'] }}
Needs attention {{ $stats['pending'] }}
Clear
@if($customers->isEmpty())
@if($list === 'all')

No customers match this search

Try another name, email, customer ID, or profile status.

@else

No walk-in customers yet

Register a customer who arrives at the warehouse. They can sign in later with the email and password you set.

Register customer @endif
@else
@foreach($customers as $customer) @php $completion = $customer->completion; @endphp @endforeach
Customer Contact Registered Created by Profile Actions
{{ $customer->name }}
{{ $customer->customer_id ?: 'Customer ID pending' }}
{{ $customer->email }}
{{ optional($customer->profile)->phone ?: ($customer->phone ?: 'Phone not added') }}
{{ optional($customer->created_at)->format('d M Y') }} @if($customer->registered_by_wuser_id)
Warehouse user
{{ optional($customer->registeredByWarehouse)->name ?: 'Warehouse' }}
@else
Customer
Created by the customer
@endif
{{ $completion['label'] }}
@if($customers->hasPages())
{{ $customers->links('pagination::bootstrap-4') }}
@endif @endif
@endsection @push('styles') @endpush @push('scripts') @endpush