@extends('layouts.app') @section('title', __('Customer Receivables')) @section('content')
{{ __('Customer Receivables') }}
{{ __('Customers who still owe money to the business.') }}
{{ __('Add Receipt') }}
@forelse($customers as $customer) @empty @endforelse @if($customers->isNotEmpty()) @endif
{{ __('Customer') }} {{ __('Phone') }} {{ __('Outstanding Balance') }} {{ __('Actions') }}
{{ $customer->name }}{{ $customer->address ?: '-' }} {{ $customer->phone ?: '-' }} {{ number_format($customer->outstanding_balance, 2) }} {{ $customer->payment_currency_code ?: $moneyCode }} @if($customer->whatsapp_link) {{ __('WhatsApp') }} @else @endif
{{ __('No customers with outstanding balances.') }}
{{ __('Total') }}{{ number_format($customers->sum('outstanding_balance'), 2) }} {{ $moneyCode }}
@endsection