{{ $customer->exists ? __('Edit Customer') : __('Add Customer') }}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @if ($customer->exists) @method('PUT') @endif

Basic Information

@error('name')

{{ $message }}

@enderror
@error('pin')

{{ $message }}

@enderror @if (!$customer->exists)

Next available PIN: {{ $nextPin }}

@endif

Contact Information

@error('mobile')

{{ $message }}

@enderror

Business Settings

@php $tierVal = old('price_tier', $customer->price_tier); if ($tierVal === null || $tierVal === '') { $typeVal = old('customer_type', $customer->customer_type); if ($typeVal === 'wholesale') { $tierVal = 1; } elseif ($typeVal === 'special') { $tierVal = 2; } elseif ($typeVal === 'mrp') { $tierVal = 3; } } $tierStr = ($tierVal === null || $tierVal === '') ? '' : (string) $tierVal; @endphp

If set, POS auto-applies this tier when selecting the customer.

Credit Management

credit_limit) === null ? 'disabled' : '' }}>

Leave empty or check unlimited for no limit. 0 = No credit allowed.

@error('credit_limit')

{{ $message }}

@enderror
@if ($customer->exists)
Current Balance: {{ number_format($customer->credit_balance, 2) }}
Remaining Limit: @if($customer->credit_limit === null) Unlimited @else {{ number_format($customer->remaining_credit_limit, 2) }} @endif
@else

Sets the starting credit balance (legacy: opening credit sale line).

@error('opening_credit')

{{ $message }}

@enderror
@endif
is_active ?? true))>

Inactive customers cannot make purchases

Cancel