@include('inc.navbar')
diff --git a/resources/views/hopadditions.blade.php b/resources/views/hopadditions.blade.php
index 7e97832..9ede88a 100644
--- a/resources/views/hopadditions.blade.php
+++ b/resources/views/hopadditions.blade.php
@@ -1,83 +1,8 @@
@extends('layouts.app')
@section('content')
-
-
+
+@yield('main')
-
@endsection
diff --git a/resources/views/hopadditions/create.blade.php b/resources/views/hopadditions/create.blade.php
index e69de29..f81f496 100644
--- a/resources/views/hopadditions/create.blade.php
+++ b/resources/views/hopadditions/create.blade.php
@@ -0,0 +1,40 @@
+@extends('hopadditions')
+
+@section('main')
+
+
+
Add a Grain
+
+ @if ($errors->any())
+
+
+ @foreach ($errors->all() as $error)
+ - {{ $error }}
+ @endforeach
+
+
+ @endif
+
+
+
+
+@endsection
diff --git a/resources/views/hopadditions/edit.blade.php b/resources/views/hopadditions/edit.blade.php
index e69de29..dbb02a8 100644
--- a/resources/views/hopadditions/edit.blade.php
+++ b/resources/views/hopadditions/edit.blade.php
@@ -0,0 +1,39 @@
+@extends('hopadditions')
+@section('main')
+
+
Update Hop Addition
+
+ @if ($errors->any())
+
+
+ @foreach ($errors->all() as $error)
+ - {{ $error }}
+ @endforeach
+
+
+
+ @endif
+
+
+
+@endsection
diff --git a/resources/views/hopadditions/index.blade.php b/resources/views/hopadditions/index.blade.php
index e69de29..9f9b602 100644
--- a/resources/views/hopadditions/index.blade.php
+++ b/resources/views/hopadditions/index.blade.php
@@ -0,0 +1,54 @@
+@extends('hopadditions')
+
+@section('main')
+
+
+
+
+@include('inc.navbar')
+
+
+
+@if (Auth::user()->isAdmin())
+
Add Hop Addition
+
+@endif
+
+
+ @include('inc.messages')
+
+
+ Beer |
+ Hop |
+ Amount |
+ Timing |
+ @if (Auth::user()->isAdmin())Admin | @endif
+
+
+
+
+ @foreach ($hopadditions as $hopaddition)
+
+ {{$hopaddition->beer}} |
+ {{$hopaddition->hop}} |
+ {{$hopaddition->amount}} |
+ {{$hopaddition->timing}} |
+ @if (Auth::user()->isAdmin())
+ Edit |
+ |
+ @endif
+
+ @endforeach
+
+
+
+
+
+
+
+
+@endsection
diff --git a/resources/views/hops/create.blade.php b/resources/views/hops/create.blade.php
index 2d50529..7d13b34 100644
--- a/resources/views/hops/create.blade.php
+++ b/resources/views/hops/create.blade.php
@@ -2,7 +2,7 @@
@section('main')
-
+
Add a Hop
@if ($errors->any())
diff --git a/resources/views/hops/edit.blade.php b/resources/views/hops/edit.blade.php
index 5736386..14288be 100644
--- a/resources/views/hops/edit.blade.php
+++ b/resources/views/hops/edit.blade.php
@@ -1,6 +1,6 @@
@extends('hops')
@section('main')
-
+
Update Grain
@if ($errors->any())
diff --git a/resources/views/hops/index.blade.php b/resources/views/hops/index.blade.php
index 7441eb6..e37f2b1 100644
--- a/resources/views/hops/index.blade.php
+++ b/resources/views/hops/index.blade.php
@@ -3,7 +3,7 @@
@section('main')
-
+
@include('inc.navbar')
diff --git a/resources/views/yeast.blade.php b/resources/views/yeast.blade.php
index 0bf76ef..94a8f05 100644
--- a/resources/views/yeast.blade.php
+++ b/resources/views/yeast.blade.php
@@ -3,7 +3,7 @@
@section('content')
-
+
@include('inc.navbar')
diff --git a/resources/views/yeasts/create.blade.php b/resources/views/yeasts/create.blade.php
index 8f9df35..36a27cc 100644
--- a/resources/views/yeasts/create.blade.php
+++ b/resources/views/yeasts/create.blade.php
@@ -2,7 +2,7 @@
@section('main')
-
+
Add a Yeast
@if ($errors->any())
diff --git a/resources/views/yeasts/edit.blade.php b/resources/views/yeasts/edit.blade.php
index ae386bd..3bc612f 100644
--- a/resources/views/yeasts/edit.blade.php
+++ b/resources/views/yeasts/edit.blade.php
@@ -1,6 +1,6 @@
@extends('yeasts')
@section('main')
-
+
Update Yeast
@if ($errors->any())
diff --git a/resources/views/yeasts/index.blade.php b/resources/views/yeasts/index.blade.php
index c8d97ee..ed98d10 100644
--- a/resources/views/yeasts/index.blade.php
+++ b/resources/views/yeasts/index.blade.php
@@ -3,7 +3,7 @@
@section('main')
-
+
@include('inc.navbar')
diff --git a/routes/web.php b/routes/web.php
index dfbcde6..3779d70 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -30,9 +30,9 @@ Route::resource('yeasts', 'App\Http\Controllers\YeastController');
Route::resource('adjuncts', 'App\Http\Controllers\AdjunctController');
Route::resource('grainbills', 'App\Http\Controllers\GrainbillController');
Route::resource('mashes', 'App\Http\Controllers\MasheController');
+Route::resource('hopadditions', 'App\Http\Controllers\HopAdditionController');
Route::get('/home', [App\Http\Controllers\SummarieController::class, 'index'])->name('home');
Route::get('/fermentations', [App\Http\Controllers\FermentationController::class, 'index'])->name('fermentations');
-Route::get('/hopadditions', [App\Http\Controllers\HopAdditionController::class, 'index'])->name('hopadditions');
Route::get('/adjunctadditions', [App\Http\Controllers\AdjunctAdditionController::class, 'index'])->name('adjunctadditions');
Route::get('/brewery/{breweryID}', [App\Http\Controllers\BreweryController::class, 'index'])->name('brewery');
Route::get('/beer/{beerID}', [App\Http\Controllers\BeerController::class, 'index'])->name('beer');
@@ -40,6 +40,5 @@ Route::get('/grain/{grainID}', [App\Http\Controllers\GraincardController::class,
Route::get('/yeast/{yeastID}', [App\Http\Controllers\YeastcardController::class, 'index'])->name('yeast');
Route::get('/hop/{hopID}', [App\Http\Controllers\HopcardController::class, 'index'])->name('hop');
Route::get('/adjunct/{adjunctID}', [App\Http\Controllers\AdjunctcardController::class, 'index'])->name('adjunct');
-Route::post('/hopadditions', [App\Http\Controllers\HopAdditionController::class, 'store'])->name('hopadditions.store');
Route::post('/adjunctadditions', [App\Http\Controllers\AdjunctAdditionController::class, 'store'])->name('adjunctadditions.store');
Route::post('/fermentations', [App\Http\Controllers\FermentationController::class, 'store'])->name('fermentations.store');