@extends('layouts.dashboard') @section('title', __('messages.payments')) @section('header', __('messages.payments')) @section('sidebar') @include('tenant.partials.sidebar') @endsection @section('content')

Payment History

Track all your rental payments, view payment status, and manage your payment records

{{ __('messages.total_paid') }}

{{ number_format($totalPaid ?? 0, 0) }} TZS

Total amount paid across all completed transactions

{{ __('messages.pending_amount') }}

{{ number_format($pendingAmount ?? 0, 0) }} TZS

Payment requests currently under review

{{ __('messages.overdue_amount') }}

{{ number_format($overdueAmount ?? 0, 0) }} TZS

Payment obligations that have exceeded the due date

{{ __('messages.payment_history') }}

Below is a comprehensive record of all your payment transactions, including completed payments, pending requests, and overdue obligations. Select any payment to view detailed transaction information, payment method, and related lease details.

@forelse($payments ?? [] as $payment) @empty @endforelse
{{ __('messages.payment_number') }} {{ __('messages.date') }} {{ __('messages.type') }} {{ __('messages.amount') }} {{ __('messages.status') }} {{ __('messages.actions') }}
{{ $payment->payment_number }} {{ \Carbon\Carbon::parse($payment->payment_date)->format('M d, Y') }} {{ ucfirst($payment->type) }} {{ number_format($payment->amount, 0) }} {{ $payment->currency }} {{ ucfirst($payment->status) }} {{ __('messages.view') }}

No Payments Found

{{ __('messages.no_payments_found') }}

Your payment history will appear here once payments are recorded.

@if(($payments ?? collect())->count() > 0)
{{ $payments->links() }}
@endif
@endsection