@extends('layouts.admin.app') @section('title', translate('Wallet')) @push('css_or_js') @endpush @section('customerDetails') active @endsection @section('content')
@include('admin-views.customer.partials._user_details_urls')
{{ translate('messages.Wallet Transaction History') }} {{ $walletHistory->total() }}
@foreach ($walletHistory as $key => $walletHistoryTransaction ) @endforeach
{{ translate('sl') }} {{translate('Transaction Id')}} {{translate('Transaction Date')}} {{translate('Amount')}} {{translate('Reference')}} {{translate('Transaction type')}}
{{ $key + $walletHistory->firstItem() }}
{{ $walletHistoryTransaction->reference_id }}
{{ \App\CentralLogics\Helpers::date_format($walletHistoryTransaction->created_at) }}
{{ \App\CentralLogics\Helpers::time_format($walletHistoryTransaction->created_at) }}
@if($walletHistoryTransaction->debit == 0)
+ {{ \App\CentralLogics\Helpers::format_currency($walletHistoryTransaction->credit + $walletHistoryTransaction->admin_bonus) }} @if ($walletHistoryTransaction->admin_bonus > 0) ( {{ translate('Bonus ') . \App\CentralLogics\Helpers::format_currency( $walletHistoryTransaction->admin_bonus) }} ) @endif
{{ translate('Credit') }} @else
- {{ \App\CentralLogics\Helpers::format_currency($walletHistoryTransaction->debit) }}
{{ translate('Debit') }} @endif
@if (is_numeric($walletHistoryTransaction->reference)) {{ $walletHistoryTransaction->reference }} @else
{{ $walletHistoryTransaction->reference }}
@endif
{{ translate($walletHistoryTransaction->transaction_type) }}
@if (count($walletHistory) === 0)
public
{{ translate('no_data_found') }}
@endif
@endsection @push('script_2') @endpush