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

{{ Form::button('user home', array('style' => 'height:15%;width:100%;font-size:500%;background-color:#000000;color:#eee', 'type' => 'submit')) }}

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

Alright {{ $username }}, here is where you can manage the bills you own



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

{{ Form::label('billnamelabel', 'billname', array('style' => 'font-size:500%'))}}

{{ Form::label('datelabel', "enter date in yyyymm", array('style' => 'font-size:500%')) }}

{{ Form::text('date', '', array('style' => 'width:70%;height:15%;font-size:500%')) }}

{{ Form::label('totallabel', 'total bill amount', array('style' => 'font-size:500%')) }}

{{ Form::text('total', '', array('style' => 'width:70%;height:15%;font-size:500%')) }}

{{ Form::label('eachlabel', 'how many people', array('style' => 'font-size:500%')) }}

{{ Form::text('each', '', array('style' => 'width:70%;height:15%;font-size:500%')) }}

{{ Form::button('add bill', array('style' => 'height:30%;width:70%;font-size:500%', 'type' => 'submit')) }}

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

{{ $message }}



Add people to the bill

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

{{ Form::label('billnamelbl', 'billname') }}

{{ Form::label('payerlbl', 'payer') }}

{{ Form::label('datelabel', 'date in yyyymm') }}

{{ Form::text('date') }}

{{ Form::label('amountpaidlabel', 'amount paid') }}

{{ Form::text('amountpaid') }}

{{ Form::button('add payer', array('style' => '', 'type' => 'submit')) }}

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


Manage a bill

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

{{ Form::label('billnamelbl', 'billname') }}

{{ Form::label('payerlbl', 'payer') }}

{{ Form::label('idlbl', 'bill id') }}

{{ Form::label('amountpaidlabel', 'amount paid') }}

{{ Form::text('amountpaid') }}

{{ Form::button('update payer', array('style' => '', 'type' => 'submit')) }}

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


Who owes you cash

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

{{ Form::label('payerlbl', 'payer') }}

{{ Form::button('check', array('style' => '', 'type' => 'submit')) }}

{!! Form::close() !!} {{ $empt = isset($payer) }} @if (!$empt) nothing @endif @if ($empt) @for ($i = 0; $i < $count; ++$i) @endfor
Payer Billname Amount paid Total
{{ $payer }} {{ $bills[$i] }} {{ $amountpaids[$i] }} {{ $totals[$i] }}
@endif