From cd04c0e3754a7f28ec7f21e1fb3a08943b3b1c5d Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 30 Apr 2019 00:39:48 -0500 Subject: [PATCH] bids --- app/Http/Controllers/ContractController.php | 4 ++-- resources/views/contracts/admin/newcontract.blade.php | 4 ++-- resources/views/contracts/includes/all.blade.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/ContractController.php b/app/Http/Controllers/ContractController.php index 266d856ea..98f09d1ff 100644 --- a/app/Http/Controllers/ContractController.php +++ b/app/Http/Controllers/ContractController.php @@ -81,7 +81,7 @@ class ContractController extends Controller //Fetch all of the current contracts from the database $contractsTemp = Contract::where('end_date', '>=', $today) - ->where(['type' => 'public'])->get()->toArray(); + ->where(['type' => 'Public'])->get()->toArray(); //Count the number of bids, and add them to the arrays for($i = 0; $i < sizeof($contractsTemp); $i++) { @@ -132,7 +132,7 @@ class ContractController extends Controller //Fetch all of the current contracts from the database $contractsTemp = Contract::where('end_date', '>=', $today) - ->where(['type' => 'private'])->get(); + ->where(['type' => 'Private'])->get(); //Count the number of bids, and add them to the arrays for($i = 0; $i < sizeof($contractsTemp); $i++) { diff --git a/resources/views/contracts/admin/newcontract.blade.php b/resources/views/contracts/admin/newcontract.blade.php index bfc743e6b..e416123a4 100644 --- a/resources/views/contracts/admin/newcontract.blade.php +++ b/resources/views/contracts/admin/newcontract.blade.php @@ -29,11 +29,11 @@
{{ Form::label('type', 'Public Contract') }} - {{ Form::radio('type', 'public', true) }} + {{ Form::radio('type', 'Public', true) }}
{{ Form::label('type', 'Private Contract') }} - {{ Form::radio('type', 'private', false) }} + {{ Form::radio('type', 'Private', false) }}
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }} {!! Form::close() !!} diff --git a/resources/views/contracts/includes/all.blade.php b/resources/views/contracts/includes/all.blade.php index c454a2dcc..306b9059b 100644 --- a/resources/views/contracts/includes/all.blade.php +++ b/resources/views/contracts/includes/all.blade.php @@ -9,7 +9,7 @@ {{ $contract['title'] }}
- Type: Public + Type: {{ $contract['type'] }}
Bid on Contract