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