mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-07 06:33:57 -06:00
39 lines
1.3 KiB
PHP
39 lines
1.3 KiB
PHP
<table class="table table-striped table-bordered sortable">
|
|
<thead>
|
|
<tr>
|
|
<th data-defaultsort="disabled"> </th>
|
|
<th>Name</th>
|
|
<th data-dateformat="DD-MMM-YYYY">Last activity</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td> </td>
|
|
<td><a href="{{route('categories.noCategory')}}"><em>Without a category</em></a></td>
|
|
<td> </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>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<a href="{{route('categories.show',$category->id)}}" title="{{{$category->name}}}">{{{$category->name}}}</a>
|
|
</td>
|
|
@if($category->lastActivity)
|
|
<td data-value="{{$category->lastActivity->format('d-m-Y')}}">
|
|
{{$category->lastActivity->format('jS F Y')}}
|
|
</td>
|
|
@else
|
|
<td>
|
|
<em>Never</em>
|
|
</td>
|
|
@endif
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|