Jump to content

How to add Subfleet to the flights view


Haru

Recommended Posts

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:&nbsp;</span>
		{{ $subfleet->type }} - {{ $subfleet->name }}
		<br />
	@endforeach
@endif

 

  • Like 2
Link to comment
Share on other sites

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:&nbsp;</span>
		{{ $subfleet->type }} - {{ $subfleet->name }}
		<br />
	@endforeach
@endif

 

This worked perfectly, thank you so much!

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...