@extends('layout.default')
@section('content')
<a href="{!! 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">
        @if (Session::has('success'))
        <div class="alert alert-success">
            {{ Session::get('success') }}
        </div>
        @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>
                        @foreach ($sources as $key=>$source)
                        <tr>
                            <td>{{ $key+1 }}</td>
                            <td>{{ $source->source_name }}</td>
                            <td>
                                <a title="Edit" href="sources/{{ $source->id }}">
                                    <img src="{{asset('images/edit.png')}}" height="20" width="20" alt="Edit">
                                </a>
                            </td>    
                        </tr>
                        @endforeach
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
@stop