Can now retrieve data from database

This commit is contained in:
amazing-username
2017-05-25 19:16:58 -05:00
parent 6fb825de5c
commit 9859f5cadd
9 changed files with 215 additions and 18 deletions
+38
View File
@@ -0,0 +1,38 @@
<html>
<head>
<title>HomeIsWhereTheMoneyIs</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>
</head>
<body style="background-color:#eee">
<div class="jumbotron text-center">
<h1>Alright {{ $username }}, here is where you can create bills</h1>
{!! Form::open(array('action' => 'HomeController@home')) !!}
{{ Form::hidden('username', $username) }}
<p>
{{ Form::button('user Home', array('style' => 'height:40%;width:70%', 'type' => 'submit')) }}
</p>
{!! Form::close() !!}
{!! Form::open(array('action' => 'BillController@createbill')) !!}
{{ Form::hidden('username', $username) }}
<p>
{{ Form::label('lbl', 'bill name', array('style' => 'font-size:400%')) }}
{{ Form::text('billname', '', array('style' => 'font-size:400%')) }}
</p>
<p>
{{ Form::button('Create Bill', array('style' => 'height:40%;width:70%', 'type' => 'submit')) }}
</p>
{!! Form::close() !!}
<h1>{{$message}}</h1>
</div>
</body>
</html>
+37
View File
@@ -0,0 +1,37 @@
<html>
<head>
<title>HomeIsWhereTheMoneyIs</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>
</head>
<body style="background-color:#eee">
<div class="jumbotron text-center">
<h1>Alright {{ $username }}, here is where you can manage the bills you own bills</h1>
{!! Form::open(array('action' => 'HomeController@home')) !!}
{{ Form::hidden('username', $username) }}
<p>
{{ Form::button('user Home', array('style' => 'height:40%;width:70%', 'type' => 'submit')) }}
</p>
{!! Form::close() !!}
{!! Form::open(array('action' => 'BillController@createbill')) !!}
{{ Form::hidden('username', $username) }}
<p>
{{ Form::label('lbl', 'bill name', array('style' => 'font-size:400%')) }}
{{ Form::text('billname', '', array('style' => 'font-size:400%')) }}
</p>
<p>
{{ Form::button('Create Bill', array('style' => 'height:40%;width:70%', 'type' => 'submit')) }}
</p>
{!! Form::close() !!}
</div>
</body>
</html>
+32 -4
View File
@@ -9,15 +9,43 @@
<!-- 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>
<style type="text/css">
.test
{
height: 30%;
}
.test2 {
height:50%;
}
</style>
</head>
<body style="background-color:#eee">
<div class="jumbotron text-center">
<h1>What's good {{$username}}? it's your home page</h1>
<br>
<a href=""><button style="height:30%;width:70%"><h1>Create Bill</h1></button><br></a>
<a href=""><button style="height:30%;width:70%"><h1>Manage Bills</h1></button><br></a>
<a href=""><button style="height:30%;width:70%"><h1>View Bills</h1></button><br></a>
{!! Form::open(array('action' => 'BillController@create')) !!}
{{ Form::hidden('username', $username) }}
<p>
{{ Form::button('create', array('style' => 'height:40%;width:70%', 'type' => 'submit')) }}
</p>
{!! Form::close() !!}
{!! Form::open(array('action' => 'BillController@manage')) !!}
{{ Form::hidden('username', $username) }}
<p>
{{ Form::button('mange', array('style' => 'height:40%;width:70%', 'type' => 'submit')) }}
</p>
{!! Form::close() !!}
{!! Form::open(array('action' => 'BillController@view')) !!}
{{ Form::hidden('username', $username) }}
<p>
{{ Form::button('view', array('style' => 'height:40%;width:70%', 'type' => 'submit')) }}
</p>
{!! Form::close() !!}
</div>
</body>
</html>
+43
View File
@@ -0,0 +1,43 @@
<html>
<head>
<title>HomeIsWhereTheMoneyIs</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>
</head>
<body style="background-color:#eee">
<div class="jumbotron text-center">
<h1>Alright {{ $username }}, here is where you can view bills that you need to pay...</h1>
{!! Form::open(array('action' => 'HomeController@home')) !!}
{{ Form::hidden('username', $username) }}
<p>
{{ Form::button('user Home', array('style' => 'height:40%;width:70%', 'type' => 'submit')) }}
</p>
{!! Form::close() !!}
{!! Form::open(array('action' => 'BillController@createbill')) !!}
{{ Form::hidden('username', $username) }}
<p>
</p>
<ul>
@foreach ($billrecord as $bill)
<li>{{{ $bill->billname }}}<li>
@endforeach
</ul>
<p>
{{ Form::text('billname', '', array('style' => 'height:40%;width:70%')) }}
</p>
<p>
{{ Form::button('Create Bill', array('style' => 'height:40%;width:70%', 'type' => 'submit')) }}
</p>
{!! Form::close() !!}
</div>
</body>
</html>