<?php
if (empty($DepotProfile[0]['Name'])) { ?>
<div class="alert alert-danger" role="alert">
    <button class="close" data-dismiss="alert"></button>
    <strong>Danger: </strong>you can not edit this depot! 
    <br>
    This depot is not available.
</div>
<?php die(); }
if ($permissions->hasPermission('EditDepot')) {
    include("Views/Stock/depot_modal.php");
}
?>
<style>
    .b-r {
        border-left-width: 1px;
    }
</style>
<div class="wrapper">
    <div class="panel invoice">
        <div class="panel-body">
            <div class="row">
                <?php if ($permissions->hasPermission('EditDepot') && smc_session()['default_setting']['sync_type'] != 2) { ?>
                <a href="#" class="mainPageLinks btn btn-bg-complete-darker pull-right edit_depot" data-toggle="modal" data-target="#EditDepot"  data-id="<?php  echo $Depot_ID;?>"><i class='fa fa-pencil'></i> <?php print CommonLanguage::getMessage('Edit') ?></a>
                <?php } ?>
                <h4 class="bold"><?php print CommonLanguage::getMessage('depot_info') ?></h4>
                <div class="col-md-12 b-r b-dashed " id="DepotDetails">
                    <?php echo Forms::viewProfiles($DepotProfile); ?>
                </div>
            </div>
            <br>
        </div>
    </div>
</div>

