@extends('layouts.app') @section('title', 'My Account') @section('content')
My Account

View your billings and payment history

Total Billings
{{ $totalBillings }}
Paid
{{ $paidBillings }}
Pending
{{ $pendingBillings }}
Amount Due
${{ number_format($totalDue, 2) }}
Account Information

Name: {{ Auth::user()->name }}

Email: {{ Auth::user()->email }}

Phone: {{ Auth::user()->phone ?? 'Not provided' }}

Account Status: Active

Recent Payments
@if($recentPayments->count() > 0)
@foreach($recentPayments as $payment) @endforeach
Date Billing Period Amount Method Status
{{ $payment->created_at->format('M d, Y') }} {{ $payment->billing->billing_month ?? 'N/A' }} ${{ number_format($payment->amount, 2) }} {{ ucfirst($payment->payment_method) }} @if($payment->status === 'completed') Completed @elseif($payment->status === 'pending') Pending @else {{ ucfirst($payment->status) }} @endif
@else

No payments recorded yet.

@endif
Recent Billings
@if($totalBillings > 0)

For detailed billing information, please contact support.

@else

No billings available yet.

@endif
@endsection