fleets
This commit is contained in:
@@ -44,10 +44,10 @@ class FleetsController extends Controller
|
|||||||
$description,
|
$description,
|
||||||
];
|
];
|
||||||
|
|
||||||
dd($data);
|
$size = sizeof($fc);
|
||||||
|
|
||||||
//Return the view with the array of the fleet
|
//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) {
|
public function registerFleet(Request $request) {
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Work in Progress aka NOTHING WORKS!</h1><br>
|
<h1>Work in Progress aka NOTHING WORKS!</h1><br>
|
||||||
<h2>Fleets</h2>
|
<h2>Fleets</h2>
|
||||||
@foreach ($fleet as $fl)
|
@for($i = 0; $i < $size; $i++)
|
||||||
<a href="{{ route('addpilot', $fl['fleet'], [Auth::user()->character_id]) }}">Join {{ $fl['description'] }}</a>
|
<a href="{{ route('addpilot', $data['fc'][$i], [Auth::user()->character_id]) }}">Join {{ $data['description'][$i] }}</a>
|
||||||
@endforeach
|
@endfor
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
Reference in New Issue
Block a user