* Custom Code for Pilot IDents
Adds a new setting to customize the ident or to use a fixed icao code in a multi airline environment.
If settings is null/empty, airline icao will be used as like before.
* StyleFix
Current GDPR compliant Private Name attribute is not compatible with multi byte strings, and when encountered it fails and returns an empty string for the name_private attribute.
`substr($last_name, 0, 1)` or just `$last_name[0]` is not multi byte compatible, therefore only solution is to use `mb_substr`.
It also supports encoding definitions like `mb_substr($last_name, 0, 1, 'UTF-8')`
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
* 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 SimBriefController.php
Fix the fares relationship which was causing trouble when a flight had assigned fares
* Fix model name used in relationship
`Simbrief` should be `SimBrief`
* 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
* Update EventServiceProvider.php
Add FareListener
* Create Fares.php
* Create FareListener.php
* Update ExpenseListener.php
* Update PirepFinanceService.php
Add listener for the fares, process them like the custom expenses and apply if there are any returned
That `if` should return `true` when both conditions are met (pirep not accepted and not rejected yet), so **AND** must be used there ;) Sorry for the trouble.
Now it works and listens more carefully.
* Update PirepService.php
Moved `$default_state` logic below `PirepFiled` event, so admins can have some flexibility to define their own default states by listening that event.
Any ideas ?
Hopefully closes#1312
* Update PirepService.php
Added the missing `$pirep->refresh();`
* Update SubfleetImporter.php
Correction to the import to include Simbrief Code
* Update SubfleetImporter.php
Added in the missing fields HUB-ID and SIMBrief as these are input on the main screen
* Update AircraftImporter.php
Part of the missing data fields in csv import export
* Update FlightImporter.php
Part of the missing fields in csv import and export
* Update AircraftImporter.php
* Update FlightImporter.php
* Update aircraft.csv
Test data amended as part of the missing csv fields
* Update subfleets.csv
Part of the fix for missing fields in csv files used for import/export
* Update flights.csv
* Update FlightImporter.php
* Update subfleets.csv
Removed unused fields
* Update FlightImporter.php
* Update FlightImporter.php
* Update FlightImporter.php
* amended for new csv file layouts
* Update GeoService.php
Replace double name usage with more valuable info
* Update GeoService.php
Changed `GS` with `Spd` 'cause it may be IAS or GS according to the phase of the flight.
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
* Update FareService.php
* Update PirepController.php
Move the logic to controller as requested
* Update FareService.php
Reverting back the service changes as requested
* StyleFix