* Fix division by Zero in pireps/show.blade.php
Division by Zero caused by possible null distance fixed by adding check.
* Update show.blade.php
* Update show.blade.php
* Update show.blade.php
Final form :)
Follow up for improved SimBrief API, sending separate pax and bag weights is possible now.
Core v7 already had them separated ;)
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
* Fix dead links
Fixed one dead link, removed another one and changed load factor and variance fields to accept only numbers between 0-100.
* Update fields.blade.php
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
* Notes for Airports
Adds capability of having notes/remarks for airports, includes
* New database field
* Airport Model change
* CSV Import/Export capability for notes
* Admin Airports list page change
* Admin Airports edit page change
* Default Template Airport show page change
* Update Airport Tests
* Add the new field to source csv
* Check if the import works
* Update AirportFactory.php
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
* Backend changes
Sorting for : Airlines, Subfleets, Type Ratings and exported Flights
Blade : Added WYSIWYG editor to flight remarks/notes field
Notifications :
Mails > Added enabled/disabled settings for mails. Discord > Dashed out PirepPreFiled, re-enabled PirepStatusChanged with reduced messages
* Update PirepStatusChanged.php
* Update NotificationEventsHandler.php
* in_array fix
* Fix Discord Notifications
* Discord Notifications
Removed the pirep url from message as it is mostly private at phpvms side.
Also removed the Flight Ident from fields 'cause it is being used in the title.
Added the user avatar as thumbnail, and pirep filed message uses the airline logo as the main image.
Even though the outgoing pirep status messages are reduced, it is still possible to enable/disable them from admin settings.
Pirep Filed is always being sent (if the webhook is defined)
* StyleFix
* Update UserRepository.php
Make `name` and `e-mail` based searches with `like` for easier administration and search.
* Update search.blade.php
Remove old dashed out code
* Update index.blade.php
Add proper state selections
* Aircraft level Hub definitions
* Add ability to define a hub for an aircraft apart from its subfleet.
* Update csv import/export capability for hub_id field
* Fix importertest source csv
* Fix source csv for updating too
* Update aircraft_empty_cols.csv
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
* Update table.blade.php
* Update show.blade.php
* Update pirep_card.blade.php
* Update latest_pireps.blade.php
* Update ProfileController.php
Removed non used airports, added necessary relationships for eager loading.
Also removed `fields` 'cause it is already being loaded when `fields.field` is used. No need to query it twice.
* Update ProfileController.php
Reject button was not showing up for pending pireps due to usage of `@elseif`. Now both Accept and Reject buttons should be visible for pending pireps.
* Update search.blade.php
Used select2 for airports, fixed grid layout
* Update actions.blade.php
Fixed button placing
* Update pirep_card.blade.php
Added user id before the name, made name optional so if page hits an hard deleted user's pirep it will not fail. Also improved the flight level check.
* Update FlightController.php
Add missing $bid to flight/show so when needed Load In Acars button can be placed there too.
* Update show.blade.php
Add Load In Acars button to flight details page (flights/show.blade.php)