dashboard

This commit is contained in:
2019-10-12 22:44:35 -05:00
parent 486b050365
commit d12d0483c7

View File

@@ -34,9 +34,21 @@ class DashboardController extends Controller
$startStation = $lookupHelper->GetStationDetails($con->start_location_id);
$endStation = $lookupHelper->GetStationDetails($con->end_location_id);
$startSystem = $lookupHelper->GetSolarSystemName($startStation->system_id);
$endSystem = $lookupHelper->GetSolarSystemName($endStation->system_id);
dd($endStation);
if(isset($startStation->system_id)) {
$startSystem = $lookupHelper->GetSolarSystemName($startStation->system_id);
} else {
$startSystem = 'N/A';
}
if(isset($endStation->system_id)) {
$endSystem = $lookupHelper->GetSolarSystemName($endStation->system_id);
} else {
$endStation = 'N/A';
}
//Compile the final array
$final = [
'pickup' => $startSystem,
'destination' => $endSystem,