@extends('layouts.app') @section('title', 'عملاء المبيعات - '.config('app.name')) @section('breadcrumb') الرئيسية المبيعات عملاء المبيعات @endsection @section('content')
@if (session('import_result')) @endif

عملاء المبيعات

بطاقات العملاء للمستندات المالية والائتمان

مسح

{{ $customers->total() }} عميل

@forelse($customers as $customer) @php $opBal = (float) ($customer->open_balance ?? 0); $op = (($customer->status ?? ($customer->is_active ? 'active' : 'inactive')) === 'active') ? 'active' : 'inactive'; $phoneLine = trim(implode(' / ', array_filter([(string) $customer->phone, (string) $customer->mobile], fn ($p) => $p !== ''))); @endphp @empty @endforelse
العميل الحالة التشغيلية الرصيد الحالي الهاتف إجراءات
{{ $customer->display_name }} {{ $customer->code }} @if($op === 'active') نشط @else موقف @endif SAR{{ number_format($opBal, 2) }} {{ $phoneLine !== '' ? $phoneLine : '—' }} @php $salesCustMenuId = 'sales-cust-actions-'.$customer->id; @endphp
لا يوجد عملاء مطابقون للفلتر.
@if($customers->hasPages())
{{ $customers->links() }}
@endif
@endsection @push('modals') @endpush @push('scripts') @endpush