Jump to content

Recommended Posts

Posted (edited)

Widget Volanta Export phpVMS 7

Exports flights from phpVMS to the CSV format required by Volanta.

https://github.com/avs-code/volantaWidget

Β 

✨ Features

πŸ“… Customisable date selection.

πŸ”½ Direct download in CSV format.

πŸ“Š Flight preview in table format.

🎯 Specific format for Volanta.

πŸ”’ Only visible to the pilot themselves.

Β 

πŸ“‹ Requirements

phpVMS 7.x

PHP >=8.1

Users with registered flights (PIREPs).

Β 

πŸ“Έ Screenshots

Β 

489330275-5a382c55-0336-4cf4-a541-f6110a99d959.thumb.png.ac6b296779c6f184db89d66ee7e17204.png

Β 

489330407-0a7742c3-b5f1-49eb-9440-02b24472b280.thumb.png.244bd4619fc60d565f29a930f57053a1.png

Β 

Installing the Volanta Export Widget

Β 

πŸ“¦ Manual Installation

Β 

Step 1: Copy widget files

Copy these files to your phpVMS installation:

VolantaExportFlights.php β†’ app/Widgets/VolantaExportFlights.php

volanta_export_flights.blade.php β†’ resources/views/widgets/volanta_export_flights.blade.php

β”œβ”€β”€ app/
β”‚   └── Widgets/
β”‚       └── VolantaExportFlights.php
└── resources/
    └── views/
        └── widgets/
            └── volanta_export_flights.blade.php

Β 

Step 2: Integrate into the Profile view

Add these lines to the file:

resources/views/layouts/your_theme_name/profile/index.blade.php

Β 

    {{-- Widget Volanta Export Flights - Only visible to the user themselves --}}
@if (Auth::check() && $user->id === Auth::user()->id)
    <div class="row mt-5">
        <div class="col-sm-12">
        @widget('VolantaExportFlights')
        </div>
    </div>
@endif

Β 

Step 3: Clear cache

In administration panel->maintenance->Clear all caches.

Β 

βœ… Verification

Go to your profile (/profile).

You should see the β€˜Volanta Export Flights’ widget.

Β 

πŸ—‘οΈ Uninstallation

Delete the 2 copied files (VolantaExportFlights.php andΒ volanta_export_flights.blade.php).

Remove the lines added to the profile file (resources/views/layouts/your_theme_name/profile/index.blade.php).

Clear cache.

Β 

πŸ“‹ CSV format generated

The CSV includes these columns for Volanta:

Origin, Destination, DepartureTime, Duration, Airline, Callsign, FlightNumber, AircraftType, AircraftRegistration, Route, ArrivalTime, Distance, Fuel

Β 

βœ…Β Use

Go to your profile (/profile).

Click on Volanta Export button.

Select dates and click over Search flights.

Click again on Volanta Export button to see the results.

Click on Download CSV for Volanta.

In your Volanta app, Settings -> Data Import/Export -> Manual -> Select CSV.

Select Data to import, Aircraft and Flights, the selected data will merged in aircraft case, or duplicated in fligths case, so select only flights that you don'tΒ actually have in Volanta.

Click on Begin Import.
Β 

View File

Β 


Widget Volanta Export


Β 

Edited by ARV187
  • ARV187 changed the title to [WIDGET] Volanta Export phpVMS 7

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...