@extends('layouts.users')
@section('content')
    <div class="container">
        <div class="row justify-content-center">

            <div class="col-md-4">
                <img src="{{ $data->gatewayCurrency()->methodImage() }}" alt="@lang('Image')" class="img-fluid w-100" />
            </div>

            <div class="col-md-4">
                <div class="custom--card card text-center card card-equal-height">
                    <div class="card-body">
                        <ul class="list-group text-center">
                            <p class="list-group-item">
                                @lang('Amount'):
                                <strong>{{showAmount($data->amount)}} </strong> {{__(config('settings')->cur_text)}}
                            </p>
                            <p class="list-group-item">
                                @lang('Charge'):
                                <strong>{{showAmount($data->charge)}}</strong> {{__(config('settings')->cur_text)}}
                            </p>
                            <p class="list-group-item">
                                @lang('Payable'): <strong> {{showAmount($data->amount + $data->charge)}}</strong> {{__(config('settings')->cur_text)}}
                            </p>
                            <p class="list-group-item">
                                @lang('Conversion Rate'): <strong>1 {{__(config('settings')->cur_text)}} = {{showAmount($data->rate)}}  {{__($data->baseCurrency())}}</strong>
                            </p>
                            <p class="list-group-item">
                                @lang('In') {{$data->baseCurrency()}}:
                                <strong>{{showAmount($data->final_amo)}}</strong>
                            </p>


                            @if($data->gateway->crypto==1)
                                <p class="list-group-item">
                                    @lang('Conversion with')
                                    <b> {{ __($data->method_currency) }}</b> @lang('and final value will Show on next step')
                                </p>
                            @endif
                        </ul>

                        @if( 1000 >$data->method_code)
                            <a href="{{route('user.deposit.confirm')}}" class="btn btn-primary btn-block py-3 font-weight-bold">@lang('Pay Now')</a>
                        @else
                            <a href="{{route('user.deposit.manual.confirm')}}" class="btn btn-primary btn-block py-3 font-weight-bold">@lang('Pay Now')</a>
                        @endif
                    </div>
                </div>

            </div>
        </div>
    </div>
@endsection

@push('style')
<style>
    .list-group-item{
        background: transparent;
    }
</style>
@endpush

