


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





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





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

<div id="component_page">

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



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

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

    <?php endif; ?>

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

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

        <thead>

        <tr>

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

            <th>URL</th>

        </tr>

        </thead>

        <tbody>

        <?php foreach($slider as $s): ?>

        <tr>

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

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

        </tr>

        <?php endforeach; ?>

        </tbody>

    </table>



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

    <?php else: ?>

    <div class="alert alert-warning">

        <h4>Hiç Slideriniz yok.</h4> <a href="<?php echo URL::to('component/slider/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(); ?>