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

57 lines
2.8 KiB
PHP
Raw Normal View History

2018-10-14 15:17:55 +00:00
@extends('layouts.app')
2018-01-31 15:55:26 +00:00
@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">
2018-02-07 13:37:40 +00:00
{{ __('app.apps.app_list') }}
2018-02-03 15:46:14 +00:00
@if( isset($trash) && $trash->count() > 0 )
2019-06-18 09:51:51 +00:00
<a class="trashed" href="{{ route('items.index', ['trash' => true]) }}">{{ __('app.apps.view_trash') }} ({{ $trash->count() }})</a>
2018-02-03 15:46:14 +00:00
@endif
</div>
2018-02-01 06:57:12 +00:00
<div class="module-actions">
2019-06-18 09:51:51 +00:00
<a href="{{ route('applist', []) }}" class="button"><i class="fa fa-cloud-download"></i><span>{{ __('app.buttons.downloadapps') }}</span></a>
<a href="{{ route('items.create', []) }}" title="" class="button"><i class="fa fa-plus"></i><span>{{ __('app.buttons.add') }}</span></a>
<a href="{{ route('dash', []) }}" class="button"><i class="fa fa-ban"></i><span>{{ __('app.buttons.cancel') }}</span></a>
2018-02-01 06:57:12 +00:00
</div>
</header>
2018-01-31 15:55:26 +00:00
<table class="table table-hover">
<thead>
<tr>
2018-02-07 13:37:40 +00:00
<th>{{ __('app.title') }}</th>
<th>{{ __('app.url') }}</th>
<th class="text-center" width="100">{{ __('app.settings.edit') }}</th>
<th class="text-center" width="100">{{ __('app.delete') }}</th>
2018-01-31 15:55:26 +00:00
</tr>
</thead>
<tbody>
@if($apps->first())
@foreach($apps as $app)
<tr>
<td>{{ $app->title }}</td>
2018-02-17 00:13:38 +00:00
<td><a href="{{ $app->url }}">{{ $app->link }}</a></td>
2019-06-18 09:51:51 +00:00
<td class="text-center"><a{{ $app->target }} href="{!! route('items.edit', [$app->id]) !!}" title="{{ __('app.settings.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-02-07 13:37:40 +00:00
<strong>{{ __('app.settings.no_items') }}</strong>
2018-01-31 15:55:26 +00:00
</td>
</tr>
@endif
</tbody>
</table>
2018-02-01 06:57:12 +00:00
</section>
2018-01-31 15:55:26 +00:00
@endsection