diff --git a/app/Http/Controllers/ItemController.php b/app/Http/Controllers/ItemController.php index a93da7b9..c29a0f87 100644 --- a/app/Http/Controllers/ItemController.php +++ b/app/Http/Controllers/ItemController.php @@ -3,6 +3,7 @@ namespace App\Http\Controllers; use Illuminate\Http\Request; +use App\Item; class ItemController extends Controller { @@ -13,8 +14,8 @@ class ItemController extends Controller */ public function index() { - // - + $data['apps'] = new Item; + return view('items.list', $data); } /** diff --git a/resources/views/items/create.blade.php b/resources/views/items/create.blade.php new file mode 100644 index 00000000..e69de29b diff --git a/resources/views/items/list.blade.php b/resources/views/items/list.blade.php new file mode 100644 index 00000000..20b1e184 --- /dev/null +++ b/resources/views/items/list.blade.php @@ -0,0 +1,49 @@ +@extends('app') + +@section('content') + + + + + + + + + + + + + + first()) + @foreach($apps as $app) + + + + + + + + @endforeach + @else + + + + @endif + + + @if($apps->lastPage() > 1) + + + + @endif + */ ?> + +
TitleDescriptionUrlEditDelete
{{ $app->title }}{{ $app->description }}{{ $app->url }} + +
+ No items found +
{!! $apps->links() !!}
+ + +@endsection \ No newline at end of file