Files
snipe-it/app/views/backend/groups/index.blade.php
T
snipe 2e132331e7 Refactoring
Removes extraneous create.blade.php, cleaned up some functions
2013-11-16 03:25:40 -05:00

62 lines
1.4 KiB
PHP
Executable File

@extends('backend/layouts/default')
{{-- Web site Title --}}
@section('title')
Group Management ::
@parent
@stop
{{-- Content --}}
@section('content')
<div class="page-header">
<h3>
Group Management
<div class="pull-right">
<a href="{{ route('create/group') }}" class="btn btn-small btn-info"><i class="icon-plus-sign icon-white"></i> Create</a>
</div>
</h3>
</div>
@if (count($groups) > 10)
{{ $groups->links() }}
@endif
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th class="span1">@lang('admin/groups/table.id')</th>
<th class="span6">@lang('admin/groups/table.name')</th>
<th class="span2">@lang('admin/groups/table.users')</th>
<th class="span2">@lang('admin/groups/table.created_at')</th>
<th class="span2">@lang('table.actions')</th>
</tr>
</thead>
<tbody>
@if ($groups->count() >= 1)
@foreach ($groups as $group)
<tr>
<td>{{ $group->id }}</td>
<td>{{ $group->name }}</td>
<td>{{ $group->users()->count() }}</td>
<td>{{ $group->created_at->diffForHumans() }}</td>
<td>
<a href="{{ route('update/group', $group->id) }}" class="btn btn-mini">@lang('button.edit')</a>
<a href="{{ route('delete/group', $group->id) }}" class="btn btn-mini btn-danger">@lang('button.delete')</a>
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="5">No results</td>
</tr>
@endif
</tbody>
</table>
@if (count($groups) > 10)
{{ $groups->links() }}
@endif
@stop