@extends('layouts.guest2')

@section('title', 'Create an Account')

@section('content')

    <!--begin::Main-->
    <div class="d-flex flex-column flex-root">
        <!--begin::Authentication - Sign-in -->
        <div class="d-flex flex-column flex-lg-row flex-column-fluid">
            <!--begin::Aside-->
            <div class="d-flex flex-column flex-lg-row-auto bg-primary w-xl-600px positon-xl-relative d-none d-xl-block">
                <!--begin::Wrapper-->
                <div class="d-flex flex-column position-xl-fixed top-0 bottom-0 w-xl-600px scroll-y">
                    <!--begin::Header-->
                    <div class="d-flex flex-row-fluid flex-column text-center p-10 pt-lg-20">
                        <!--begin::Logo-->
                        <a href="/" class="py-9 pt-lg-20">
                            <img alt="Logo" src="{{ asset('storage/app/public/' . $settings->logo) }}"
                                style="height:auto; max-width:30%;" />
                        </a>
                        <!--end::Logo-->
                        <!--begin::Title-->
                        <h1 class="fw-bolder text-white fs-2qx pb-5 pb-md-10">Swift Money Transfer</h1>
                        <!--end::Title-->
                        <!--begin::Description-->
                        <p class="fw-bold fs-2 text-white">Swift and Secure Money Transfer to any bank account will become a
                            breeze with {{ $settings->site_name }}
                        </p>
                        <!--end::Description-->
                    </div>
                    <div class="d-flex flex-row-auto bgi-no-repeat bgi-position-x-center bgi-size-contain bgi-position-y-bottom min-h-100px min-h-lg-300px"
                        style="background-image: url(https://nothingdevelopers.xyz/konan/public/dashboard/media/illustrations/sport.png)">
                    </div>
                    <!--end::Header-->
                </div>
                <!--end::Wrapper-->
            </div>
            <div class="d-flex flex-column flex-lg-row-fluid py-10">
                <div class="d-flex flex-center flex-column flex-column-fluid">
                    @if (Session::has('status'))
                        <div class="alert alert-danger alert-dismissible fade show" role="alert">
                            {{ session('status') }}
                            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                        </div>
                    @endif

                    <div class="w-lg-600px w-100 p-10 p-lg-15 mx-auto">
                        <form class="form w-100" action="{{ route('register') }}" method="post" id="kt_sign_up_form"
                            novalidate="novalidate">
                            @csrf
                            <div class="text-center mb-10">
                                <h1 class="text-dark mb-3">Account Information</h1>
                                <div class="text-gray-600 fw-bold fs-4">
                                    <p> Please enter your information and proceed to the next step so we can build your
                                        accounts.</p>
                                </div>
                            </div>
                            <div class="row fv-row mb-6">
                                <div class="col-xl-6">
                                    <label class="form-label fw-bolder text-dark fs-6">Legal First Name</label>
                                    <input class="form-control form-control-lg form-control-solid" type="text"
                                        name="name" value="{{ old('name') }}" autocomplete="off" value=""
                                        required placeholder="Full name" />

                                    @if ($errors->has('name'))
                                        <small class="text-danger">{{ $errors->first('name') }}</small>
                                    @endif
                                </div>
                                <div class="col-xl-6">
                                    <label class="form-label fw-bolder text-dark fs-6"> Middle Name</label>
                                    <input class="form-control form-control-lg form-control-solid" type="text"
                                        name="middlename" autocomplete="off" value="" required
                                        placeholder="Enter your middle name" />

                                </div>

                            </div>

                            <div class="row fv-row mb-6">
                                <div class="col-xl-6">
                                    <label class="form-label fw-bolder text-dark fs-6">Legal Last Name</label>
                                    <input class="form-control form-control-lg form-control-solid" type="text"
                                        name="lastname" value="{{ old('name') }}" autocomplete="off" value=""
                                        required placeholder=" Last name" />


                                </div>
                                <div class="col-xl-6">
                                    <label class="form-label fw-bolder text-dark fs-6"> User Name</label>
                                    <input class="form-control form-control-lg form-control-solid" type="text"
                                        name="username" autocomplete="off" value="" required
                                        placeholder="Enter Unique Username" />
                                    @if ($errors->has('username'))
                                        <small class="text-danger">{{ $errors->first('username') }}</small>
                                    @endif
                                </div>

                            </div>
                            <div class="fv-row mb-6">
                                <label class="form-label fs-6 fw-bolder text-dark">Email</label>
                                <input class="form-control form-control-lg form-control-solid" type="email" name="email"
                                    autocomplete="email" value="" required placeholder="name@email.com" />
                                @if ($errors->has('email'))
                                    <small class="text-danger">{{ $errors->first('email') }}</small>
                                @endif
                            </div>
                            <div class="fv-row mb-6">
                                <label class="form-label fs-6 fw-bolder text-dark">Phone</label>
                                <div class="input-group mb-3">

                                    <input class="form-control form-control-lg form-control-solid" type="tel"
                                        name="phone" autocomplete="phone" value="" required
                                        placeholder="+123456789" />
                                </div>
                                @if ($errors->has('phone'))
                                    <small class="text-danger">{{ $errors->first('phone') }}</small>
                                @endif
                            </div>

                            <div class="fv-row mb-6">
                                <label class="form-label fs-6 fw-bolder text-dark">Country</label>
                                <div class="input-group mb-3">

                                    <select class="form-control form-control-lg form-control-solid" name="country"
                                        id="country" required>
                                        <option selected disabled>Choose Country</option>
                                        @include('auth.countries')
                                    </select>
                                </div>
                                @if ($errors->has('country'))
                                    <small class="text-danger">{{ $errors->first('country') }}</small>
                                @endif
                            </div>


                            <div class="fv-row mb-6">
                                <label class="form-label fs-6 fw-bolder text-dark">Account Type</label>
                                <div class="input-group mb-3">

                                    <select class="form-control form-control-lg form-control-solid" name="accounttype"
                                        required />

                                    <option value="">Please select Account Type</option>
                                    <option value="Checking Account">Checking Account</option>
                                    <option value="Savings Account">Saving Account</option>
                                    <option value="Fixed Deposit Account">Fixed Deposit Account</option>
                                    <option value="Current Account">Current Account</option>
                                    <option value="Crypto Currency Account">Crypto Currency Account</option>
                                    <option value="Business Account">Business Account</option>
                                    <option value="Non Resident Account">Non Resident Account</option>
                                    <option value="Cooperate Business Account">Cooperate Business Account</option>
                                    <option value="Investment Account">Investment Account</option>
                                    </select>
                                </div>

                            </div>


                            <div class="fv-row mb-6">
                                <label class="form-label fs-6 fw-bolder text-dark">Currency</label>
                                <div class="input-group mb-3">

                                    <select class="form-control form-control-lg form-control-solid" name="currency"
                                        id="country" required>
                                        
                                        

                             <option value="USD" selected="selected">United States Dollars</option>
                             <option value="EUR">Euro</option>
                             <option value="GBP">United Kingdom Pounds</option>
                             <option value="DZD">Algeria Dinars</option>

                             <option value="ARP">Argentina Pesos</option>
                             <option value="AUD">Australia Dollars</option>
                             <option value="ATS">Austria Schillings</option>
                             <option value="AZN">Azerbaijani Manat</option>
                             <option value="BSD">Bahamas Dollars</option>
                             <option value="BBD">Barbados Dollars</option>
                             <option value="BDT">Bangladesh Taka</option>
                             <option value="BEF">Belgium Francs</option>
                             <option value="BMD">Bermuda Dollars</option>
                             <option value="BRR">Brazil Real</option>
                             <option value="BGL">Bulgaria Lev</option>
                             <option value="CAD">Canada Dollars</option>
                             <option value="KHR"> Cambodian riel</option>
                             <option value="CLP">Chile Pesos</option>
                             <option value="CNY">China Yuan Renmimbi</option>
                             <option value="CYP">Cyprus Pounds</option>
                             <option value="CSK">Czech Republic Koruna</option>
                             <option value="DKK">Denmark Kroner</option>
                             <option value="NLG">Dutch Guilders</option>
                             <option value="XCD">Eastern Caribbean Dollars</option>
                             <option value="EGP">Egypt Pounds</option>
                             <option value="FJD">Fiji Dollars</option>
                             <option value="FIM">Finland Markka</option>
                             <option value="FRF">France Francs</option>
                             <option value="DEM">Germany Deutsche Marks</option>
                             <option value="XAU">Gold Ounces</option>
                             <option value="GRD">Greece Drachmas</option>
                             <option value="HKD">Hong Kong Dollars</option>
                             <option value="HUF">Hungary Forint</option>
                             <option value="ISK">Iceland Krona</option>
                             <option value="INR">India Rupees</option>
                             <option value="IDR">Indonesia Rupiah</option>
                             <option value="IEP">Ireland Punt</option>
                             <option value="ILS">Israel New Shekels</option>
                             <option value="ITL">Italy Lira</option>
                             <option value="JMD">Jamaica Dollars</option>
                             <option value="JPY">Japan Yen</option>
                             <option value="JOD">Jordan Dinar</option>
                             <option value="KRW">Korea (South) Won</option>
                             <option value="KWD">Kuwait Dinar</option>
                             <option value="LBP">Lebanon Pounds</option>
                             <option value="LUF">Luxembourg Francs</option>
                             <option value="MYR">Malaysia Ringgit</option>
                             <option value="MXN">Mexico Pesos</option>
                             <option value="NLG">Netherlands Guilders</option>
                             <option value="NPR">Nepalese Rupee</option>

                             <option value="NZD">New Zealand Dollars</option>
                             <option value="NGN">Nigerian Naira</option>
                             <option value="NOK">Norway Kroner</option>
                             <option value="PKR">Pakistan Rupees</option>
                             <option value="XPD">Palladium Ounces</option>
                             <option value="PHP">Philippines Pesos</option>
                             <option value="XPT">Platinum Ounces</option>
                             <option value="PLZ">Poland Zloty</option>
                             <option value="PTE">Portugal Escudo</option>
                             <option value="ROL">Romania Leu</option>
                             <option value="RUR">Russia Rubles</option>
                             <option value="SAR">Saudi Arabia Riyal</option>
                             <option value="XAG">Silver Ounces</option>
                             <option value="SGD">Singapore Dollars</option>
                             <option value="LKR">Sri Lankan rupee</option>
                             <option value="SKK">Slovakia Koruna</option>
                             <option value="ZAR">South Africa Rand</option>
                             <option value="KRW">South Korea Won</option>
                             <option value="ESP">Spain Pesetas</option>
                             <option value="XDR">Special Drawing Right (IMF)</option>
                             <option value="SDG">Sudan Dinar</option>
                             <option value="SEK">Sweden Krona</option>
                             <option value="CHF">Switzerland Francs</option>
                             <option value="SYP">Syrian Pound</option>

                             <option value="TWD">Taiwan Dollars</option>
                             <option value="THB">Thailand Baht</option>
                             <option value="TTD">Trinidad and Tobago Dollars</option>
                             <option value="TRL">Turkey Lira</option>
                             <option value="TND">Tunisian dinar</option>
                             <option value="VEB">Venezuela Bolivar</option>
                             <option value="ZMK">Zambia Kwacha</option>
                             <option value="EUR">Euro</option>
                             <option value="XCD">Eastern Caribbean Dollars</option>
                             <option value="XDR">Special Drawing Right (IMF)</option>
                             <option value="XAG">Silver Ounces</option>
                             <option value="XAU">Gold Ounces</option>
                             <option value="XPD">Palladium Ounces</option>
                             <option value="XPT">Platinum Ounces</option>

                         </select>
                                    
                                    
                                </div>
                                @if ($errors->has('currency'))
                                    <small class="text-danger">{{ $errors->first('currency') }}</small>
                                @endif
                            </div>

                            <div class="fv-row mb-6">
                                <label class="form-label fs-6 fw-bolder text-dark">4 Digit Transaction Pin</label>
                                <div class="input-group mb-3">

                                    <input class="form-control form-control-lg form-control-solid" name="pin"
                                        type='password' required placeholder="Transaction Pin " />
                                </div>

                            </div>



                            <div class="fv-row mb-10" data-kt-password-meter="true">
                                <div class="d-flex flex-stack mb-2">
                                    <label class="form-label fw-bolder text-dark fs-6 mb-0">Password</label>
                                </div>
                                <div class="position-relative mb-3">
                                    <input class="form-control form-control-lg form-control-solid" type="password"
                                        name="password" autocomplete="off" required data-toggle="password"
                                        id="password" />
                                    <span
                                        class="btn btn-sm btn-icon position-absolute translate-middle top-50 end-0 me-n2 input-password"
                                        data-kt-password-meter-control="visibility">

                                    </span>

                                    @if ($errors->has('password'))
                                        <small class="text-danger">{{ $errors->first('password') }}</small>
                                    @endif
                                </div>
                                <div class="fv-row mb-10" data-kt-password-meter="true">
                                    <div class="d-flex flex-stack mb-2">
                                        <label class="form-label fw-bolder text-dark fs-6 mb-0">Comfirm Password</label>
                                    </div>
                                    <div class="position-relative mb-3">
                                        <input class="form-control form-control-lg form-control-solid" type="password"
                                            name="password_confirmation" value="{{ old('password_confirmation') }}"
                                            autocomplete="off" required data-toggle="password"
                                            id="password_confirmation" />
                                        <span
                                            class="btn btn-sm btn-icon position-absolute translate-middle top-50 end-0 me-n2 input-password"
                                            data-kt-password-meter-control="visibility">

                                        </span>

                                        @if ($errors->has('password'))
                                            <small class="text-danger">{{ $errors->first('password') }}</small>
                                        @endif
                                    </div>




                                    <div class="form-check form-check-custom form-check-solid mb-6">
                                        <input class="form-check-input" type="checkbox" id="flexCheckDefault"
                                            name="terms" required />
                                        <label class="form-check-label" for="flexCheckDefault">I agree to our <a
                                                href="terms">terms &amp; conditions</a></label>
                                    </div>
                                    <div class="text-center">
                                        <button type="submit"
                                            class="btn btn-lg btn-primary btn-block fw-bolder me-3 my-2"
                                            id="kt_sign_up_submit">
                                            <span class="indicator-label">Submit</span>
                                        </button>
                                        </button>
                                        <a href="{{ route('login') }}"
                                            class="btn btn-light btn-lg btn-block fw-bolder my-2">
                                            Sigin
                                        </a>
                                    </div>
                        </form>
                    </div>
                </div>

            @endsection

            @section('scripts')
                @parent
                <script>
                    $('#input1').on('keypress', function(e) {
                        return e.which !== 32;
                    });
                </script>
            @endsection
