2014-07-30 00:14:00 -05:00
|
|
|
@extends('layouts.default')
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
<h1>Firefly
|
|
|
|
<small>Categories</small>
|
|
|
|
</h1>
|
|
|
|
<p class="lead">Use categories to group your expenses</p>
|
2014-07-30 07:45:46 -05:00
|
|
|
<p class="text-info">
|
|
|
|
Use categories to group expenses by hobby, for certain types of groceries or what bills are for.
|
|
|
|
Expenses grouped in categories do not have to reoccur every month or every week, like budgets.
|
|
|
|
</p>
|
2014-08-13 00:02:13 -05:00
|
|
|
<p>
|
|
|
|
<a href="{{route('categories.create')}}" class="btn btn-success"><span class="glyphicon glyphicon-plus"></span> Create a new category</a>
|
|
|
|
</p>
|
2014-07-30 00:14:00 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
@foreach($categories as $category)
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{{route('categories.show',$category->id)}}">{{{$category->name}}}</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div class="btn-group btn-group-xs">
|
|
|
|
<a href="{{route('categories.edit',$category->id)}}" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span></a>
|
|
|
|
<a href="{{route('categories.delete',$category->id)}}" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span></a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@stop
|