This commit is contained in:
2018-11-13 20:07:05 -06:00
parent 2cd6ced1c9
commit d73ca7a3f9
2 changed files with 5 additions and 5 deletions

View File

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

View File

@@ -3,8 +3,8 @@
<div class="container">
<h1>Work in Progress aka NOTHING WORKS!</h1><br>
<h2>Fleets</h2>
@foreach ($fleet as $fl)
<a href="{{ route('addpilot', $fl['fleet'], [Auth::user()->character_id]) }}">Join {{ $fl['description'] }}</a>
@endforeach
@for($i = 0; $i < $size; $i++)
<a href="{{ route('addpilot', $data['fc'][$i], [Auth::user()->character_id]) }}">Join {{ $data['description'][$i] }}</a>
@endfor
</div>
@endsection