Nabeel Shahzad
2dbd58e59e
Merge branch 'dev' of https://github.com/nabeelio/phpvms into dev
2021-02-04 14:54:20 -05:00
Nabeel Shahzad
bf77f7dd96
Add 'phase' as response output, deprecate "status"
2021-02-04 14:54:16 -05:00
B.Fatih KOZ
5a570989de
Failsafe for SimBrief random pax generation ( #1015 )
...
* Failsafe for SimBrief random pax generation
PR fixes the problem for 0 load generation where va admins do not set load factor and variance values for their flights and also leave the general settings empty. In such cases, both loadmin and loadmax was returning 0 , resulting zero load.
Thanks @macofallico for figuring this out.
* StyleFix
2021-02-01 15:27:22 -05:00
B.Fatih KOZ
6b3207377a
Fix Profile Fields ( #1013 )
...
* Fix Profile Fields
PR fixes two issues ;
1. Profile Fields not showing up on user profile
2. Profile Fields not showing up on user.profile.edit
Profile.index was looking for "public" to be true, while controller was sending "private" and it was not boolean.
Also profile controller was not sending the fields to the blade. Both fixed and working now
* Update index.blade.php
2021-01-28 08:31:29 -05:00
B.Fatih KOZ
0d45fc287b
AwardController text correction ( #1010 )
...
Fixed the flash message texts
2021-01-26 16:31:54 -05:00
B.Fatih KOZ
4911f6799d
Fix for ACARS config download button not working #919 ( #1009 )
...
* Fix For Acars Config Download Button No Working Bug #919
PR fixes the Acars Config Download button not showing up at user profile.
Also fixes the problem where Generate New Api Key button not following user selections and generating a new key even if user clicks cancel.
* Style Fix for ? and !
Fix the typo :)
2021-01-25 16:04:43 -05:00
Nabeel S
fc7ad7eb6a
Simbrief attachment not working #1005 ( #1006 )
...
* Refactoring for Simbrief not working #1005
* Style fixes
* Update tests for new briefing URL
* Check the OFP user
* Comment out user check temporarily
2021-01-25 06:54:17 -05:00
Nabeel S
101b3261f5
Move loadmin/max into the controller ( #1003 )
2021-01-22 09:02:15 -05:00
Nabeel S
a2916bf536
Cleanup visible flight logic ( #1000 )
...
* Cleanup visible flight logic
* Add transfer_time to API response
2021-01-21 11:11:11 -05:00
Nabeel Shahzad
bd8e13e78f
Cleanup Simbrief Briefing pages
2021-01-17 21:52:22 -05:00
Nabeel Shahzad
c4dee07b7f
Cleanup flight search code
2021-01-17 21:25:44 -05:00
B.Fatih KOZ
617cea5df7
SimBrief Planning System Update ( #991 )
...
* SimBrief Planning System Update
Replaces outdated old pr.
Same improvements apply to both controller and simbrief_form.blade.
* Style Fix for SimBrief.Controller
* strict equals fix and some comments
changed equals to strict equals and put in some comments about the loadarray and manualrmk generation.
* Formatting/separate out secstohhmm
* Formatting
* Removed duplicates
We have the $wakecat, $equipment and $transponder in the controller, removed them from the blade.
Fixed a harmless typo in the IVAO Prefile DEPTIME line
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
Co-authored-by: Nabeel Shahzad <nabeel@nabeel.sh>
2021-01-17 15:59:32 -05:00
B.Fatih KOZ
a952071cb4
Subfleet Hubs / Base Airports ( #978 )
...
* Update SubFleet Model
Add hub_id for storing subfleet's main base/hub airport, define a relationship with airport model to get details of the base/hub airport when needed.
* Update Admin / SubFleetController
Added the ability to read and pass hub airports to admin view for create/edit options.
* Update Admin/SubFleets.fields.blade
Added the dropdown for adding/editing main base/hub of a subfleet.
* Add migration for the hub_id column
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
Co-authored-by: Nabeel Shahzad <nshahzad@live.com>
2021-01-17 12:43:06 -05:00
B.Fatih KOZ
a5b83185f5
Search Flights By Flight Type ( #987 )
...
Flight Controller : Added flight_type to return
Flight Repository : Made flight_type searchable and added its where criteria
Flight.Search.Blade : Added the flight types in a reasonable order as a dropdown (like schedule pax,charter pax,cargo,others)
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2021-01-17 12:23:23 -05:00
B.Fatih KOZ
984c1e0cec
SimBrief : Generate New Briefing ( #986 )
...
* Add SB Briefing Removal Route
Route will be called from simbrief.briefing.blade
* SimBrief Controller and Briefing Blade Update
Added the remove function to controller, which removes the simbrief ofp if no pirep_id is present, else it just nulls the flight_id for to be able to create a new SB pack
Also added the button to blade for it to work
* Style Fix
love styleci
2021-01-15 17:36:46 -05:00
B.Fatih KOZ
18e1d63760
Update User.php ( #968 )
...
We should be able to send the private name with the api too.
2020-12-23 11:27:01 -05:00
B.Fatih KOZ
e4972eaae3
Download screen enhancements
...
Changed the group name according to its category , aircrafts will show icao type and registration , airports will be displayed with their icao codes names and countries. Rest will be showed with their names (exp airlines)
This will result a much better look on the downloads page for end users while looking for a specific type's files (like a repaint for a B738).
2020-12-18 14:34:05 -05:00
Nabeel Shahzad
a7981c0a87
Redirect to the subfleet aircraft list on save #932
2020-11-26 13:15:56 -05:00
Nabeel Shahzad
7e4c652330
Log for avatar upload
2020-11-22 09:59:09 -05:00
Nabeel Shahzad
0fa00206ce
Make sure stdclass is returned in flight fields
2020-10-29 12:38:40 -04:00
Nabeel Shahzad
a58237b04b
Allow flight_id to be nullable
2020-10-27 21:47:19 -04:00
Nabeel S
dc7efc981c
Refactor fares inheritance #905 ( #906 )
2020-10-27 18:46:15 -04:00
Nabeel S
1be68d1e63
Flight/Subfleet fares not returning in API #899 ( #900 )
...
Make sure proper fares are returned from the API #899
2020-10-24 15:11:08 -04:00
Yash Govekar
716ba38b6d
Default values for automatically added airports #829 ( #878 )
2020-10-20 15:25:13 -04:00
Yash Govekar
5803487d51
Installing and managing modules from admin panel ( #847 )
2020-10-19 10:10:28 -04:00
Nabeel Shahzad
3b6800077f
Preload fares with PIREP
2020-10-13 18:12:14 -04:00
Nabeel Shahzad
bf878a98a4
Extra logging around fares
2020-10-13 18:10:31 -04:00
Nabeel S
dc007f6d9e
Bids are missing subfleets in API response #867 ( #868 )
...
Bids are missing subfleets in API response #867
2020-10-12 12:49:11 -04:00
Nabeel S
193fbd369d
Show awards on user profile #703 ( #866 )
2020-10-11 16:06:09 -04:00
Nabeel Shahzad
24aca506fc
Update UserController.php
2020-10-06 19:26:52 -04:00
Nabeel Shahzad
365e33f5f8
Redirect show() to edit()
2020-10-06 19:10:42 -04:00
Nabeel Shahzad
7a75e0f5ad
Fix missing $countries
2020-10-06 18:52:34 -04:00
Nabeel S
95a40d3565
Make sure proper subfleets are returned as part of the user profile #848 ( #849 )
...
* Make sure proper subfleets are returned as part of the user profile #848
* Formatting
2020-09-30 12:58:45 -04:00
Nabeel S
51186bed7c
Fix for aircraft not being detected at departure airport #781 ( #789 )
...
Aircraft not being checked/detected at departure airport #781
2020-08-17 16:44:31 -04:00
Nabeel Shahzad
d3e6d2c49a
Add extra logging for user not being at proper airport
2020-08-14 10:26:21 -04:00
Nabeel S
27316f96e8
Fix missing user fields #785 ( #786 )
2020-08-13 17:44:41 -04:00
Nabeel Shahzad
ee6982f558
Build fix/StyleCI
2020-08-12 14:46:08 -04:00
Nabeel Shahzad
4f46e75515
Check for active flag for user fields in registration
2020-08-12 14:39:00 -04:00
Nabeel Shahzad
ace7c42557
Fix typo for unique email check
2020-08-12 09:06:18 -04:00
Nabeel S
3ebf4f2924
Custom user fields #711 ( #772 )
...
Custom user fields during registration and profile edit #711
2020-08-11 17:48:51 -04:00
Nabeel S
64e4c91e7e
Check public pages for authorization #761
2020-07-10 13:11:38 -04:00
Nabeel S
420bd7e4ae
Add ability to use a link instead of a page #750 ( #757 )
...
Add ability to use a link instead of a page #750
2020-06-11 08:27:38 -04:00
Nabeel S
e4b1c238f3
Add ACARS update event #755 ( #756 )
2020-06-09 09:10:40 -04:00
Nabeel S
340f52112d
Fix public pages not showing properly #708 ( #749 )
2020-06-05 12:49:22 -04:00
Nabeel Shahzad
a443908bed
Frontend flight controller for active airlines
2020-05-23 11:48:48 -04:00
Nabeel Shahzad
c46fc9171c
Check for airline being active; fix tests for L7 #718
2020-05-23 11:45:07 -04:00
Nabeel Shahzad
5046d26032
Explicitly set theme in error handler, refactor middleware #715
2020-05-23 09:05:38 -04:00
Nabeel Shahzad
f17cd15b01
Allow on-leave user to login; show alert message and ensure status is updated #719
2020-05-23 07:20:55 -04:00
Nabeel Shahzad
09cd7adb6b
Apply theme globally; add mail templates into theme folder #715
2020-05-22 19:00:54 -04:00
Nabeel Shahzad
eb90d08761
Make sure the Updater module is enabled #707
2020-05-21 22:12:09 -04:00
Nabeel Shahzad
975ee9b88e
Fix for update showing available when one isn't #707
2020-05-21 11:50:13 -04:00
Nabeel Shahzad
b9aeda1cba
Enable logins using pilot ID #698
2020-05-16 11:52:05 -04:00
Nabeel Shahzad
6078163d75
Initial pass at Laravel 7 support #673
2020-05-15 18:20:23 -04:00
Nabeel S
9135337186
Blank/null IATA code isn't unique when added #679 ( #681 )
2020-05-03 18:23:46 -04:00
Nabeel S
99f4f3b3d8
Change currency from settings #671 ( #672 )
2020-04-26 11:55:20 -04:00
Nabeel S
03cfc648b0
Create journal when new airline is created #667 ( #670 )
2020-04-26 10:31:58 -04:00
Nabeel S
866d95c945
Check for SB being avail before filing #668 ( #669 )
2020-04-26 10:23:42 -04:00
Nabeel Shahzad
209b2790b6
Fix URL to briefing
2020-04-15 15:12:57 -04:00
Nabeel S
40a94cb9ad
Add privatized version of name #656 ( #658 )
2020-04-06 12:03:19 -04:00
Nabeel S
261984ee90
Fix PirepComment response; 201 to 200 ( #654 )
2020-04-01 01:05:09 -04:00
Nabeel Shahzad
e8037c7d69
Return full PIREP when updating
2020-03-31 23:42:33 -04:00
Nabeel Shahzad
6f05dd6c86
Add full user response to PIREP API call
2020-03-31 23:32:50 -04:00
Nabeel Shahzad
d1d243ef06
Update response objects
2020-03-31 17:26:55 -04:00
Nabeel Shahzad
e9b30fbe30
Make sure user and acars data is sent from API
2020-03-29 13:33:14 -04:00
Nabeel S
82b873c071
Domain detection failing for .co.uk, etc #647 ( #648 )
...
* Fix domain name detection #647
* Ignore page links check if no DB configured #641
2020-03-28 19:07:46 -04:00
Nabeel S
3e7d5f6195
Use theme check in all frontend routes #638 ( #645 )
2020-03-28 14:45:25 -04:00
Nabeel S
45873431e4
Add public/private pages #641 ( #644 )
...
* Add public/private pages #641
* Cleanup the form requests
2020-03-28 13:03:52 -04:00
Nabeel S
4a3ec38919
Option for SB only on bids; add the new file type #642 ( #643 )
...
Option for SB only on bids; add the new file type #642
2020-03-27 11:49:19 -04:00
Nabeel S
f3fe3a56ba
Don't return bids by default, fix user flight column #639 ( #640 )
...
Fix the user api response, don't return bids by default, fix flights column #639
2020-03-25 18:04:26 -04:00
Nabeel Shahzad
88e8ea6ed1
Add total flights
2020-03-25 17:02:48 -04:00
Nabeel Shahzad
cce575c1a6
Fix avatar/gravatar call throwing error
2020-03-25 10:58:03 -04:00
Nabeel Shahzad
eafea01e22
Fix gravatar url check
2020-03-24 18:54:04 -04:00
Nabeel Shahzad
62cea3eb0c
Load the user airline/bid ahead of time; SB XML name fix
2020-03-24 16:17:28 -04:00
Nabeel Shahzad
3f7a7d0f2e
Remove empty fields from user return, add avatar
2020-03-24 15:53:59 -04:00
Nabeel S
9e5386264f
SimBrief integration #405 ( #635 )
...
* SimBrief integration #405
* Add briefing as API response; add acars_xml field #405
2020-03-23 09:31:35 -04:00
Nabeel S
632c5782de
Add fare type for pax/cargo/mixed flights #621 ( #623 )
2020-03-06 15:10:03 -05:00
Nabeel S
16c977c769
Add load_factor and load_factor_variance to flights #352 ( #620 )
2020-03-05 20:19:12 -05:00
Nabeel S
9ed2e3f9f4
API: Flight fields are an array when empty #618 ( #619 )
...
* Ensure 'fields' field is return as an object for flights #618
* Eager loading for flight fields
2020-03-04 18:14:03 -05:00
Nabeel Shahzad
b1e745844a
Restore theme db lookup
2020-03-04 08:54:55 -05:00
Nabeel S
89481b5fa1
HTTP/HTTPS mixed content errors #612 ( #613 )
...
* Configure TrustProxies middleware
* Add trusted proxies to deps
* Replace jquery request with axios request code
* Trust current user IP for forwarded headers
* Update dependencies
* Downgrade self-updater package for PHP 7.2
2020-03-03 10:20:13 -05:00
Nabeel Shahzad
dcf9f48364
Add ID column to fare #608
2020-03-02 17:38:48 -05:00
Nabeel Shahzad
3cd6c8ee82
Fix cost/code field #608
2020-03-02 16:08:58 -05:00
Nabeel Shahzad
83a0007b7d
Return response from middleware
2020-03-02 15:58:53 -05:00
Nabeel S
b78c1b935e
Include fare information in subfleet response #608 ( #609 )
2020-03-02 15:36:01 -05:00
Nabeel S
4a14e83c88
Performance improvements #602 ( #607 )
...
* Update gitignore
* Save theme to the session to avoid a lookup #602
* Formatting
* Move routes into main service provider
* Move Observers into their own service provider
2020-03-01 15:51:00 -05:00
Nabeel S
f78d065858
Aircraft status field blank causes error #603 ( #604 )
...
* Update composer lock file
* Require aircraft status #603
2020-03-01 11:18:23 -05:00
Nabeel S
dbaac04eea
Remove airport length restrictions #590 ( #592 )
2020-02-27 11:37:05 -05:00
Nabeel S
a1d6fa17ad
Respect home hubs setting for registration #580 ( #581 )
...
Respect home hubs setting for registration #580
2020-02-23 17:21:26 -05:00
Nabeel S
0e13905098
Upstream null version; build version tags not being saved properly #575 ( #578 )
...
* Check for null version from upstream #575
* Fix for pre-release version numbering
* Move popup to right
* Split get/generate build ID #575
2020-02-23 12:23:19 -05:00
Nabeel S
9ed07da9c3
Upsert on ACARS positions #572 ( #573 )
2020-02-22 16:03:01 -05:00
Nabeel S
cc23c32db7
Route not found error for Pirep::resource() call #559 ( #565 )
2020-02-20 12:42:22 -05:00
Nabeel S
da575932a7
Add extra check for being set #560 ( #563 )
2020-02-20 11:36:26 -05:00
Nabeel S
c0fbc7d491
Missing on bids page #561 ( #562 )
2020-02-20 10:49:15 -05:00
Nabeel S
0060f794ae
Refresh theme cache on settings page load #554 ( #557 )
2020-02-18 17:10:31 -05:00
Nabeel S
b9993b9c23
Set expenses on specific flight types #348 ( #549 )
...
* Set expenses on specific flight types #348
* Formatting
* Use strict check for in_array
2020-02-12 10:40:52 -05:00
Nabeel S
f392bf1cb8
Add additional events for PIREP states #436 ( #548 )
2020-02-11 13:56:20 -05:00
Nabeel S
b36a3009dd
Cleanup Utils #467 ( #547 )
...
* Remove Utils Facade
2020-02-11 12:32:41 -05:00
Nabeel S
be6c164f03
Add checkbox to clear previous data when importing #490 ( #546 )
...
* Add checkbox to clear previous data when importing #490
2020-02-11 10:51:18 -05:00
Nabeel S
99118daad9
Auto update #449 ( #545 )
...
* Add custom repository type for updates
* Direct to self update module
* Formatting
2020-02-10 17:47:46 -05:00
Nabeel S
6b79ad7e58
Auto-update functionality #449 ( #544 )
...
* Convert tar to zip file for updater
* Add update section to maintenance
2020-02-10 12:39:59 -05:00