@php($page = 'customers') {{env('APP_NAME')}} | Customer's payments {{-- --}} {{-- @livewireStyles --}}
@include("components.navbar")
@include("components.sidebar")

Customer's Payments


@if($customer->type == "individual")
Customer Information
First Name : {{$customer->first_name}}
Last Name : {{$customer->last_name}}
Type : {{$customer->type}}
State : {{$customer->state}}
@else
Corporate Information
Corporate Name : {{$customer->corporate_name}}
Type : {{$customer->type}}
State : {{$customer->state}}
@endif
Summary
All Payments : {{number_format($data['all_payments'] ?? 0)}}
Paid Payments : {{number_format($data['paid_payments'] ?? 0)}}
Total Amount : N {{number_format($data['paid_total'] ?? 0)}}
{{-- payments --}}

All payments

@php($count = 1) @foreach ($payments as $payment) @php($count++) @endforeach
S/N Reference Method Amount Status Date
{{ $count }} {{ $payment->reference }} {{ $payment->method}} ₦ {{ number_format($payment->amount) }} {{ $payment->status }} {{ $payment->payment_date }}
@include("components.footer")
{{-- --}} {{-- --}}