@extends($activeTemplate . 'layouts.master')
@section('content')
    <div class="transaction-section padding-top padding-bottom">
        <div class="container">
            <div class="row justify-content-center">

            </div>
            <div class="primary-bg item-rounded">
                <table class="deposite-table">
                    <thead class="custom--table">
                        <tr>
                            <th>@lang('User Id')</th>
                            <th>@lang('Receiver')</th>
                            <th>@lang('Amount')</th>
                            <th>@lang('Screenshot')</th>
                            <th>@lang('UTR No')</th>
                            <th>@lang('Status')</th>
                            <th>@lang('Confirmed At')</th>
                            <th>@lang('Payment Mode')</th>
                            <th>@lang('Created At')</th>

                        </tr>
                    </thead>
                    <tbody>
                        @forelse($payments as $payment)
                            @php
                                $path = getFilePath('withdrawMethod') . '/' . $payment->screen_short;
                                $image = getImage($path, getFileSize('withdrawMethod'));
                            @endphp
                            <tr>
                                <td>{{ $payment->receiverUser->system_id }}</td>
                                <td>{{ $payment->receiverUser->fullname }}</td>
                                <td>{{ getAmount($payment->amount) }} {{ __($general->cur_text) }}</td>
                                <td> <a href="{{ $image }}" target="_blank">see file</a></td>
                                <td>{{ $payment->utr_no }}</td>
                                <td>
                                    {!! $payment->statusBadge !!}
                                </td>
                                <td>{{ showDateTime($payment->payment_status_confirmed_at) }}</td>
                                <td>{{ $payment->payment_mode }}</td>
                                <td>{{ showDateTime($payment->created_at) }}</td>

                            </tr>
                        @empty
                            <tr>
                                <td colspan="100%">{{ __($emptyMessage) }}</td>
                            </tr>
                        @endforelse
                    </tbody>
                </table>
            </div>
        </div>
    </div>
@endsection
