srp admin controller comments
This commit is contained in:
@@ -419,6 +419,7 @@ class SRPAdminController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function displayCostCodes() {
|
public function displayCostCodes() {
|
||||||
|
//Declare some variables
|
||||||
$costcodes = array();
|
$costcodes = array();
|
||||||
$count = 0;
|
$count = 0;
|
||||||
$shipType = SrpShipType::all();
|
$shipType = SrpShipType::all();
|
||||||
@@ -431,13 +432,14 @@ class SRPAdminController extends Controller
|
|||||||
$tempDescription = $ship->description;
|
$tempDescription = $ship->description;
|
||||||
$temp = SrpPayout::where(['code' => $ship->code])->first();
|
$temp = SrpPayout::where(['code' => $ship->code])->first();
|
||||||
$tempPayout = $temp->payout;
|
$tempPayout = $temp->payout;
|
||||||
|
//Store the data in a temporary variable
|
||||||
$block = [
|
$block = [
|
||||||
'code' => $tempCode,
|
'code' => $tempCode,
|
||||||
'description' => $tempDescription,
|
'description' => $tempDescription,
|
||||||
'payout' => $tempPayout,
|
'payout' => $tempPayout,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
//Push the data into the array
|
||||||
array_push($costcodes, $block);
|
array_push($costcodes, $block);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user