


<?php $__env->startSection('title', 'Sayfalar'); ?>








<?php echo $__env->make('page::sidebar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>








<?php $__env->startSection('_content'); ?>


<div id="component_page">


    <h1 class="title">Sayfa Komponenti</h1>





    <?php if(Session::has('message')): ?>


    <div class="alert alert-success"><?php echo Session::get('message'); ?></div>


    <?php endif; ?>


    <?php if($page->count() > 0): ?>


    <table class="table table-hover table-striped">


        <thead>


        <tr>


            <th>Başlık</th>


            <th>URL</th>


            <th class="text-center">Komponent</th>


            <th class="text-center">Ekleyen</th>


        </tr>


        </thead>


        <tbody>


        <?php foreach($page as $p): ?>


        <tr>


            <td><a href="<?php echo URL::to('component/page/edit/'. $p->id); ?>"><?php echo $p->title; ?><a></td>


            <td><?php echo $p->url; ?></td>


            <td class="text-center"><?php echo $p->component->component; ?></td>


            <td class="text-center"><?php echo $p->user->name; ?></td>


        </tr>


        <?php endforeach; ?>


        </tbody>


    </table>





    <?php echo $page->links(); ?>


    <?php else: ?>


    <div class="alert alert-warning">


        <h4>Hiç Sayfanız yok.</h4> <a href="<?php echo URL::to('component/page/create'); ?>" class="alert-link">Buradan ekleyin</a>


    </div>


    <?php endif; ?>








</div>





<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.wrap', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

