@extends('layouts.main') @section('title') {{ __('credits.transaction_history') }} @endsection @section('page_title') {{ __('credits.transaction_history') }} - {{ $user->name }} @endsection @php $breadcrumbs = [ ['url' => route('dashboard'), 'label' => __('credit_packages.dashboard')], ['url' => route('admin.credits.dashboard'), 'label' => __('credits.title')], ['url' => route('admin.credits.users'), 'label' => __('credits.users')], ['url' => '', 'label' => __('credits.transaction_history')], ]; @endphp @section('content')
{{ __('credits.transaction_history_description') }}
{{ $user->name }}
{{ number_format($user->total_credits) }}
{{ number_format($user->used_credits) }}
{{ number_format($user->availableCredits()) }}
| {{ __('credits.transaction_details') }} | {{ __('credits.type') }} | {{ __('credits.credits') }} | {{ __('credits.balance_after') }} | {{ __('credits.description') }} |
|---|---|---|---|---|
{{ $transaction->type === 'purchase' ? __('credits.credit_purchase') : ($transaction->type === 'deduction' ? __('credits.credit_deduction') : __('credits.admin_credit_addition')) }}{{ $transaction->created_at->format('d M Y, h:i A') }} |
@if($transaction->type === 'purchase') {{ __('credits.purchase') }} @elseif($transaction->type === 'deduction') {{ __('credits.deduction') }} @else {{ __('credits.admin_added') }} @endif |
|
|
|
{{ __('credits.no_data_found') }}{{ __('credits.no_matching_records') }} |
||||