{{ $customer->name }}

@if ($customer->group) {{ $customer->group->name }} @endif @if ($customer->subject) {{ $customer->subject->formattedCode() }} @endif
{{ __('Subject Balance') }}
{{ formatNumber($subjectBalance ?? 0) }}
{{ __('Ledger balance') }}
{{ __('Credit') }}
{{ formatNumber($customer->credit ?? 0) }}
{{ __('Credit limit') }}
{{ __('Orders') }}
{{ formatNumber($orders?->total() ?? 0) }}
{{ __('Total invoices') }}
{{ __('Identity Information') }}

{{ __('Name') }}

{{ $customer->name ?? '-' }}

{{ __('Account Plan Group') }}

{{ $customer->group->name ?? '-' }}

{{ __('National ID') }}

{{ $customer->personal_code ?? '-' }}

{{ __('Economic code') }}

{{ $customer->ecnmcs_code ?? '-' }}

@if ($customer->desc)
{{ __('Description') }}
{{ $customer->desc }}
@endif @if ($customer->comments)
{{ __('Comments') }}
@forelse ($customer->comments->take(5) as $comment) @empty @endforelse
{{ __('Commented By') }} {{ __('Content') }} {{ __('Rating') }}
{{ $comment->commentBy->name }}
{{ \Illuminate\Support\Str::limit($comment->content, 80, '…') }}
@for ($i = 1; $i <= 10; $i++) @php $starValue = $i / 2; $isFilled = $starValue <= $comment->rating; @endphp @endfor
{{ __('There is no comments.') }}
@endif
{{ __('Contact Information') }}

{{ __('Phone') }}

{{ $customer->tel ?? ($customer->phone ?? '-') }}

{{ __('Mobile') }}

{{ $customer->cell ?? '-' }}

{{ __('Email') }}

{{ $customer->email ?? '-' }}

{{ __('Website') }}

{{ $customer->web_page ?? '-' }}

{{ __('Fax') }}

{{ $customer->fax ?? '-' }}

{{ __('Postal code') }}

{{ $customer->postal_code ?? '-' }}

{{ __('Address') }}

{{ $customer->address ?? '-' }}

{{ __('Financial Information') }}

{{ __('Account 1') }}

{{ __('Name') }}: {{ $customer->acc_name_1 ?? '-' }}
{{ __('Account number') }}: {{ $customer->acc_no_1 ?? '-' }}
{{ __('Bank') }}: {{ $customer->acc_bank_1 ?? '-' }}

{{ __('Account 2') }}

{{ __('Name') }}: {{ $customer->acc_name_2 ?? '-' }}
{{ __('Account number') }}: {{ $customer->acc_no_2 ?? '-' }}
{{ __('Bank') }}: {{ $customer->acc_bank_2 ?? '-' }}
{{ __('Other Information') }}

{{ __('Connector') }}

{{ $customer->connector ?? '-' }}

{{ __('Responsible') }}

{{ $customer->responsible ?? '-' }}

{{ __('Orders') }}
@forelse ($orders as $order) @empty @endforelse
{{ __('Date') }} {{ __('Invoice Number') }} {{ __('Type') }} {{ __('Status') }} {{ __('Price') }} {{ __('Action') }}
{{ $order->date ? formatDate($order->date) : '-' }} {{ isset($order->number) ? formatDocumentNumber($order->number) : $order->id ?? '-' }} @if ($order->title)
{{ $order->title }}
@endif
{{ $order->invoice_type?->label() ?? '-' }} {{ $order->status?->label() ?? '-' }} {{ formatNumber(($order->amount ?? 0) - ($order->subtraction ?? 0)) }} {{ __('Show') }}
{{ __('No orders found') }}
@if ($orders->hasPages())
{{ $orders->links() }}
@endif
{{ __('Back') }}
{{ __('Comments') }} {{ __('Edit') }}
@csrf @method('DELETE')