From 406aa6033d03761426caad3aedaebe74b8a32e26 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 31 Jan 2018 15:55:26 +0000 Subject: [PATCH] Added some items --- app/Http/Controllers/ItemController.php | 5 ++- resources/views/items/create.blade.php | 0 resources/views/items/list.blade.php | 49 +++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 resources/views/items/create.blade.php create mode 100644 resources/views/items/list.blade.php 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