@extends('admin.layouts.master') @section('title', 'تفاصيل العميل') @section('page-header')
العملاء

{{ $customer->name }}

تعديل العودة
@endsection @section('content')
{{ mb_substr($customer->name, 0, 1) }}

{{ $customer->name }}

{{ $customer->code }}
{{ $customer->category_label }} {{ $customer->is_active ? 'نشط' : 'غير نشط' }}

البيانات الاتصالية

الهاتف:
{{ $customer->phone ?: '-' }}
الجوال:
{{ $customer->mobile ?: '-' }}
البريد:
{{ $customer->email ?: '-' }}
العنوان:
{{ $customer->address ?: '-' }}
المدينة:
{{ $customer->city ?: '-' }}
الرقم الضريبي:
{{ $customer->tax_number ?: '-' }}
الفرع:
{{ $customer->branch?->name ?: '-' }}
الرصيد الحالي

{{ number_format(abs($customer->current_balance), 2) }} ج.م

{{ $customer->current_balance >= 0 ? 'له' : 'عليه' }}
إجمالي الطلبات

{{ $customer->orders->count() }}

حد الائتمان

{{ number_format($customer->credit_limit, 2) }}

آخر الفواتير

@forelse($customer->invoices->take(15) as $inv) @empty @endforelse
الرقمالتاريخالإجماليالمدفوعالمتبقيالحالة
{{ $inv->invoice_no }} {{ $inv->invoice_date?->format('Y-m-d') }} {{ number_format($inv->total_amount, 2) }} {{ number_format($inv->paid_amount, 2) }} {{ number_format($inv->remaining_amount, 2) }} {{ $inv->status_label }}
لا توجد فواتير
@endsection