File size: 8,645 Bytes
52d9fb0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | @extends('admin.layouts.app')
@section('panel')
<div class="row mb-none-30 justify-content-center">
<div class="col-xl-4 col-md-6 mb-30">
<div class="card overflow-hidden box--shadow1">
<div class="card-body">
<h5 class="mb-20 text-muted">@lang('Payment Via') @if($deposit->method_code < 5000) {{ __(@$deposit->gateway->name) }} @else @lang('Google Pay') @endif</h5>
<ul class="list-group">
<li class="list-group-item d-flex justify-content-between align-items-center">
@lang('Date')
<span class="fw-bold">{{ showDateTime($deposit->created_at) }}</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
@lang('Transaction Number')
<span class="fw-bold">{{ $deposit->trx }}</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
@lang('Username')
<span class="fw-bold">
<a href="{{ route('admin.users.detail', $deposit->user_id) }}"><span>@</span>{{ @$deposit->user->username }}</a>
</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
@lang('Method')
<span class="fw-bold">
@if($deposit->method_code < 5000)
{{ __(@$deposit->gateway->name) }}
@else
@lang('Google Pay')
@endif
</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
@lang('Amount')
<span class="fw-bold">{{ showAmount($deposit->amount) }}</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
@lang('Charge')
<span class="fw-bold">{{ showAmount($deposit->charge) }}</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
@lang('After Charge')
<span class="fw-bold">{{ showAmount($deposit->amount+$deposit->charge) }}</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
@lang('Rate')
<span class="fw-bold">1 {{__(gs('cur_text'))}}
= {{ showAmount($deposit->rate,currencyFormat:false) }} {{__($deposit->baseCurrency())}}</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
@lang('After Rate Conversion')
<span class="fw-bold">{{ showAmount($deposit->final_amount,currencyFormat:false) }} {{__($deposit->method_currency)}}</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
@lang('Status')
@php echo $deposit->statusBadge @endphp
</li>
@if($deposit->admin_feedback)
<li class="list-group-item">
<strong>@lang('Admin Response')</strong>
<br>
<p>{{__($deposit->admin_feedback)}}</p>
</li>
@endif
</ul>
</div>
</div>
</div>
@if($details || $deposit->status == Status::PAYMENT_PENDING)
<div class="col-xl-8 col-md-6 mb-30">
<div class="card overflow-hidden box--shadow1">
<div class="card-body">
<h5 class="card-title border-bottom pb-2">@lang('User Payment Information')</h5>
@if($details != null)
@foreach(json_decode($details) as $val)
@if($deposit->method_code >= 1000)
<div class="row mt-4">
<div class="col-md-12">
<h6>{{__($val->name)}}</h6>
@if($val->type == 'checkbox')
{{ implode(',',$val->value) }}
@elseif($val->type == 'file')
@if($val->value)
<a href="{{ route('admin.download.attachment',encrypt(getFilePath('verify').'/'.$val->value)) }}"><i class="fa-regular fa-file"></i> @lang('Attachment') </a>
@else
@lang('No File')
@endif
@else
<p>{{__($val->value)}}</p>
@endif
</div>
</div>
@endif
@endforeach
@if($deposit->method_code < 1000)
@include('admin.deposit.gateway_data',['details'=>json_decode($details)])
@endif
@endif
@if($deposit->status == Status::PAYMENT_PENDING)
<div class="row mt-4">
<div class="col-md-12">
<button class="btn btn-outline--success btn-sm ms-1 confirmationBtn"
data-action="{{ route('admin.deposit.approve', $deposit->id) }}"
data-question="@lang('Are you sure to approve this transaction?')"
><i class="las la-check"></i>
@lang('Approve')
</button>
<button class="btn btn-outline--danger btn-sm ms-1" data-bs-toggle="modal" data-bs-target="#rejectModal"><i class="las la-ban"></i> @lang('Reject')
</button>
</div>
</div>
@endif
</div>
</div>
</div>
@endif
</div>
{{-- REJECT MODAL --}}
<div id="rejectModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">@lang('Reject Payment Confirmation')</h5>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
<i class="las la-times"></i>
</button>
</div>
<form action="{{ route('admin.deposit.reject')}}" method="POST">
@csrf
<input type="hidden" name="id" value="{{ $deposit->id }}">
<div class="modal-body">
<p>@lang('Are you sure to') <span class="fw-bold">@lang('reject')</span> <span class="fw-bold text--success">{{ showAmount($deposit->amount)}}</span> @lang('payment of') <span class="fw-bold">{{ @$deposit->user->username }}</span>?</p>
<div class="form-group">
<label class="mt-2">@lang('Reason for Rejection')</label>
<textarea name="message" maxlength="255" class="form-control" rows="5" required>{{ old('message') }}</textarea>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn--primary w-100 h-45">@lang('Submit')</button>
</div>
</form>
</div>
</div>
</div>
<x-confirmation-modal />
@endsection
|