cleaned up admin tables and icons and crap

This commit is contained in:
Nabeel Shahzad
2017-08-21 13:59:59 -05:00
parent fe725ac599
commit 7fb13a95f2
13 changed files with 103 additions and 105 deletions

View File

@@ -5,8 +5,8 @@
<th>Price</th>
<th>Cost</th>
<th>Notes</th>
<th>Active</th>
<th colspan="3">Action</th>
<th class="text-center">Active</th>
<th class="text-right">Action</th>
</thead>
<tbody>
@foreach($fares as $fare)
@@ -16,17 +16,20 @@
<td>{!! $fare->price !!}</td>
<td>{!! $fare->cost !!}</td>
<td>{!! $fare->notes !!}</td>
<td>{!! $fare->active !!}</td>
<td>
<td class="text-center">
@if($fare->active == 1)
<span class="label label-success">Active</span>
@else
<span class="label label-default">Inactive</span>
@endif
</td>
<td class="text-right">
{!! Form::open(['route' => ['admin.fares.destroy', $fare->id], 'method' => 'delete']) !!}
<div class='btn-group'>
<a href="{!! route('admin.fares.show', [$fare->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>
<a href="{!! route('admin.fares.edit', [$fare->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
{!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}
</div>
<a href="{!! route('admin.fares.edit', [$fare->id]) !!}" class='btn btn-sm btn-success btn-icon'><i class="fa fa-pencil-square-o"></i></a>
{!! Form::button('<i class="fa fa-times"></i>', ['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon', 'onclick' => "return confirm('Are you sure?')"]) !!}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</tbody>
</table>
</table>