
<?php $__env->startSection('content'); ?>
<a href="<?php echo URL::to('/add_sources'); ?>">
    <i class="fa fa-list"></i>
    <span>Add Source</span>
</a>
<div class="row">
    <div class="col-xs-12 col-sm-6 mid_center">
        <?php if(Session::has('success')): ?>
        <div class="alert alert-success">
            <?php echo e(Session::get('success')); ?>

        </div>
        <?php endif; ?>
        <div class="box">
            <div class="box-content my_content">
                <h5 class="page-header">
                    <b>Sources</b>
                </h5>   
                <table class="table">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>Name</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($sources as $key=>$source): ?>
                        <tr>
                            <td><?php echo e($key+1); ?></td>
                            <td><?php echo e($source->source_name); ?></td>
                            <td>
                                <a title="Edit" href="sources/<?php echo e($source->id); ?>">
                                    <img src="<?php echo e(asset('images/edit.png')); ?>" height="20" width="20" alt="Edit">
                                </a>
                            </td>    
                        </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.default', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>