From 9dcb335a03c32d094fe56a43c6ca84d4532b8822 Mon Sep 17 00:00:00 2001 From: amazing-username Date: Wed, 31 May 2017 13:49:56 -0500 Subject: [PATCH] Fixed bug where labels would show up after empty fields --- app/Http/Controllers/PaycheckController.php | 2 +- resources/views/paycheck.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/PaycheckController.php b/app/Http/Controllers/PaycheckController.php index f1e1a22..f8921d2 100644 --- a/app/Http/Controllers/PaycheckController.php +++ b/app/Http/Controllers/PaycheckController.php @@ -9,7 +9,7 @@ class PaycheckController extends Controller // public function display() { - return view('paycheck', ['hours' => '', 'payrate' => '', 'grosspay' => '', 'netpay' => '', 'fedtax' => '', 'statetax' => '', 'sstax' => '', 'medtax' => '']); + return view('paycheck', ['hours' => 'empt', 'payrate' => '', 'grosspay' => '', 'netpay' => '', 'fedtax' => '', 'statetax' => '', 'sstax' => '', 'medtax' => '']); } public function results(Request $stuff) { diff --git a/resources/views/paycheck.blade.php b/resources/views/paycheck.blade.php index b1cb9c1..58fd0d1 100644 --- a/resources/views/paycheck.blade.php +++ b/resources/views/paycheck.blade.php @@ -62,7 +62,7 @@ height: 30%; {{ Form::button('do it', array('type' => 'submit')) }}

{!! Form::close() !!} - @if ($hours!=='d') + @if ($hours!=='empt' && $hours!=='d')