Files
snipe-it/app/views/backend/models/index.blade.php
T
snipe cf59ec8c67 Fixed pagination bug
Code required
@if ($models->getTotal() > 10)

NOT

@if (count($models) > 10)
2013-11-16 11:32:18 -05:00

52 lines
1.2 KiB
PHP
Executable File

@extends('backend/layouts/default')
{{-- Page title --}}
@section('title')
Asset Models ::
@parent
@stop
{{-- Page content --}}
@section('content')
<div class="page-header">
<h3>
Asset Models
<div class="pull-right">
<a href="{{ route('create/model') }}" class="btn btn-small btn-info"><i class="icon-plus-sign icon-white"></i> Create</a>
</div>
</h3>
</div>
@if ($models->getTotal() > 10)
{{ $models->links() }}
@endif
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th class="span6">@lang('admin/models/table.title')</th>
<th class="span2">@lang('admin/models/table.modelnumber')</th>
<th class="span2">@lang('admin/models/table.created_at')</th>
<th class="span2">@lang('table.actions')</th>
</tr>
</thead>
<tbody>
@foreach ($models as $model)
<tr>
<td>{{ $model->name }}</td>
<td>{{ $model->modelno }}</td>
<td>{{ $model->created_at->diffForHumans() }}</td>
<td>
<a href="{{ route('update/model', $model->id) }}" class="btn btn-mini">@lang('button.edit')</a>
<a href="{{ route('delete/model', $model->id) }}" class="btn btn-mini btn-danger">@lang('button.delete')</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@if ($models->getTotal() > 10)
{{ $models->links() }}
@endif
@stop