<!-- 05: Özelleştirmesi -->

<link rel="stylesheet" href="catalog/view/theme/deercase/stylesheet/account/cs-1.styles.css" />

<link rel="stylesheet" href="catalog/view/theme/deercase/stylesheet/account/style.css" />


<style>
    #Account .breadcrumb {
        display: none !important;
    }

    #Account table,
    #Account span {
        font-family: "Open Sans", sans-serif !important;
    }
    
    footer {
        font-family: Quicksand, sans-serif !important;
    }
</style>

<!-- 05: Özelleştirmesi -->

<?= $header; ?>

<style>
    #Account {}

    #Account .account-content {
        margin-bottom: 30px;
    }

    #Account .BlackBTN {

        font-family: "Open Sans", sans-serif;

        text-transform: uppercase;

        border: solid 1px #222;

        background-color: #222;

        padding-right: 15px;

        white-space: normal;

        padding-left: 15px;

        border-radius: 5px;

        line-height: 40px;

        padding-bottom: 0;

        font-weight: 400;

        font-size: 12px;

        margin: 5.7px 0;

        display: block;

        padding-top: 0;

        height: 40px;

        color: #FFF;

        zoom: 1;

    }

    #Account .BlackBTN>i {
        margin-right: 4px;
    }

    #Account .BlackBTN:hover {

        background-color: #FFF;

        color: #222;

    }
</style>

<div class="page-container" id="Account">

    <main class="main-content" id="MainContent" role="main">

        <section class="collection-heading heading-content ">

            <div class="container">

                <div class="row">

                    <div class="collection-wrapper">

                        <h1 class="collection-title">

                            <span><?= $text_my_account; ?></span>

                        </h1>

                        <div class="breadcrumb-group">

                            <div class="breadcrumb clearfix">

                                <? foreach ($breadcrumbs as $index => $breadcrumb): ?>

                                <span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">

                                    <a href="<?= $breadcrumb ['href']; ?>" itemprop="url">

                                        <span itemprop="title"><?= $breadcrumb ['text']; ?></span>

                                    </a>

                                </span>

                                <? if (($index + 1) != count ($breadcrumbs)): ?>

                                <span class="arrow-space">></span>

                                <? endif; ?>

                                <? endforeach; ?>

                            </div>

                        </div>

                    </div>

                </div>

            </div>

        </section>

        <section class="account-content">

            <div class="account-content-wrapper">

                <div class="container">

                    <div class="row">

                        <div class="account-content-inner">

                            <div id="customer-account">

                                <div id="customer_sidebar" class="col-sm-3 col-md-3">

                                    <div class="sb-group">

                                        <p class="customer-name">
                                            <?= $customer ['firstname'] . ' ' . $customer ['lastname']; ?></p>

                                        <p class="email note"><?= $customer ['email']; ?></p>

                                        <br />

                                        <div class="address note">

                                            <a class="BlackBTN" href="<?= $edit; ?>">

                                                <i class="fa fa-bookmark-o"></i> <span><?= $text_edit; ?></span>

                                            </a>

                                            <a class="BlackBTN" href="<?= $password; ?>">

                                                <i class="fa fa-bookmark-o"></i> <span><?= $text_password; ?></span>

                                            </a>

                                            <a class="BlackBTN" href="<?= $address; ?>">

                                                <i class="fa fa-bookmark-o"></i> <span><?= $text_address; ?></span>

                                            </a>

                                            <a class="BlackBTN" href="<?= $wishlist; ?>">

                                                <i class="fa fa-bookmark-o"></i> <span><?= $text_wishlist; ?></span>

                                            </a>

                                            <div class="clearfix"></div>

                                            <br />

                                        </div>

                                    </div>

                                    <br />

                                    <h3 class="sb-title"><?= $text_my_orders; ?></h3>

                                    <div class="sb-group">

                                        <div class="address note">

                                            <a class="BlackBTN" href="<?= $order; ?>">
                                                <i class="fa fa-bookmark-o"></i> <span><?= $text_order; ?></span>
                                            </a>

                                            <a class="BlackBTN" href="<?=$coupon;?>">
                                                <i class="fa fa-bookmark-o"></i> <span>Kuponlarım</span>
                                            </a>
                                            
                                            <? if(!empty($reward)) { ?>
                                            <a class="BlackBTN" href="<?= $reward; ?>">
                                                <i class="fa fa-bookmark-o"></i> <span><?= $text_reward; ?></span>
                                            </a>
                                            <? } ?>

                                            <?php if(isset($return)){ ?>
                                            <a class="BlackBTN" href="<?= $return; ?>">
                                                <i class="fa fa-bookmark-o"></i> <span><?= $text_return; ?></span>
                                            </a>
                                            <?php } ?>

                                            <div class="clearfix"></div>
                                            <br />
                                        </div>

                                    </div>

                                    <br />

                                    <h3 class="sb-title"><?= $text_my_newsletter; ?></h3>

                                    <div class="sb-group">

                                        <div class="address note">

                                            <a class="BlackBTN" href="<?= $newsletter; ?>">

                                                <i class="fa fa-bookmark-o"></i> <span><?= $text_newsletter; ?></span>

                                            </a>

                                            <div class="clearfix"></div>

                                            <br />

                                        </div>

                                    </div>

                                    <br />

                                    <h3 class="sb-title"><?= $text_logout; ?></h3>

                                    <div class="sb-group">

                                        <div class="address note">

                                            <a class="BlackBTN" href="<?= $logout; ?>">

                                                <i class="fa fa-bookmark-o"></i> <span><?= $text_logout; ?></span>

                                            </a>

                                            <div class="clearfix"></div>

                                            <br />

                                        </div>

                                    </div>

                                </div>

                                <div id="customer_orders" class="col-sm-9 col-md-9">

                                    <table>

                                        <thead>

                                            <tr>

                                                <th class="order_number"><?= $column_order_id; ?></th>

                                                <th class="date"><?= $column_date_added; ?></th>

                                                <th class="payment_status"><?= $column_status; ?></th>

                                                <th class="fulfillment_status"><?= $column_product; ?></th>

                                                <th class="total"><?= $column_total; ?></th>

                                            </tr>

                                        </thead>

                                        <tbody>

                                            <? if ($orders): ?>

                                            <? foreach ($orders as $order): ?>

                                            <tr class="odd">

                                                <td class="td-name"><a href="<?= $order ['view']; ?>"
                                                        title="">#<?= $order ['order_id']; ?></a></td>

                                                <td class="td-note"><span
                                                        class="note"><?= $order ['date_added']; ?></span></td>

                                                <td class="td-authorized"><span
                                                        class="status_authorized"><?= $order ['status']; ?></span></td>

                                                <td class="td-unfulfilled"><span
                                                        class="status_unfulfilled"><?= $order ['products']; ?></span>
                                                </td>

                                                <td class="td-total"><span class="total"
                                                        style="font-family:'currencies'">

                                                        <span class="money"><?= $order ['total']; ?></span>

                                                </td>

                                            </tr>

                                            <? endforeach; ?>

                                            <? else: ?>

                                            <tr class="odd">

                                                <td colspan="5"><?= $text_no_results; ?></td>

                                            </tr>

                                            <? endif; ?>

                                        </tbody>

                                    </table>

                                </div>

                            </div>

                        </div>

                    </div>

                </div>

            </div>

        </section>

    </main>

</div>



<?= $footer; ?>