protected function getPastMission($data)
 {
     JavaScript::put(['mission' => $data['mission']]);
     $data['documents'] = Object::inMissionControl()->authedVisibility()->where('type', MissionControlType::Document)->orderBy('created_at')->get();
     $data['launchVideo'] = $data['mission']->launchVideo();
     $data['orbitalElements'] = $data['mission']->orbitalElements()->orderBy('epoch', 'desc')->take(5);
     return view('missions.pastMission', $data);
 }
 public function aboutTotalData()
 {
     return response()->json(['size' => round(Object::inMissionControl()->sum('size') / 1000000000, 1) . ' GB', 'images' => Object::where('type', MissionControlType::Image)->count(), 'videos' => Object::where('type', MissionControlType::Video)->count(), 'documents' => Object::where('type', MissionControlType::Document)->count()]);
 }
 public function show()
 {
     JavaScript::put(['tags' => Tag::all(), 'missions' => Mission::with('featuredImage')->get(), 'publishers' => Publisher::all()]);
     return view('missionControl.create', ['recentUploads' => Object::inMissionControl()->orderBy('created_at', 'desc')->take(10)->get()]);
 }