fleet data

This commit is contained in:
2018-11-13 20:53:07 -06:00
parent ece5812347
commit 15d0b74ff1
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ class FleetsController extends Controller
$size = sizeof($fc);
//Return the view with the array of the fleet
return view('fleets.displayfleets')->with($data);
return view('fleets.displayfleets')->with('data', $data);
}
public function registerFleet(Request $request) {

View File

@@ -5,7 +5,7 @@
@for($i = 0; $i < count($data[0]); $i++)
<a href="{{ route('addpilot', [$data[1][$i], Auth::user()->character_id]) }}">Join {{ $data[2][$i] }}</a><br>
@if(Auth::user()->character_id == $data[0][$i])
<a href="{{ route('deletefleet', [data[0][$i]]) }}">Delete Fleet</a><br><br>
<a href="{{ route('deletefleet', [$data[0][$i]]) }}">Delete Fleet</a><br><br>
@endif
@endfor
</div>