Fixed bug where labels would show up after empty fields
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -62,7 +62,7 @@ height: 30%;
|
||||
{{ Form::button('do it', array('type' => 'submit')) }}
|
||||
</p>
|
||||
{!! Form::close() !!}
|
||||
@if ($hours!=='d')
|
||||
@if ($hours!=='empt' && $hours!=='d')
|
||||
<label style="font-size:500%">Hours: {{ $hours }}</label>
|
||||
<br>
|
||||
<label>Pay rate: {{ $payrate }}</label>
|
||||
|
||||
Reference in New Issue
Block a user