bids
This commit is contained in:
@@ -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++) {
|
||||
|
||||
@@ -29,11 +29,11 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('type', 'Public Contract') }}
|
||||
{{ Form::radio('type', 'public', true) }}
|
||||
{{ Form::radio('type', 'Public', true) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('type', 'Private Contract') }}
|
||||
{{ Form::radio('type', 'private', false) }}
|
||||
{{ Form::radio('type', 'Private', false) }}
|
||||
</div>
|
||||
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
|
||||
{!! Form::close() !!}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{{ $contract['title'] }}
|
||||
</div>
|
||||
<div class="col-sm" align="center">
|
||||
Type: Public
|
||||
Type: {{ $contract['type'] }}
|
||||
</div>
|
||||
<div class="col-sm" align="right">
|
||||
<a href="/contracts/display/newbid/{{ $contract['contract_id'] }}" class="btn btn-primary" role="button">Bid on Contract</a>
|
||||
|
||||
Reference in New Issue
Block a user