{!! Form::open(array('action' => 'HomeController@home')) !!} {{ Form::hidden('username', $username) }}

{{ Form::button('user home', array('class' => 'userhome', 'type' => 'submit')) }}

{!! Form::close() !!}

Alright {{ $username }}, here is where you can view bills that you need to pay...

{!! Form::open(array('action' => 'BillController@viewbill')) !!} {{ Form::hidden('username', $username) }}

{{ Form::button('view bills', array('class' => 'viewdebts', 'type' => 'submit')) }}

{!! Form::close() !!}
@for ($index=0; $index< $count ; $index++) @endfor
bill name amount paid total owner
{{ $billname }} {{ $amountpaid[$index] }} {{ $total[$index] }} {{ $owner[$index] }}