@extends('layouts.app') @section('title', 'Customer Details') @section('page-title', 'Customer Details') @section('content')
Customer Information
Edit Back
@if($customer->photo) {{ $customer->name }} @else
@endif

Customer Code: {{ $customer->customer_code }}

Name: {{ $customer->name }}

Phone: {{ $customer->phone }}

Email: {{ $customer->email ?? 'N/A' }}

Status: {{ ucfirst($customer->status) }}

Date of Birth: {{ $customer->date_of_birth?->format('d M Y') ?? 'N/A' }}

Gender: {{ ucfirst($customer->gender ?? 'N/A') }}

Address: {{ $customer->address ?? 'N/A' }}

Total Loans

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

Total Savings

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

@if($customer->savings->count() > 0) View Statement @endif
Total Repayments

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

@endsection