fleets
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user