<?php $__env->startSection('content'); ?>
	
	<div class="row">
		<div class="col-xs-6">
			<h2>Investor education</h2>
		</div>
		<div class="col-xs-6">
			<div class="buttons" id="right-buttons">
				<a href="<?php echo URL::to('admin/investor-education/create'); ?>" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i> Add a new investor education</a>
			</div>
		</div>
	</div>
	
	<table class="table table-bordered table-striped">
		<thead>
			<tr>
				<th class="text-center">ID</th>
				<th class="col-md-6">Title</th>
                <th>Category</th>
				<th class="text-center">Last Updated</th>
				<th class="text-center" colspan="2">Actions</th>
			</tr>
		</thead>
		<tbody>
		<?php if($investor_education): ?>
			<?php foreach($investor_education as $row): ?>
			<tr>
				<td class="text-center"><?php echo $row->investor_education_id; ?></td>
				<td><?php echo $row->title; ?></td>
                <td><?php echo $row->category; ?></td>
				<td class="text-center"><?php echo date('M d, Y, g:ia',strtotime($row->updated_at)); ?></td>
				<td><a href="<?php echo URL::to('admin/investor-education/'.$row->investor_education_id.'/edit'); ?>" title="Edit"><i class="glyphicon glyphicon-pencil"></i></a></td>
				<td>
					<?php echo Form::open(array('route' => array('admin.investor-education.destroy', $row->investor_education_id), 'method' => 'DELETE')); ?>
					<button type="submit" onclick="return confirm('Are you sure?')" class="btn btn-link"  title="Delete"><i class="glyphicon glyphicon-trash"></i></button>
					<?php echo Form::close(); ?>
				</td>
			</tr>
			<?php endforeach; ?>
		<?php else: ?>
			<tr>
				<td colspan="6">No service providers yet.</td>
			</tr>
		<?php endif; ?>
		</tbody>
	</table>
    
    <?php echo $investor_education->appends(array('query' => Input::get('query')))->links(); ?>

<?php $__env->stopSection(); ?>