@extends('site.layout') @section('content')
@if ($customer->avatar_path) @else @endif
{{ $customer->name }}
Phone: {{ $customer->phone ?? '-' }}
@if ((float) $customer->refer_balance > 0)
Refer Balance: {{ number_format((float) $customer->refer_balance, 2) }}
@endif
Account
Edit
Name
{{ $customer->name }}
Email
{{ $customer->email }}
Referal Code
{{ $customer->referral_code ?? '-' }}
Mobile
{{ $customer->phone ?? '-' }}
Referral Link
@php($refLink = url('/sign-up').'?ref='.urlencode((string) ($customer->referral_code ?? '')))
Share this link to invite others. Their signup will use your referral code.
@php($showBank = (float) $customer->refer_balance > 0 || $customer->bank_name || $customer->bank_account_name || $customer->bank_account_number || $customer->bank_branch || $customer->bank_routing_number) @if ($showBank)
Bank info
Bank name
{{ $customer->bank_name ?? '-' }}
Account name
{{ $customer->bank_account_name ?? '-' }}
Account number
{{ $customer->bank_account_number ?? '-' }}
Branch
{{ $customer->bank_branch ?? '-' }}
Routing number
{{ $customer->bank_routing_number ?? '-' }}
@endif
@endsection