Skip to content

PaintSplasher/phpvms7_SPTransfer

Repository files navigation

SPTransfer v1.8

phpVMS v7 module for a Hub/Airline Transfer feature

  • Module supports only php8.2+ and laravel 11
  • Minimum required phpVMS v7 version is 7.0.2+250116.b34aed / 16. January 2025

The frontend module blade is designed for the Original and Disposable Theme. Disposable Theme (By FatihKoz)

If you are using the original Theme, you need nothing to do.

  • If you are using the Disposable Theme, just rename /modules/SPTransfer/Resources/views/hub.blade.php to /modules/SPTransfer/Resources/views/original_hub.blade.php
  • If you are using the Disposable Theme, just rename /modules/SPTransfer/Resources/views/airline.blade.php to /modules/SPTransfer/Resources/views/original_airline.blade.php and
  • /modules/SPTransfer/Resources/views/disposable_hub.blade.php to /modules/SPTransfer/Resources/views/hub.blade.php
  • /modules/SPTransfer/Resources/views/disposable_airline.blade.php to /modules/SPTransfer/Resources/views/airline.blade.php

What you get

I know, the basic system allows pilots to change their HUB/Airline from the profile settings page. But if you want a little bit more variety and interaction with your pilots and finances and want to disable the freedom of changing HUBs/Airlines every time, than this module is for you. This module provides an admin page where you can work on all requests including settings for the price per request, block time between multiple requests or Discord notifications.

Note: If you want to disable the original HUB select in pilots profile settings, you can do this in /resources/views/layouts/default/profile/fields.blade.php. The Disposable Theme provides a theme.json, just look for user_disable_hub.

Compatibility

This module is fully compatible with phpVMS v7 and will work with any other module you have installed.

Installation and Updates

Make sure the name of the folder you upload is SPTransfer.

  • Manual Install : Upload contents of the package to your phpVMS root /modules folder via ftp or your control panel's file manager

  • GitHub Clone : Clone/pull repository to your phpVMS root /modules/SPTransfer folder

  • phpVMS Module Installer : Go to admin > addons/modules , click Add New , select downloaded file then click Add Module

  • Go to admin > addons/modules enable the module

  • Go to admin > dashboard (or /update) to trigger module migrations

  • When migration is completed, go to admin > maintenance and clean application cache

Link removal

  • HUB Transfer: Add // in front of row 46 in your Providers/AppServiceProvider.php file.
  • Airline Transfer: Add // in front of row 47 in your Providers/AppServiceProvider.php file.

Admin Widget

You have the opportunity to add a widget to your admin area that will show you all pending transfer requests. To add the widget to your admin area please follow the instructions.

  • Open the file /resources/views/admin/dashboard/index.blade.php
  • Add @widget('SPTransfer::InfoBox') after @endcomponent (row 30)
  • Close and save the file

hub_transfer_pending_admin

License Compatibility & Attribution Link

Do not remove the Link that is visible in your admin center. Feel free to publish a link on your public pages if you want to.

Do you have any suggestions or need help?

Please use the GitHub issue tracker.

Release / Update Notes

11.March.25

  • Note: The routes has changed: /sptransfer/hub and /sptransfer/airline
  • Added a new feature for an airline transfer
  • Added an option when a pilot gets charged
  • Added phrases to all languages
  • phpVMS minimum version change

12.January.25

  • Languages ES, FR, IT, PT, JP, TR added
  • Smaller bootstrap 5 icon and template changes
  • Some StyleCI fixes
  • phpVMS minimum version change

29.October.24

  • Added an option for different charge types
  • Added a widget for showing pending requests

11.July.24

  • Added discord notification
  • Added reject reason
  • Added sortable table
  • Source code optimizations
  • StyleFixes

04.JULY.24

  • Initial Release
  • New default table value

About

phpVMS v7 module for a Hub/Airline Transfer feature

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •