File: /home/mmickelson/spilicensing/resources/views/licensetype/index.blade.php
@extends('layouts.master')
@section('content')
<h1>License Types <a href="{{ url('licensetype/create') }}" class="btn btn-primary pull-right btn-sm">Add New License Type</a></h1>
<div class="table">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>ID</th><th>License Type</th><th>Actions</th>
</tr>
</thead>
<tbody>
{{-- */$x=0;/* --}}
@foreach($licensetype as $item)
{{-- */$x++;/* --}}
<tr>
<td>{{ $x }}</td>
<td><a href="{{ url('licensetype', $item->id) }}">{{ $item->licenseType }}</a></td>
<td>
<a href="{{ url('licensetype/' . $item->id . '/edit') }}">
<button type="submit" class="btn btn-primary btn-xs">Update</button>
</a> /
{!! Form::open([
'method'=>'DELETE',
'url' => ['licensetype', $item->id],
'style' => 'display:inline'
]) !!}
{!! Form::submit('Delete', ['class' => 'btn btn-danger btn-xs']) !!}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="pagination"> {!! $licensetype->render() !!} </div>
</div>
@endsection