<?php $__env->startSection('content'); ?>

<div class="row margin-top-95">
    <div class="col-md-2">
		<ul class="left_nav">
   			<li><a href="<?php echo URL::to('my-accounts/create'); ?>">CREATE ACCOUNT</a></li>
            <li><a href="<?php echo URL::to('my-accounts'); ?>" class="active">MY ACCOUNTS</a></li>
    	</ul>
    </div>
    <div class="col-md-10">
        <div class="gray_container standart-15">
            <div class="row">
                <div class="col-md-offset-1 col-md-10">
                    <h4 class="head_h4">MY ACCOUNTS</h4>
                    <p>Since this is your first investment through BANQ, you will need to setup your account at TriPoint Global Securities, LLC. Please complete the following form.</p>
                    
                    <?php if(is_array($accounts)): ?>
                    	<table class="table borderless">
                        	<thead>
                                <tr>
                                    <th>Account Name</th>
                                    <th>Account Type</th>
                                    <th>Primary Account Owner</th>
                                    <th colspan="5" class="text-center">Actions</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php foreach($accounts as $account): ?>
                                <tr>
                                    <td><?php echo $account['accountName']; ?></td>
                                    <td><?php echo $account_type[$account['accountType']]; ?></td>
                                    <td><?php echo $account['primaryAccountOwner']; ?></td>
                                    <td><a href="<?php echo URL::to('my-accounts/balance/'.urlencode($account['accountNumber'])); ?>"><i class="glyphicon glyphicon-credit-card"></i></a></td>
                                    <td><a href="<?php echo URL::to('my-accounts/deposit-funds/'.urlencode($account['accountNumber'])); ?>"><i class="glyphicon glyphicon-open"></i></a></td>
                                 	<td><a href="<?php echo URL::to('my-accounts/withdrawal-funds/'.urlencode($account['accountNumber'])); ?>"><i class="glyphicon glyphicon-save"></i></a></td>
									<td><a href="<?php echo URL::to('my-documents'); ?>"><i class="glyphicon glyphicon-tasks"></i></a></td>
                                 	<td><a href="<?php echo URL::to('my-signatures'); ?>"><i class="glyphicon glyphicon-list-alt"></i></a></td>
                                    <td><a href="<?php echo URL::to('my-accounts/edit/'.urlencode($account['accountNumber'])); ?>"><i class="glyphicon glyphicon-pencil"></i></a></td>
                                </tr>
                                <?php endforeach; ?>
                            </tbody>
                        </table>
                    <?php endif; ?>
                  	
                </div> 
            </div>          
        </div>
    </div>
</div>

<?php $__env->stopSection(); ?>