<?php echo $header; ?>
<?php echo $column_left; ?>
<div id="content">
    <div class="page-header">
        <div class="container-fluid">
            <div class="pull-right">
                <a href="<?php echo $add_action; ?>" form="form-block" class="btn btn-primary">
                    <i class="fa fa-plus"></i> Ekle
                </a>
                <a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="İptal" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
            <h1><?php echo $heading_title; ?></h1>
            <ul class="breadcrumb">
                <?php foreach ($breadcrumbs as $breadcrumb) { ?>
                <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
                <?php } ?>
            </ul>
        </div>
    </div>
    <div class="container-fluid">
        <?php if ($error_warning) { ?>
        <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?>
            <button type="button" class="close" data-dismiss="alert">&times;</button>
        </div>
        <?php } ?>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-pencil"></i> <?php echo $heading_title; ?></h3>
            </div>
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-bordered table-hover">
                    <thead>
                        <tr>
                        <td class="text-left" style="width: 60px;">
                            ID
                        </td>
                        <td class="text-left">
                            <?= $column_name; ?>
                        </td>
                        <td class="text-left" style="width: 120px;">
                            <?= $column_status; ?>
                        </td>
                        <td class="text-left" style="width: 60px;">
                            <?= $column_action; ?>
                        </td>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if ($description_blocks) { ?>
                        <?php foreach ($description_blocks as $block) { ?>
                        <tr>
                        <td class="text-left"><?= $block['description_block_id'] ?></td>
                        <td class="text-left"><?= $block['description_block_name'] ?></td>
                        <td class="text-left"><?php echo ($block['description_block_status']==1) ? 'Açık' : 'Kapalı'; ?></td>
                        <td class="text-left"><a href="<?php echo $block['edit']; ?>" data-toggle="tooltip" title="Düzenle" class="btn btn-primary"><i class="fa fa-pencil"></i></a></td>
                        </tr>
                        <?php } 
                        } ?>
                        
                    </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>


<?php echo $footer; ?>
