contract modification
This commit is contained in:
@@ -80,6 +80,7 @@ class ContractController extends Controller
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
$lowestBid = null;
|
$lowestBid = null;
|
||||||
$lowestCorp = null;
|
$lowestCorp = null;
|
||||||
|
$lowestChar = null;
|
||||||
|
|
||||||
//Fetch all of the current contracts from the database
|
//Fetch all of the current contracts from the database
|
||||||
$contractsTemp = Contract::where('end_date', '>=', $today)
|
$contractsTemp = Contract::where('end_date', '>=', $today)
|
||||||
@@ -94,10 +95,12 @@ class ContractController extends Controller
|
|||||||
if($lowestBid == null) {
|
if($lowestBid == null) {
|
||||||
$lowestBid = $bid['bid_amount'];
|
$lowestBid = $bid['bid_amount'];
|
||||||
$lowestCorp = $bid['corporation_name'];
|
$lowestCorp = $bid['corporation_name'];
|
||||||
|
$lowestChar = $bid['character_name'];
|
||||||
} else {
|
} else {
|
||||||
if($bid['bid_amount'] < $lowestBid) {
|
if($bid['bid_amount'] < $lowestBid) {
|
||||||
$lowestBid = $bid['bid_amount'];
|
$lowestBid = $bid['bid_amount'];
|
||||||
$lowestCorp = $bid['corporation_name'];
|
$lowestCorp = $bid['corporation_name'];
|
||||||
|
$lowestChar = $bid['character_name'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -113,6 +116,7 @@ class ContractController extends Controller
|
|||||||
$contracts[$i]['bids'] = $bids;
|
$contracts[$i]['bids'] = $bids;
|
||||||
$contracts[$i]['lowestbid'] = $lowestBid;
|
$contracts[$i]['lowestbid'] = $lowestBid;
|
||||||
$contracts[$i]['lowestcorp'] = $lowestCorp;
|
$contracts[$i]['lowestcorp'] = $lowestCorp;
|
||||||
|
$contracts[$i]['lowestchar'] = $lowestChar;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user