firefly-iii/resources/views/list/categories.blade.php

39 lines
1.3 KiB
PHP
Raw Normal View History

2015-04-11 07:53:22 -05:00
<table class="table table-striped table-bordered sortable">
<thead>
<tr>
<th data-defaultsort="disabled">&nbsp;</th>
<th>Name</th>
<th data-dateformat="DD-MMM-YYYY">Last activity</th>
</tr>
</thead>
<tbody>
2015-02-22 09:19:32 -06:00
<tr>
<td>&nbsp;</td>
<td><a href="{{route('categories.noCategory')}}"><em>Without a category</em></a></td>
<td>&nbsp;</td>
</tr>
@foreach($categories as $category)
<tr>
<td>
<div class="btn-group btn-group-xs">
<a href="{{route('categories.edit',$category->id)}}" class="btn btn-default btn-xs"><i class="fa fa-fw fa-pencil"></i></a>
<a href="{{route('categories.delete',$category->id)}}" class="btn btn-danger btn-xs"><i class="fa fa-fw fa-trash-o"></i></a>
2015-02-22 09:19:32 -06:00
</div>
</td>
<td>
<a href="{{route('categories.show',$category->id)}}" title="{{{$category->name}}}">{{{$category->name}}}</a>
</td>
2015-04-11 07:53:22 -05:00
@if($category->lastActivity)
<td data-value="{{$category->lastActivity->format('d-m-Y')}}">
2015-03-04 02:42:47 -06:00
{{$category->lastActivity->format('jS F Y')}}
2015-04-11 07:53:22 -05:00
</td>
@else
<td>
2015-02-22 09:19:32 -06:00
<em>Never</em>
2015-04-11 07:53:22 -05:00
</td>
@endif
2015-02-22 09:19:32 -06:00
</tr>
@endforeach
2015-04-11 07:53:22 -05:00
</tbody>
2015-02-22 09:19:32 -06:00
</table>