Heimdall/resources/views/items/list.blade.php

55 lines
2.3 KiB
PHP
Raw Normal View History

2018-01-31 15:55:26 +00:00
@extends('app')
@section('content')
2018-02-01 06:57:12 +00:00
<section class="module-container">
<header>
2018-02-03 15:46:14 +00:00
<div class="section-title">
Application list
@if( isset($trash) && $trash->count() > 0 )
<a class="trashed" href="{{ route('items.index', ['trash' => true]) }}">View trash ({{ $trash->count() }})</a>
@endif
</div>
2018-02-01 06:57:12 +00:00
<div class="module-actions">
<a href="{{ route('items.create') }}" title="" class="button"><i class="fa fa-plus"></i><span>Add</span></a>
</div>
</header>
2018-01-31 15:55:26 +00:00
<table class="table table-hover">
<thead>
<tr>
<th>Title</th>
<th>Url</th>
<th class="text-center" width="100">Edit</th>
<th class="text-center" width="100">Delete</th>
</tr>
</thead>
<tbody>
@if($apps->first())
@foreach($apps as $app)
<tr>
<td>{{ $app->title }}</td>
<td><a href="{{ $app->url }}">{{ $app->url }}</a></td>
2018-02-01 15:57:16 +00:00
<td class="text-center"><a href="{!! route('items.edit', $app->id) !!}" title="Edit {!! $app->title !!}"><i class="fas fa-edit"></i></a></td>
2018-01-31 15:55:26 +00:00
<td class="text-center">
2018-02-01 20:29:44 +00:00
{!! Form::open(['method' => 'DELETE','route' => ['items.destroy', $app->id],'style'=>'display:inline']) !!}
<button class="link" type="submit"><i class="fa fa-trash-alt"></i></button>
2018-02-01 20:29:44 +00:00
{!! Form::close() !!}
2018-01-31 15:55:26 +00:00
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="4" class="form-error text-center">
2018-01-31 15:55:26 +00:00
<strong>No items found</strong>
</td>
</tr>
@endif
</tbody>
</table>
2018-02-01 06:57:12 +00:00
</section>
2018-01-31 15:55:26 +00:00
@endsection