From 146d21d1496db50784c431cee12fc29d4ede4d5b Mon Sep 17 00:00:00 2001 From: amazing-username Date: Sun, 16 Jul 2017 13:28:43 -0500 Subject: [PATCH] Added some css designs --- app/Http/Controllers/BillController.php | 2 - public/css/scc.css | 178 ++++++++++++++++++++++++ resources/views/createbill.blade.php | 15 +- resources/views/created.blade.php | 9 +- resources/views/home.blade.php | 26 ++-- resources/views/login.blade.php | 21 +-- resources/views/manage.blade.php | 78 ++++------- resources/views/paycheck.blade.php | 47 ++----- resources/views/register.blade.php | 37 ++--- resources/views/userhome.blade.php | 20 +-- resources/views/view.blade.php | 40 +----- 11 files changed, 283 insertions(+), 190 deletions(-) create mode 100644 public/css/scc.css diff --git a/app/Http/Controllers/BillController.php b/app/Http/Controllers/BillController.php index 6e9e659..659a334 100644 --- a/app/Http/Controllers/BillController.php +++ b/app/Http/Controllers/BillController.php @@ -134,8 +134,6 @@ class BillController extends Controller $responsibleid = DB::table('responsible')->where('owner', $stuff->input('username'))->pluck('id'); $count = $amountpaids->count(); - echo $count . "
"; - return view('manage', ['username' => $stuff->input('username'), 'message' => ''])->with('test', $test)->with('users', $users)->with('payer', $payer)->with('bills', $bills)->with('amountpaids', $amountpaids)->with('totals', $totals)->with('responsibleid', $responsibleid)->with('count', $count); } public function view(Request $stuff) diff --git a/public/css/scc.css b/public/css/scc.css new file mode 100644 index 0000000..9373e49 --- /dev/null +++ b/public/css/scc.css @@ -0,0 +1,178 @@ +body { + background-color: #cce6ff; + +} +table { + font-size: 300%; + width: 100%; +} +div.logomaxipad { + background-color: #dedede; + text-align: center; + font-size: 100%; + height: 15%; +} +div.maincontentarea { + + background-color: inherit; +} +div.paycheckcalculatorresults { + background-color: orange; +} +div.addpeoplesection { + background-color: #e6e6e6; +} +div.managebill { + background-color: #a6a6a6; +} +div.debtors { + background-color: #666666; +} +h1 { + font-size: 1000%; +} +button { + border: transparent; + height: 30%; + width: 90%; + font-size: 500%; +} +button.createsection { + background-color: #33ffff; + color: #ffffff; + font-size: 500%; +} +button.managesection { + background-color: #33ffff; + color: #ffffff; + font-size: 500%; +} +button.viewsection { + background-color: #33ffff; + color: #ffffff; + font-size: 500%; +} +button.loginmaxipad { + background-color: aqua; + color: white; +} +button.registermaxipad { + background-color: #33ffff; + color: white; +} +button.paycheckcalculator { + background-color: #66ffff; + color: white; + width: 90%; + height: 40%; + font-size: 700%; +} +button.paycheckcalculatoraction { + background-color: #66ffff; + color: white; + width: 70%; + height: 25%; + font-size: 600%; +} +button.userhome { + height: 15%; + width: 100%; + font-size: 500%; + background-color: #0000ff; + color: #99ccff; +} +button.createbill { + background-color: #66ffff; + color: #ffffff; + width: 70%; +} +button.createbillmonthamount { + font-size: 250%; + background-color: #66ffff; + color: #ffffff; + width: 70%; + height: 25%; +} +button.addpeople { + background-color: #66ffff; + color: #ffffff; + font-size: 450%; + width: 70%; + height: 25%; +} +button.managebill { + background-color: #66ffff; + color: #ffffff; + font-size: 450%; + width: 70%; + height: 25%; +} +button.viewdebtors { + background-color: #66ffff; + color: #ffffff; + font-size: 450%; + width: 70%; + height: 25%; +} +button.viewdebts { + background-color: #66ffff; + color: #ffffff; + font-size: 450%; + width: 70%; + height: 25%; +} +h1.logomaxipad { + background-color: #0000ff; + color: #99ccff; + text-align: center; +} +h1.sectiontitle { + font-size: 650%; +} +h1.loginmaxipad { + font-size: 700%; +} +h1.registermaxipad { + font-size: 700%; +} +h1.addbillmonthsection { + background-color: white; +} +h1.addpeoplesection { + background-color: #e6e6e6; +} +label { + font-size: 500%; +} +input { + width: 70%; + height: 20%; + font-size: 450%; +} +table.paycheckcalculator { + +} +select { + width: 70%; + height: 20%; + font-size: 450%; +} +select.registeraccounttype { + width: 70%; + height: 20%; + font-size: 450%; +} +input.registeraccount { + width: 70%; + border: transparent; + background-color: #66ffff; + color: #ffffff; + font-size: 500%; +} +input.loginaccount { + width: 70%; + border: transparent; + background-color: #66ffff; + color: #ffffff; + font-size: 500%; +} diff --git a/resources/views/createbill.blade.php b/resources/views/createbill.blade.php index c11f8cb..22519fe 100644 --- a/resources/views/createbill.blade.php +++ b/resources/views/createbill.blade.php @@ -9,31 +9,32 @@ + - + {!! 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::button('user home', array('class' => 'userhome', 'type' => 'submit')) }}

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

Alright {{ $username }}, here is where you can create bills


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

- {{ Form::label('lbl', 'bill name', array('style' => 'font-size:500%')) }} + {{ Form::label('lbl', 'bill name') }}

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

- {{ Form::button('Create Bill', array('style' => 'height:20%;width:70%;font-size:500%', 'type' => 'submit')) }} + {{ Form::button('Create Bill', array('class' => 'createbill', 'type' => 'submit')) }}

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

{{$message}}

diff --git a/resources/views/created.blade.php b/resources/views/created.blade.php index a06a13b..1494d3e 100644 --- a/resources/views/created.blade.php +++ b/resources/views/created.blade.php @@ -9,13 +9,14 @@ + - -
-

Home

+ +
+

Home

-
+

Alright {{ $username }}, your account has been created

diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 8d6ac12..17fb2ea 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -5,28 +5,20 @@ - + - - + + - -
-

HomeIsWhereTheMoneyIs

-
+ +
+

HomeIsWhereTheMoneyIs

+


- +

- +
diff --git a/resources/views/login.blade.php b/resources/views/login.blade.php index 65db936..1d9d2bc 100644 --- a/resources/views/login.blade.php +++ b/resources/views/login.blade.php @@ -9,29 +9,30 @@ + - -
-

Home

+ +
+

Home

-
-

Login Page

+
+

Login Page


{{ Form::open(array('action' => 'HomeController@loginUser')) }}

- {{ Form::label("usernamelabel", 'username', array('style' => 'width:50%;height:20%;font-size:500%')) }} + {{ Form::label("usernamelabel", 'username') }}
- {{ Form::text("username", '', array('style' => 'width:70%;height:15%;font-size:500%')) }} + {{ Form::text("username", '') }}

- {{ Form::label("passwordlabel", 'password', array('style' => 'width:50%;height:20%;font-size:500%')) }} + {{ Form::label("passwordlabel", 'password') }}
- {{ Form::password("password", array('style' => 'width:70%;height:15%;font-size:500%')) }} + {{ Form::password("password") }}


- {{ Form::submit("Login", array('style' => 'width:70%;height:25%;font-size:500%')) }} + {{ Form::submit("Login", array('class' => 'loginaccount')) }}

{{ Form::close() }}

{{ $message }}

diff --git a/resources/views/manage.blade.php b/resources/views/manage.blade.php index 75f7512..f3c8794 100644 --- a/resources/views/manage.blade.php +++ b/resources/views/manage.blade.php @@ -9,48 +9,23 @@ - + - + {!! 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::button('user home', array('class' => 'userhome', '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) }}
@@ -58,36 +33,38 @@ height: 30%; {{ Form::label('billnamelabel', 'billname', array('style' => 'font-size:500%'))}}

- @foreach ($test as $bax) @endforeach

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

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

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

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

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

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

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

+

{{ $message }}

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

{{ $message }}

- -
+ +
+


Add people to the bill

{!! Form::open(array('action' => 'BillController@addpeople')) !!} @@ -96,7 +73,7 @@ height: 30%; {{ Form::label('billnamelbl', 'billname') }}

- @foreach ($test as $bax) @endforeach @@ -124,13 +101,13 @@ height: 30%;

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

-

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

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


Manage a bill

{!! Form::open(array('action' => 'BillController@calcbill')) !!} @@ -172,11 +149,12 @@ height: 30%; {{ Form::text('amountpaid') }}

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

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


Who owes you cash

{!! Form::open(array('action' => 'BillController@debt')) !!} @@ -192,7 +170,7 @@ height: 30%;

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

{!! Form::close() !!} {{ $empt = isset($payer) }} @@ -200,7 +178,7 @@ height: 30%; nothing @endif @if ($empt) - +
diff --git a/resources/views/paycheck.blade.php b/resources/views/paycheck.blade.php index 58fd0d1..b197db7 100644 --- a/resources/views/paycheck.blade.php +++ b/resources/views/paycheck.blade.php @@ -9,41 +9,14 @@ - - + - -
-

Home

+ +
+

Home

-
-

Bi-weekly paycheck calculator

+
+

Bi-weekly paycheck calculator



{!! Form::open(array('action' => 'PaycheckController@results')) !!}

@@ -59,11 +32,13 @@ height: 30%; {{ Form::text('payrate') }}

- {{ Form::button('do it', array('type' => 'submit')) }} + {{ Form::button('do it', array('type' => 'submit', 'class' => 'paycheckcalculatoraction')) }}

{!! Form::close() !!} +
+
Payer Billname
@if ($hours!=='empt' && $hours!=='d') - +

@@ -83,6 +58,8 @@ height: 30%; @if ($hours==='d')

Remember to fill in all the fields

@endif +
+
diff --git a/resources/views/register.blade.php b/resources/views/register.blade.php index e2e497a..b363c8b 100644 --- a/resources/views/register.blade.php +++ b/resources/views/register.blade.php @@ -9,52 +9,53 @@ + - -
-

Home

+ +
+

Home

-
-

Registration Page

+
+

Registration Page


{{ Form::open(array('action' => 'HomeController@registerUser', 'method' => 'post')) }}

- {{ Form::label('firstnamelabel', 'first name', array('style' => 'width:60%;height:20%;font-size:500%')) }} + {{ Form::label('firstnamelabel', 'first name') }}
- {{ Form::text('firstname', '', array('style' => 'width:70%;height:15%;font-size:500%')) }} + {{ Form::text('firstname', '') }}

- {{ Form::label('lastnamelabel', 'last name', array('style' => 'width:60%;height:20%;font-size:500%')) }} + {{ Form::label('lastnamelabel', 'last name') }}
- {{ Form::text('lastname', '', array('style' => 'width:70%;height:15%;font-size:500%')) }} + {{ Form::text('lastname', '') }}

- {{ Form::label('usernamelabel', 'username', array('style' => 'width:60%;height:20%;font-size:500%')) }} + {{ Form::label('usernamelabel', 'username') }}
- {{ Form::text('username', '', array('style' => 'width:70%;height:15%;font-size:500%')) }} + {{ Form::text('username', '') }}

- {{ Form::label('passwordlabel', 'password', array('style' => 'width:60%;height:20%;font-size:500%')) }} + {{ Form::label('passwordlabel', 'password') }}
- {{ Form::password('password', array('style' => 'width:70%;height:15%;font-size:500%')) }} + {{ Form::password('password') }}

- {{ Form::label('confirmlabel', 'confirm', array('style' => 'width:60%;height:20%;font-size:500%')) }} + {{ Form::label('confirmlabel', 'confirm') }}
- {{ Form::password('confirm', array('style' => 'width:70%;height:15%;font-size:500%')) }} + {{ Form::password('confirm') }}

- {{ Form::label('roomlabel', 'room', array('style' => 'width:60%;height:20%;font-size:500%')) }} + {{ Form::label('roomlabel', 'room') }}
-


- {{ Form::submit('register me', array('style' => 'width:70%;height:25%;font-size:500%')) }} + {{ Form::submit('register me', array('class' => 'registeraccount')) }}

{{ Form::close() }}

{{ $message }}

diff --git a/resources/views/userhome.blade.php b/resources/views/userhome.blade.php index 31e8f6b..80de1b6 100644 --- a/resources/views/userhome.blade.php +++ b/resources/views/userhome.blade.php @@ -9,39 +9,31 @@ - + - -
+ +

What's good {{$username}}? it's your home page



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

- {{ Form::button('create', array('style' => 'height:30%;width:80%;font-size:800%', 'type' => 'submit')) }} + {{ Form::button('create', array('class' => 'createsection', 'type' => 'submit')) }}

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

- {{ Form::button('mange', array('style' => 'height:30%;width:80%;font-size:800%', 'type' => 'submit')) }} + {{ Form::button('mange', array('class' => 'managesection', 'type' => 'submit')) }}

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

- {{ Form::button('view', array('style' => 'height:30%;width:80%;font-size:800%', 'type' => 'submit')) }} + {{ Form::button('view', array('class' => 'viewsection', 'type' => 'submit')) }}

{!! Form::close() !!}
diff --git a/resources/views/view.blade.php b/resources/views/view.blade.php index 0e71028..6a95197 100644 --- a/resources/views/view.blade.php +++ b/resources/views/view.blade.php @@ -9,45 +9,19 @@ - + - + {!! 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::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')) !!} @@ -60,11 +34,11 @@ height: 30%;

- {{ Form::button('view bills', array('style' => 'height:30%;width:70%', 'type' => 'submit')) }} + {{ Form::button('view bills', array('class' => 'viewdebts', 'type' => 'submit')) }}

{!! Form::close() !!}
- +
bill name amount paid