This repository has been archived on 2026-07-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2017-07-16 13:28:43 -05:00

66 lines
2.1 KiB
PHP

<html>
<head>
<title>Paycheck Calculator</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="http://108.255.70.130/css/scc.css">
</head>
<body>
<div class>
<a href="/"><h1 class="logomaxipad">Home</h1></a>
</div>
<div class="jumbotron text-center maincontentarea">
<h1 class="sectiontitle">Bi-weekly paycheck calculator</h1>
<br><br>
{!! Form::open(array('action' => 'PaycheckController@results')) !!}
<p>
{{ Form::label('hourslbl', 'hours') }}
</p>
<p>
{{ Form::text('hours') }}
</p>
<p>
{{ Form::label('payratelbl', 'payrate') }}
</p>
<p>
{{ Form::text('payrate') }}
</p>
<p>
{{ Form::button('do it', array('type' => 'submit', 'class' => 'paycheckcalculatoraction')) }}
</p>
{!! Form::close() !!}
<div class="paycheckcalculatorresults">
<table class="paycheckcalculatorresults">
@if ($hours!=='empt' && $hours!=='d')
<label>Hours: {{ $hours }}</label>
<br>
<label>Pay rate: {{ $payrate }}</label>
<br>
<label>Gross pay: {{ $grosspay }}</label>
<br>
<label>Net pay: {{ $netpay }}</label>
<br>
<label>Federal tax: {{ $fedtax }}</label>
<br>
<label>State tax: {{ $statetax }}</label>
<br>
<label>Social Security tax: {{ $sstax }}</label>
<br>
<label>Medicare tax: {{ $medtax }}</label>
<br>
@endif
@if ($hours==='d')
<h1>Remember to fill in all the fields</h1>
@endif
</table>
</div>
</div>
</body>
</html>