@extends('layouts.admin') @section('page-title', 'پروفایل مشترک') @section('content')

{{ $customer->company_name ?? $customer->full_name }}

{{-- {{ $customer->bill_id }}--}} شناسه قبض: {{ $customer->bill_id }}

بازگشت
{{ $customer->type === 'legal' ? 'حقوقی' : 'حقیقی' }} {{ $customer->is_active ? 'فعال' : 'غیرفعال' }}

اطلاعات مشترک

نام کامل {{ $customer->company_name ?? $customer->full_name }}
شناسه ملی {{ $customer->national_id }}
شماره همراه {{ $customer->phone }}
شماره ثبت {{ $customer->registration_number }}
استان {{ $customer->province }}
شهر {{ $customer->city }}
آدرس روزنامه رسمی {{ $customer->newspaper_address }}
ایمیل {{ $customer->email ?? '—' }}

اطلاعات انشعاب

شماره کنتور {{ $customer->subscription?->meter_number ?? '—' }}
ضریب کنتور {{ $customer->subscription?->meter_factor ?? '—' }}
قدرت قراردادی {{ $customer->subscription?->contract_power ? number_format($customer->subscription->contract_power) . ' کیلووات' : '—' }}
سطح ولتاژ {{ $customer->subscription?->voltageLevel?->name ?? '—' }}
مالک شبکه {{ $customer->subscription?->networkOwner?->name ?? '—' }}
تعرفه {{ $customer->subscription?->tariffCode?->full_code ?? '—' }}

اطلاعات نماینده

نام و نام خانوادگی {{-- {{ ($customer->agent->first_name . ' ' . $customer->agent->last_name) ?? '—' }}--}} {{ $customer->agent ? ($customer->agent->first_name . ' ' . $customer->agent->last_name) : '—' }}
کد ملی {{ $customer->agent?->national_id ?? '—' }}
شماره همراه {{ $customer->agent?->phone_number ?? '—' }}
سمت {{ $customer->agent?->job_position ?? '—' }}

تضامین

@if($customer->guarantees && $customer->guarantees->count() > 0)
@foreach($customer->guarantees as $g)
نوع تضمین: {{ $g->type ?? 'نامشخص' }}
مبلغ: {{ number_format($g->amount ?? 0) }} ریال
وضعیت: {{ $g->status === 'active' ? 'فعال' : 'منقضی' }}
@endforeach
@else

هیچ تضمینی ثبت نشده

@endif
صفحه مدیریت — دسترسی فقط برای ادمین
{{-- scroll to tab--}} @endsection