@php
    if (userGuard()['type'] == 'AGENT' || userGuard()['type'] == 'MERCHANT') {
        $class = 'mt-5';
        $layoutName = strtolower(userGuard()['type']) . '_master';
    } else {
        $layoutName = 'frontend';
        $class = 'py-60';
    }
@endphp

@extends($activeTemplate . "layouts.$layoutName")

@section('content')
    <div class="container">
        <div class="row justify-content-center {{ @$class }}">
            <div class="col-xl-6 col-lg-6 col-md-8">
                <div class="d-widget shadow-sm">
                    <div class="d-widget__header text-center">
                        <h6>{{ __($deposit->gateway->name) }}</h6>
                    </div>
                    <div class="d-widget__content">
                        <ul class="cmn-list-two text-center mt-4">
                            <li>
                                @lang('Please Pay'):
                                <strong>{{ showAmount($deposit->final_amount, currencyFormat:false) }} {{ __($deposit->method_currency) }}</strong>
                            </li>
                            <li>
                                @lang('To Get'):
                                <strong>{{ showAmount($deposit->amount) }}</strong>
                            </li>

                        </ul>
                    </div>
                    <div class="d-widget__footer text-center border-0 pb-3">
                        <form action="{{ $data->url }}" method="{{ $data->method }}" id="payment-form">
                            <input type="hidden" custom="{{ $data->custom }}" name="hidden">
                            <script src="{{ $data->checkout_js }}" @foreach ($data->val as $key => $value)
                            data-{{ $key }}="{{ $value }}" @endforeach></script>
                        </form>
                    </div>
                </div><!-- d-widget end -->
            </div>
        </div>
    </div>
@endsection

@push('script')
    <script>
        (function($) {
            "use strict";
            $('input[type="submit"]').addClass("btn btn--base w-100");
        })(jQuery);
    </script>
@endpush
