@extends('layouts.app') @section('title', 'Customer Details') @section('content')
{{ substr($customer->name, 0, 1) }}

{{ $customer->name }}

@if($customer->company_name)

{{ $customer->company_name }}

@endif
Edit
@csrf @method('DELETE')
{{ $customer->email }}
{{ $customer->phone ?: '---' }}
{{ $customer->mobile_phone ?: '---' }}
{{ $customer->portal_access ? 'Portal Active' : 'Portal Disabled' }}
Billing Address

{{ $customer->name }}

{{ $customer->billing_address }}

@if($customer->billing_street2)

{{ $customer->billing_street2 }}

@endif

{{ $customer->billing_city }}@if($customer->billing_city && $customer->billing_state), @endif {{ $customer->billing_state }} {{ $customer->billing_zip }}

{{ $customer->billing_country }}

Shipping Address

{{ $customer->name }}

@if($customer->shipping_address)

{{ $customer->shipping_address }}

@if($customer->shipping_street2)

{{ $customer->shipping_street2 }}

@endif

{{ $customer->shipping_city }}@if($customer->shipping_city && $customer->shipping_state), @endif {{ $customer->shipping_state }} {{ $customer->shipping_zip }}

{{ $customer->shipping_country }}

@else

Same as billing address

@endif
More Information
{{ $customer->gst_number ?: '---' }}
{{ $customer->pan_number ?: '---' }}
{{ $customer->payment_terms ?: '---' }}
{{ $customer->currency }}
Contact Persons
@forelse($customer->contacts as $contact) @empty @endforelse
NAME EMAIL PHONE
{{ $contact->name }} {{ $contact->email ?: '---' }} {{ $contact->phone ?: '---' }}
No additional contact persons linked.
@if($customer->notes)
Remarks / Notes

{{ $customer->notes }}

@endif
Current Balance

{{ formatCurrency($customer->opening_balance) }}


Credit Limit {{ formatCurrency($customer->credit_limit) }}
@endsection