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