


<?php $__env->startSection('title', Option::value('siteTitle').' - Yönetim'); ?>








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








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


    <div id="component_gallery">


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





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


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


        <?php endif; ?>


<?php if($gallery->count()): ?>


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


    <thead>


    <tr>


        <th>#</th>


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


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


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


    </tr>


    </thead>


    <tbody>


    <?php foreach($gallery as $gal): ?>


    <tr>


        <td style="width: 75px;"><img width="100" height="75" src="<?php echo Gallery::getThumb($gal->id, $gal->cover); ?>"></td>


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


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


        <td class="text-center"><abbr class="timeago" title="<?php echo $gal->created_at; ?>"><?php echo $gal->created_at; ?></abbr></td>


    </tr>


   <?php endforeach; ?>


    </tbody>


</table>





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


<?php else: ?>


        <div class="alert alert-warning">


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

