@php $unpaidInvoicesTotal = $client->invoices()->where('status', 'unpaid')->sum('amount'); @endphp {{--
--}}

{{$client->firstname}} {{$client->lastname}}

{{$client->username}}
Create Date : {{$client->created_at->format('d M, Y')}}
Last Modified : {{$client->updated_at->format('d M, Y')}}
@if(!empty($client->location))
{{$client->location}} @if(!empty($client->latitude) && !empty($client->longitude)) Get Directions @endif
@endif
User status {!! $client->status() !!}
Wallet
Ksh {{ $client->balance }}
@if($unpaidInvoicesTotal && $unpaidInvoicesTotal > 0)
Total Unpaid Invoices
Ksh {{ number_format($unpaidInvoicesTotal) }}
@endif
@php $unpaidInvoicesTotal = $client->invoices()->where('status', 'unpaid')->sum('amount'); @endphp
Back

{{$client->firstname}} {{$client->lastname}}

Username
{{$client->username}}
Status
{!! $client->status() !!}
Unpaid Amount
Ksh {{ number_format($unpaidInvoicesTotal ?? 0) }}
Wallet
Ksh {{ $client->balance }}