@extends('layouts.main') @section('title') {{ __('credits.credit_purchases') }} @endsection @section('page_title') {{ __('credits.credit_purchases') }} @endsection @php $breadcrumbs = [ ['url' => route('dashboard'), 'label' => __('credit_packages.dashboard')], ['url' => route('admin.credits.dashboard'), 'label' => __('credits.title')], ['url' => '', 'label' => __('credits.credit_purchases')], ]; @endphp @section('content')

{{ __('credits.filters_search') }}

{{ __('credits.filter_search_purchases') }}

{{ __('credits.clear') }}
@forelse($purchases as $purchase) @empty @endforelse
{{ __('credits.id') }} {{ __('credits.date') }} {{ __('credits.user') }} {{ __('credits.package') }} {{ __('credits.credits') }} {{ __('credits.amount') }} {{ __('credits.payment_id') }} {{ __('credits.status') }}
#{{ $purchase->id }}
{{ $purchase->purchased_at ? $purchase->purchased_at->format('d M Y, h:i A') : '-' }}
{{ $purchase->user->name }}
{{ $purchase->package->title ?? 'N/A' }}
{{ number_format($purchase->credits_purchased) }}
₹{{ number_format($purchase->amount_paid, 2) }}
{{ Str::limit($purchase->payment_intent_id, 20) }}
@if($purchase->status === 'completed')
{{ __('credits.completed') }}
@elseif($purchase->status === 'pending')
{{ __('credits.pending') }}
@else
{{ __('credits.failed') }}
@endif

{{ __('credits.no_data_found') }}

{{ __('credits.no_matching_records') }}

@endsection @push('custom_styles') @endpush @push('custom_scripts') @endpush