Bug where the correct amount paid and total due for a bill was not showing up properly for those viewing bills they belong to
This commit is contained in:
@@ -13,18 +13,16 @@
|
||||
|
||||
</head>
|
||||
<body>
|
||||
{!! Form::open(array('action' => 'HomeController@home')) !!}
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<p>
|
||||
{!! Form::open(array('action' => 'HomeController@home')) !!}
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<p>
|
||||
<div>
|
||||
{{ Form::button('user home', array('class' => 'userhome', 'type' => 'submit')) }}
|
||||
{{ Form::button('user home', array('class' => 'userhome', 'type' => 'submit')) }}
|
||||
</div>
|
||||
</p>
|
||||
{!! Form::close() !!}
|
||||
<div class="jumbotron text-center maincontentarea">
|
||||
<h1>Alright {{ $username }}, here is where you can create bills</h1>
|
||||
<br>
|
||||
|
||||
</p>
|
||||
{!! Form::close() !!}
|
||||
<div class="jumbotron text-center maincontentarea">
|
||||
<h1>Alright {{ $username }}, here is where you can create bills</h1><br>
|
||||
{!! Form::open(array('action' => 'BillController@createbill')) !!}
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<p>
|
||||
@@ -34,7 +32,7 @@
|
||||
{{ Form::text('billname', '') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::button('Create Bill', array('class' => 'createbill', 'type' => 'submit')) }}
|
||||
{{ Form::button('Create Bill', array('class' => 'createbill', 'type' => 'submit')) }}
|
||||
</p>
|
||||
{!! Form::close() !!}
|
||||
<h1>{{$message}}</h1>
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
|
||||
<!doctype html>
|
||||
<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">
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
<!-- 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>
|
||||
|
||||
@@ -13,56 +13,54 @@
|
||||
|
||||
</head>
|
||||
<body>
|
||||
{!! Form::open(array('action' => 'HomeController@home')) !!}
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<p>
|
||||
{!! Form::open(array('action' => 'HomeController@home')) !!}
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<p>
|
||||
<div>
|
||||
{{ Form::button('user home', array('class' => 'userhome', 'type' => 'submit')) }}
|
||||
{{ Form::button('user home', array('class' => 'userhome', 'type' => 'submit')) }}
|
||||
</div>
|
||||
</p>
|
||||
{!! Form::close() !!}
|
||||
</p>
|
||||
{!! Form::close() !!}
|
||||
<div class="jumbotron text-center maincontentarea">
|
||||
<h1>Alright {{ $username }}, here is where you can manage the bills you own</h1>
|
||||
<br><br>
|
||||
|
||||
<div><h1 class="addbillmonthsection">
|
||||
{!! Form::open(array('action' => 'BillController@managebill')) !!}
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<br>
|
||||
<p>
|
||||
{{ Form::label('billnamelabel', 'billname', array('style' => 'font-size:500%'))}}
|
||||
</p>
|
||||
<p>
|
||||
<select name="billname">
|
||||
@foreach ($test as $bax)
|
||||
<option value={{ $bax }}>{{ $bax }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('datelabel', "enter date in yyyymm") }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::text('date', '') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('totallabel', 'total bill amount') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::text('total', '') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('eachlabel', 'how many people') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::text('each', '') }}
|
||||
</p>
|
||||
{{ Form::button('add bill', array('class' => 'createbillmonthamount', 'type' => 'submit')) }}
|
||||
<br><br>
|
||||
<h1>{{ $message }}</h1>
|
||||
</p>
|
||||
{!! Form::close() !!}
|
||||
</h1>
|
||||
<div>
|
||||
<h1 class="addbillmonthsection">
|
||||
{!! Form::open(array('action' => 'BillController@managebill')) !!}
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<br>
|
||||
<p>
|
||||
{{ Form::label('billnamelabel', 'billname', array('style' => 'font-size:500%'))}}
|
||||
</p>
|
||||
<p>
|
||||
<select name="billname">
|
||||
@foreach ($test as $bax)
|
||||
<option value={{ $bax }}>{{ $bax }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('datelabel', "enter date in yyyymm") }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::text('date', '') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('totallabel', 'total bill amount') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::text('total', '') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('eachlabel', 'how many people') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::text('each', '') }}
|
||||
</p>
|
||||
{{ Form::button('add bill', array('class' => 'createbillmonthamount', 'type' => 'submit')) }}
|
||||
<br><br>
|
||||
<h1>{{ $message }}</h1>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
<div class="addpeoplesection">
|
||||
<br><br>
|
||||
@@ -74,9 +72,9 @@
|
||||
</p>
|
||||
<p>
|
||||
<select name="billname">
|
||||
@foreach ($test as $bax)
|
||||
<option value={{ $bax }}>{{ $bax }}</option>
|
||||
@endforeach
|
||||
@foreach ($test as $bax)
|
||||
<option value={{ $bax }}>{{ $bax }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
@@ -84,9 +82,9 @@
|
||||
</p>
|
||||
<p>
|
||||
<select name="payer">
|
||||
@foreach ($users as $cax)
|
||||
<option value={{ $cax }}>{{ $cax }}</option>
|
||||
@endforeach
|
||||
@foreach ($users as $cax)
|
||||
<option value={{ $cax }}>{{ $cax }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
@@ -117,9 +115,9 @@
|
||||
</p>
|
||||
<p>
|
||||
<select name="billname">
|
||||
@foreach ($test as $bax)
|
||||
<option value={{ $bax }}>{{ $bax }}</option>
|
||||
@endforeach
|
||||
@foreach ($test as $bax)
|
||||
<option value={{ $bax }}>{{ $bax }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
@@ -127,9 +125,9 @@
|
||||
</p>
|
||||
<p>
|
||||
<select name="payer">
|
||||
@foreach ($users as $cax)
|
||||
<option value={{ $cax }}>{{ $cax }}</option>
|
||||
@endforeach
|
||||
@foreach ($users as $cax)
|
||||
<option value={{ $cax }}>{{ $cax }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
@@ -137,9 +135,9 @@
|
||||
</p>
|
||||
<p>
|
||||
<select name="responsibleid">
|
||||
@foreach ($responsibleid as $dax)
|
||||
<option value={{ $dax }}>{{ $dax }}</option>
|
||||
@endforeach
|
||||
@foreach ($responsibleid as $dax)
|
||||
<option value={{ $dax }}>{{ $dax }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
@@ -164,9 +162,9 @@
|
||||
</p>
|
||||
<p>
|
||||
<select name="payer">
|
||||
@foreach ($users as $cax)
|
||||
<option value={{ $cax }}>{{ $cax }}</option>
|
||||
@endforeach
|
||||
@foreach ($users as $cax)
|
||||
<option value={{ $cax }}>{{ $cax }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
<!doctype>
|
||||
<html>
|
||||
<head>
|
||||
<title>HomeIsWhereTheMoneyIs</title>
|
||||
@@ -10,53 +10,51 @@
|
||||
<!-- 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>
|
||||
<a href="/"><h1 class="logomaxipad">Home</h1></a>
|
||||
</div>
|
||||
<div class="jumbotron text-center maincontentarea">
|
||||
<h1 class="sectiontitle">Registration Page</h1>
|
||||
<br>
|
||||
<h1 class="sectiontitle">Registration Page</h1><br>
|
||||
{{ Form::open(array('action' => 'HomeController@registerUser', 'method' => 'post')) }}
|
||||
<p>
|
||||
{{ Form::label('firstnamelabel', 'first name') }}
|
||||
<br>
|
||||
{{ Form::text('firstname', '') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('lastnamelabel', 'last name') }}
|
||||
<br>
|
||||
{{ Form::text('lastname', '') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('usernamelabel', 'username') }}
|
||||
<br>
|
||||
{{ Form::text('username', '') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('passwordlabel', 'password') }}
|
||||
<br>
|
||||
{{ Form::password('password') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('confirmlabel', 'confirm') }}
|
||||
<br>
|
||||
{{ Form::password('confirm') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('roomlabel', 'room') }}
|
||||
<br>
|
||||
<select name="room" class="registeraccounttype">
|
||||
<option>single</option>
|
||||
<option>double</option>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<br>
|
||||
{{ Form::submit('register me', array('class' => 'registeraccount')) }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('firstnamelabel', 'first name') }}
|
||||
<br>
|
||||
{{ Form::text('firstname', '') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('lastnamelabel', 'last name') }}
|
||||
<br>
|
||||
{{ Form::text('lastname', '') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('usernamelabel', 'username') }}
|
||||
<br>
|
||||
{{ Form::text('username', '') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('passwordlabel', 'password') }}
|
||||
<br>
|
||||
{{ Form::password('password') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('confirmlabel', 'confirm') }}
|
||||
<br>
|
||||
{{ Form::password('confirm') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ Form::label('roomlabel', 'room') }}
|
||||
<br>
|
||||
<select name="room" class="registeraccounttype">
|
||||
<option>single</option>
|
||||
<option>double</option>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<br>
|
||||
{{ Form::submit('register me', array('class' => 'registeraccount')) }}
|
||||
</p>
|
||||
{{ Form::close() }}
|
||||
<h1>{{ $message }}</h1>
|
||||
</div>
|
||||
|
||||
@@ -13,27 +13,25 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="jumbotron text-center maincontentarea">
|
||||
<h1>What's good {{$username}}? it's your home page</h1>
|
||||
<h1>Hey {{$username}}, how is it going? it's your home page</h1>
|
||||
<br><br>
|
||||
|
||||
{!! Form::open(array('action' => 'BillController@create')) !!}
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<p>
|
||||
{{ Form::button('create', array('class' => 'createsection', 'type' => 'submit')) }}
|
||||
{{ Form::button('create', array('class' => 'createsection', 'type' => 'submit')) }}
|
||||
</p>
|
||||
{!! Form::close() !!}
|
||||
|
||||
{!! Form::open(array('action' => 'BillController@manage')) !!}
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<p>
|
||||
{{ Form::button('mange', array('class' => 'managesection', 'type' => 'submit')) }}
|
||||
{{ Form::button('mange', array('class' => 'managesection', 'type' => 'submit')) }}
|
||||
</p>
|
||||
{!! Form::close() !!}
|
||||
{!! Form::open(array('action' => 'BillController@view')) !!}
|
||||
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<p>
|
||||
{{ Form::button('view', array('class' => 'viewsection', 'type' => 'submit')) }}
|
||||
{{ Form::button('view', array('class' => 'viewsection', 'type' => 'submit')) }}
|
||||
</p>
|
||||
{!! Form::close() !!}
|
||||
<button class="logout"><a href="/">log out</a></button>
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
|
||||
</head>
|
||||
<body>
|
||||
{!! Form::open(array('action' => 'HomeController@home')) !!}
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<p>
|
||||
{!! Form::open(array('action' => 'HomeController@home')) !!}
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<p>
|
||||
<div>
|
||||
{{ Form::button('user home', array('class' => 'userhome', 'type' => 'submit')) }}
|
||||
{{ Form::button('user home', array('class' => 'userhome', 'type' => 'submit')) }}
|
||||
</div>
|
||||
</p>
|
||||
{!! Form::close() !!}
|
||||
</p>
|
||||
{!! Form::close() !!}
|
||||
<div class="jumbotron text-center maincontentarea">
|
||||
<h1>Alright {{ $username }}, here is where you can view bills that you need to pay...</h1>
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
{{ Form::hidden('username', $username) }}
|
||||
<p>
|
||||
<select name='tough'>
|
||||
@foreach ($grass as $record)
|
||||
<option value={{ $record }}>{{ $record }}</option>
|
||||
@endforeach
|
||||
@foreach ($grass as $record)
|
||||
<option value={{ $record }}>{{ $record }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
@@ -45,12 +45,14 @@
|
||||
<th>total</th>
|
||||
<th>owner</th>
|
||||
</tr>
|
||||
@for ($index=0; $index< $count ; $index++)
|
||||
<tr>
|
||||
<td>{{ $billname }}</td>
|
||||
<td>{{ $amountpaid }}</td>
|
||||
<td>{{ $total }}</td>
|
||||
<td>{{ $owner }}</td>
|
||||
<td>{{ $billname }} </td>
|
||||
<td>{{ $amountpaid[$index] }}</td>
|
||||
<td>{{ $total[$index] }}</td>
|
||||
<td>{{ $owner[$index] }} </td>
|
||||
</tr>
|
||||
@endfor
|
||||
</table>
|
||||
</div>
|
||||
<button class="logout"><a href="/">log out</a></button>
|
||||
|
||||
Reference in New Issue
Block a user