Haru Posted December 25, 2019 Report Posted December 25, 2019 Could anyone help me modify the blades responsible for displaying the list of flights to include the subfleet information? Quote
web541 Posted December 29, 2019 Report 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
Haru Posted January 5, 2020 Author Report 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
Administrators Nabeel Posted January 6, 2020 Administrators Report Posted January 6, 2020 I love how easy Laravel makes this Quote
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.