mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-06 15:04:01 +09:00
Added some items
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use App\Item;
|
||||||
|
|
||||||
class ItemController extends Controller
|
class ItemController extends Controller
|
||||||
{
|
{
|
||||||
@@ -13,8 +14,8 @@ class ItemController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
//
|
$data['apps'] = new Item;
|
||||||
|
return view('items.list', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
0
resources/views/items/create.blade.php
Normal file
0
resources/views/items/create.blade.php
Normal file
49
resources/views/items/list.blade.php
Normal file
49
resources/views/items/list.blade.php
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
@extends('app')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
|
||||||
|
|
||||||
|
<table class="table table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Title</th>
|
||||||
|
<th>Description</th>
|
||||||
|
<th>Url</th>
|
||||||
|
<th class="text-center" width="100">Edit</th>
|
||||||
|
<th class="text-center" width="100">Delete</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php /*
|
||||||
|
@if($apps->first())
|
||||||
|
@foreach($apps as $app)
|
||||||
|
<tr>
|
||||||
|
<td>{{ $app->title }}</td>
|
||||||
|
<td>{{ $app->description }}</td>
|
||||||
|
<td>{{ $app->url }}</td>
|
||||||
|
<td class="text-center"><a href="{!! route('items.edit', $app->id) !!}" title="Edit {!! $app->name !!}"><i class="fa fa-pencil"></i></a></td>
|
||||||
|
<td class="text-center">
|
||||||
|
<a href="{!! route('items.delete', $app->id) !!}" title="Delete {!! $app->name !!}" class="confirm-delete"><i class="fa fa-trash-o"></i></a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
@else
|
||||||
|
<tr>
|
||||||
|
<td colspan="6" class="form-error text-center">
|
||||||
|
<strong>No items found</strong>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
|
@if($apps->lastPage() > 1)
|
||||||
|
<tr>
|
||||||
|
<td colspan="10" class="text-center">{!! $apps->links() !!}</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
*/ ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
@endsection
|
||||||
Reference in New Issue
Block a user