@extends('layouts.app') @section('title', 'Credits & Packages') @section('content')

Credits & Packages

Purchase credits to unlock premium features like video calls

Current Balance

{{ auth()->user()->credits }} Credits

Total Purchased

{{ $statistics['total_purchased'] }} Credits

Total Spent: {{ $statistics['total_spent'] }} Credits

@foreach($packages as $package)
@if($package['popular'])
Most Popular
@endif

{{ $package['name'] }}

₹{{ number_format($package['price'] / 100, 2) }}
{{ $package['credits'] }} Credits @if($package['bonus_credits'] > 0) + {{ $package['bonus_credits'] }} Bonus Credits @endif
@endforeach

How Credits Work

Video Calls

2 credits per minute

Audio Calls

1 credit per minute

Super Like

3 credits each

Recent Transactions

View All
@if($statistics['total_transactions'] > 0)

You have {{ $statistics['total_transactions'] }} total transactions.

@if($statistics['last_purchase']) Last purchase: {{ $statistics['last_purchase']->format('M j, Y') }} @else No purchases yet @endif

@else

No transactions yet. Purchase your first credit package above!

@endif
@endsection @push('scripts') @endpush