Haru Posted December 25, 2019 Report Share Posted December 25, 2019 Could anyone help me modify the blades responsible for displaying the list of flights to include the subfleet information? Quote Link to comment Share on other sites More sharing options...
web541 Posted December 29, 2019 Report Share Posted December 29, 2019 Which list of flights, the user side cards or the admin side? And what subfleet information are you looking for? If the user cards then try this: After this line: https://github.com/nabeelio/phpvms/blob/dev/resources/views/layouts/default/flights/table.blade.php#L57 Add this: <h5 class="pt-2 mb-0">Available Subfleets:</h5> @if($flight->subfleets) @foreach($flight->subfleets as $subfleet) <span class="title">FLEET: </span> {{ $subfleet->type }} - {{ $subfleet->name }} <br /> @endforeach @endif 2 Quote Link to comment Share on other sites More sharing options...
Haru Posted January 5, 2020 Author Report Share Posted January 5, 2020 On the user side On 12/29/2019 at 1:20 PM, web541 said: Which list of flights, the user side cards or the admin side? And what subfleet information are you looking for? If the user cards then try this: After this line: https://github.com/nabeelio/phpvms/blob/dev/resources/views/layouts/default/flights/table.blade.php#L57 Add this: <h5 class="pt-2 mb-0">Available Subfleets:</h5> @if($flight->subfleets) @foreach($flight->subfleets as $subfleet) <span class="title">FLEET: </span> {{ $subfleet->type }} - {{ $subfleet->name }} <br /> @endforeach @endif This worked perfectly, thank you so much! 1 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 6, 2020 Administrators Report Share Posted January 6, 2020 I love how easy Laravel makes this Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.