<%@ page extends="oneit.servlets.jsp.JSPInclude" %>
<%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%>
<%@ include file="/inc/stdcms.jsp" %><%-- This is in cougar --%>
<%@ include file="/extensions/performa/inc/stdimports.jsp" %>

<oneit:dynIncluded>
<%
    SecUser     loggedInUser    =   SecUser.getTXUser(transaction);
    CompanyUser companyUser     =   loggedInUser.getExtension(CompanyUser.REFERENCE_CompanyUser);
    Company     company         =   companyUser.getCompany();
    String      nextPage        =   WebUtils.getSamePageInRenderMode(request, "CardPayment");
%>
    <oneit:form name="editJob"  method="post"   enctype="multipart/form-data">

        <div class="main-created-job card-payment">
            <h1 class="page-title select-payment-optio">
                Enter Payment Details
            </h1>
            <div class="form-page-area">
                <div class="tabpage-title">
                    <label class="label-20">Payment</label><br/>               
                    <span id="card-errors" style="color: #eb1c26; font-size: 15px;"></span>
                </div>
        <%
            if(company.getCardID() != null)
            {
        %>
                <oneit:dynInclude   page="/extensions/adminportal/inc/existing_card.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"  
                                    Company="<%= company %>"    IsEdit="<%= false %>"   IsReplace="<%= false %>"/>

        <%
            }
            else
            {
        %>
                <div>
                    <label class="label-14">Your card details will be saved for future billing</label>            
                </div>
                <oneit:dynInclude   page="/extensions/adminportal/inc/card_details.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"  Company="<%= company %>"/>
        <%
            }
        %>
            </div>
        </div>
    </oneit:form>

</oneit:dynIncluded>