@extends('borrower.layout') @section('content') @if(!$user) @if(request()->boolean('setup'))
Borrower portal

Set up your account

Paid later at a store? Enter the email you used at checkout. We will email you a link to choose your password. The link works for 60 minutes.

@csrf

Already chose a password? Sign in

@else
Borrower portal

Sign in to your account

Track your loan application, see confirmed loan balances, and manage repayments. Use the email and password for your NextPayDay account.

First time here? Set up your account to choose a password.
@csrf
@include('borrower.password-field', ['id' => 'password', 'name' => 'password', 'label' => 'Password', 'autocomplete' => 'current-password'])
@endif @else
Borrower portal

Your applications and loans

Signed in as {{ $user->email }}

@csrf
@php $activeFacilities = $facilities->where("status", "active"); $balance = $activeFacilities->sum(fn($f) => $f->schedules->sum(fn($s) => $s->remainingAmountMinor())); $nextDue = $activeFacilities->flatMap(fn($f) => $f->schedules)->filter(fn($s) => $s->remainingAmountMinor() > 0)->sortBy("due_date")->first(); @endphp

You owe (confirmed)

₦{{ number_format($balance / 100, 2) }}

Only payments we have confirmed are deducted.

Active loans

{{ $activeFacilities->count() }}

Next payment due

{{ $nextDue ? $nextDue->due_date->format("d M Y") : "—" }}

@if($nextDue)

₦{{ number_format($nextDue->remainingAmountMinor() / 100, 2) }}

@endif
@if(!empty($virtualAccount?->account_number))

Your repayment account

Pay by bank transfer to this account. Transfers are credited to your NextPayDay wallet, then used for your loan.

Bank

{{ $virtualAccount->bank_name }}

Account number

{{ $virtualAccount->account_number }}

Account name

{{ $virtualAccount->account_name }}
@endif

Your Pay Later applications and loans

{{ $loans->count() }} {{ $loans->count() === 1 ? "record" : "records" }}

@forelse($loans as $loan) @php $facility = $facilities->get($loan->meta['credit_application_id'] ?? null); $open = $facility ? $facility->schedules->sortBy('sequence')->filter(fn($s) => $s->remainingAmountMinor() > 0)->values() : collect(); $remaining = $open->sum(fn($s) => $s->remainingAmountMinor()); $next = $open->first(); $isActive = $facility && $facility->status === 'active'; $isDisbursed = $facility && ($isActive || $facility->status === 'closed' || $facility->activated_at !== null); $pending = $facility ? ($pendingPayments->get($facility->id) ?? collect()) : collect(); $wallet = (float) ($walletBalance ?? 0); $nextAmount = $next ? $next->remainingAmountMinor() / 100 : 0; $overdue = $open->filter(fn($s) => $s->due_date->isPast() && ! $s->due_date->isToday())->count(); $applicationStatus = $loan->meta['application_status'] ?? 'submitted'; $loanLabel = $facility ? ($facility->status === 'closed' ? 'Fully repaid' : ($isActive ? 'Active' : ucfirst(str_replace('_', ' ', $facility->status)))) : ucfirst(str_replace('_', ' ', $applicationStatus)); @endphp

{{ $isDisbursed ? 'Loan' : 'Loan application' }} {{ $loan->reference }}

Pay Later purchase · NextPayDay

{{ $loanLabel }}
@if(!$isDisbursed)
No funds have been disbursed. Nothing is due yet. @if($facility && $facility->status === 'mandate_pending')

Complete Mono and Paystack mandate setup in your checkout to continue.

@elseif($facility && $facility->status === 'ready_to_disburse')

Your application is ready for disbursement. It will appear as a loan once funds are disbursed.

@elseif($facility && $facility->status === 'offered')

Accept your offer and complete Mono and Paystack mandate setup in your checkout to continue.

@elseif(in_array($applicationStatus, ['declined', 'cancelled'], true) || ($facility && $facility->status === 'cancelled'))

This application is {{ $facility && $facility->status === 'cancelled' ? 'cancelled' : $applicationStatus }}.

@else

You can track your application here while it is being reviewed.

@endif

{{ $facility ? 'Approved amount' : 'Requested amount' }}

₦{{ number_format(($facility ? $facility->principal_minor : $loan->amount * 100) / 100, 2) }}
@elseif($facility)

Amount borrowed

₦{{ number_format($facility->principal_minor / 100, 2) }}

Still to pay

₦{{ number_format($remaining / 100, 2) }}

Installments left

{{ $open->count() }} of {{ $facility->schedules->count() }}
@if($pending->isNotEmpty())
Payment awaiting confirmation

You started a payment of ₦{{ number_format($pending->sum('amount_minor') / 100, 2) }}. Your balance has not changed yet. It updates as soon as the payment is confirmed, usually within a few minutes. If you already paid, refresh this page shortly instead of paying again.

@endif @if($overdue > 0)@endif
@foreach($facility->schedules->sortBy('sequence') as $schedule) @php $left = $schedule->remainingAmountMinor(); $late = $left > 0 && $schedule->due_date->isPast() && ! $schedule->due_date->isToday(); [$cls, $txt] = $left === 0 ? ['pill-paid', 'Paid'] : ($late ? ['pill-late', 'Overdue'] : ($schedule->amount_paid_minor > 0 ? ['pill-part', 'Part paid'] : ['pill-due', $next && $next->id === $schedule->id ? 'Next up' : 'Upcoming'])); @endphp @endforeach
#Due dateAmountPaid so farStatus
{{ $schedule->sequence }}{{ $schedule->due_date->format('d M Y') }}₦{{ number_format($schedule->amount_due_minor / 100, 2) }}₦{{ number_format($schedule->amount_paid_minor / 100, 2) }}{{ $txt }}
@if($isActive && $remaining > 0)

Make a payment

You will be sent to our secure payment page (Paystack) to pay by card or bank. Your loan balance changes only after the payment is confirmed.

@csrf @if($open->count() > 1)@endif
Pay from your wallet

Balance ₦{{ number_format($wallet, 2) }}. {{ $wallet < $nextAmount ? 'Not enough for this payment. Add money in the NextPayDay app to use it.' : 'Instant, with no checkout page.' }}

@csrf@if($open->count() > 1)@endif

Automatic collection is still switched on, so we may also collect on the due date. You will never be charged twice for the same installment.

@elseif($facility->status === 'closed')
This loan is fully repaid.

Nothing more to pay. Thank you.

@endif @endif
@empty

No Pay Later applications or loans yet

Your Pay Later application will appear here when you submit it. Once funds are disbursed, you can see your loan balance and repayment schedule.

@endforelse @endif @php($play = config('partner_credit.play_store_url')) @php($apple = config('partner_credit.app_store_url')) @if(($play && parse_url($play, PHP_URL_HOST) === 'play.google.com' && parse_url($play, PHP_URL_SCHEME) === 'https') || ($apple && parse_url($apple, PHP_URL_HOST) === 'apps.apple.com' && parse_url($apple, PHP_URL_SCHEME) === 'https'))

NextPayDay on your phone

Use the same NextPayDay email and password to sign in. You can also manage your BNPL loan on this page.

@if($play && parse_url($play, PHP_URL_HOST) === 'play.google.com' && parse_url($play, PHP_URL_SCHEME) === 'https')Download on Google Play@endif @if($apple && parse_url($apple, PHP_URL_HOST) === 'apps.apple.com' && parse_url($apple, PHP_URL_SCHEME) === 'https')Download on the App Store@endif
@endif @endsection