diff --git a/.gitignore b/.gitignore index b0cc8e5ab..eae684d0e 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ favicon.ico favicon.gif /public/favicon.gif .php-cs-fixer.cache +/.vs +/.env diff --git a/app/Console/Commands/UpdateSoloCerts.php b/app/Console/Commands/UpdateSoloCerts.php index c182cd0dd..474425be2 100644 --- a/app/Console/Commands/UpdateSoloCerts.php +++ b/app/Console/Commands/UpdateSoloCerts.php @@ -90,7 +90,7 @@ public function handle() { foreach ($certs as $cert) { if ($cert->expiration <= $today && $cert->status == 0) { - Mail::to('ta@ztlartcc.org')->send(new SoloCertExpiration($cert)); + Mail::to(config('artcc.email_ta'))->send(new SoloCertExpiration($cert)); $cert->status = 1; $user = User::find($cert->cid); diff --git a/app/Http/Controllers/ControllerDash.php b/app/Http/Controllers/ControllerDash.php index be9427419..967dfa5c9 100644 --- a/app/Http/Controllers/ControllerDash.php +++ b/app/Http/Controllers/ControllerDash.php @@ -605,7 +605,7 @@ public function reportBug(Request $request) { $error = $request->error; $desc = $request->desc; - Mail::to('wm@ztlartcc.org')->send(new BugReport($reporter, $url, $error, $desc)); + Mail::to(config('artcc.email_wm'))->send(new BugReport($reporter, $url, $error, $desc)); return redirect()->back()->with(SessionVariables::SUCCESS->value, 'Your bug has been reported successfully.'); } diff --git a/app/Http/Controllers/FrontController.php b/app/Http/Controllers/FrontController.php index 14eaa0237..29b745491 100644 --- a/app/Http/Controllers/FrontController.php +++ b/app/Http/Controllers/FrontController.php @@ -250,7 +250,7 @@ public function storeVisit(Request $request) { if (User::find($request->cid) !== null) { $user = User::find($request->cid); if ($user->status == 1) { - return redirect()->back()->with(SessionVariables::ERROR->value, 'Unable to apply as a visitor - you are already listed as a controller on our roster. If you believe this is in error, contact the ZTL DATM at datm@ztlartcc.org'); + return redirect()->back()->with(SessionVariables::ERROR->value, 'Unable to apply as a visitor - you are already listed as a controller on our roster. If you believe this is in error, contact the ZTL DATM at ' . config('artcc.email_datm')); } } @@ -282,7 +282,7 @@ public function storeVisit(Request $request) { ); } - Mail::to($visit->email)->cc('datm@ztlartcc.org')->send(new VisitorMail('new', $visit)); + Mail::to($visit->email)->cc(config('artcc.email_datm'))->send(new VisitorMail('new', $visit)); return redirect('/')->with(SessionVariables::SUCCESS->value, 'Thank you for your interest in the ZTL ARTCC! Your visit request has been submitted.'); } else { @@ -413,7 +413,7 @@ public function staffRequest(Request $request) { $time = $request->time; $exp = $request->additional_information; - Mail::to('ec@ztlartcc.org')->send(new ReqStaffing($name, $email, $org, $date, $time, $exp)); + Mail::to(config('artcc.email_ec'))->send(new ReqStaffing($name, $email, $org, $date, $time, $exp)); return redirect('/')->with(SessionVariables::SUCCESS->value, 'The staffing request has been delivered to the appropiate parties successfully. You should expect to hear back soon.'); } diff --git a/app/Http/Controllers/MerchStore.php b/app/Http/Controllers/MerchStore.php index e3d84646a..c9f3f384c 100644 --- a/app/Http/Controllers/MerchStore.php +++ b/app/Http/Controllers/MerchStore.php @@ -12,7 +12,7 @@ class MerchStore extends Controller { public function viewStore() { $merch_items = Merch::get(); - $merch_email = Config::get('ztl.merch_store_email'); + $merch_email = Config::get('artcc.merch_store_email'); return view('dashboard.controllers.merch_store', compact('merch_items', 'merch_email')); } diff --git a/app/Http/Controllers/PilotPassportController.php b/app/Http/Controllers/PilotPassportController.php index d3f8d0318..76a81a620 100644 --- a/app/Http/Controllers/PilotPassportController.php +++ b/app/Http/Controllers/PilotPassportController.php @@ -56,7 +56,7 @@ public function enroll(Request $request) { $valid_enrollment = false; } if (!$valid_enrollment) { - return redirect(route('pilotPassportIndex'))->with(['tab' => 'enrollments'])->with(SessionVariables::ERROR->value, 'Enrollment data invalid. Please contact wm@ztlartcc.org for assistance.'); + return redirect(route('pilotPassportIndex'))->with(['tab' => 'enrollments'])->with(SessionVariables::ERROR->value, 'Enrollment data invalid. Please contact ' . config('artcc.email_wm') . ' for assistance.'); } $enrollment = PilotPassportEnrollment::where('cid', $pilot->id)->where('challenge_id', $request->challenge_id)->get(); if ($enrollment->isEmpty()) { @@ -116,7 +116,7 @@ public static function fetchRecentPilotAccomplishments() { public function generateCertificate($id) { $award = PilotPassportAward::find($id); - $error_html = '

An error has occured - please contact wm@ztlartcc.org

'; + $error_html = '

An error has occured - please contact ' . config('artcc.email_wm') . '

'; if (!$award) { return pdf()->html($error_html)->download(); } diff --git a/app/Http/Controllers/TrainingDash.php b/app/Http/Controllers/TrainingDash.php index 3de4f781b..0a5b60b52 100644 --- a/app/Http/Controllers/TrainingDash.php +++ b/app/Http/Controllers/TrainingDash.php @@ -423,11 +423,11 @@ public function addStudentComments(Request $request, $id) { $ticket->student_comments = $request->student_comments; $ticket->save(); - $mailer = Mail::to('ta@ztlartcc.org'); + $mailer = Mail::to(config('artcc.email_ta')); $trainer = User::find($ticket->trainer_id); if ($trainer) { if ($trainer->user_status[$trainer->status] == 'Active' && $trainer->isAbleTo('train')) { - $mailer = Mail::to($trainer->email)->cc('training@ztlartcc.org'); + $mailer = Mail::to($trainer->email)->cc(config('artcc.email_training')); } } $mailer->send(new StudentComment($trainer->full_name, $ticket->id)); @@ -524,7 +524,7 @@ public function assignRecommendation(Request $request, $id) { $ins = User::find($ots->ins_id); $controller = User::find($ots->controller_id); - Mail::to($ins->email)->cc('training@ztlartcc.org')->send(new OtsAssignment($ots, $controller, $ins)); + Mail::to($ins->email)->cc(config('artcc.email_training'))->send(new OtsAssignment($ots, $controller, $ins)); Audit::newAudit(' assigned an OTS for ' . User::find($ots->controller_id)->full_name . ' to ' . User::find($ots->ins_id)->full_name . '.'); @@ -696,7 +696,7 @@ public static function generateTrainingStats($year, $month, $dataType) { $trainerStats['S3'] = $trainerSesh->whereIn('position', $position_types_by_rating['S3'])->count(); $trainerStats['C1'] = $trainerSesh->whereIn('position', $position_types_by_rating['C1'])->count(); $trainerStats['Other'] = $trainerSesh->whereIn('position', $position_types_by_rating['OTHER'])->count(); - if ($trainerStats['total'] < Config::get('ztl.trainer_min_sessions')) { + if ($trainerStats['total'] < Config::get('artcc.trainer_min_sessions')) { $trainingStaffBelowMins++; } $trainerSessions[] = $trainerStats; @@ -903,7 +903,7 @@ private function saveNewTicket(Request $request, $id) { $controller = User::find($ticket->controller_id); $trainer = User::find($ticket->trainer_id); - Mail::to($controller->email)->cc('training@ztlartcc.org')->send(new TrainingTicketMail($ticket, $controller, $trainer)); + Mail::to($controller->email)->cc(config('artcc.email_training'))->send(new TrainingTicketMail($ticket, $controller, $trainer)); if ($request->ots == 1) { $ots = new Ots; diff --git a/app/Livewire/TaStatsMonthly.php b/app/Livewire/TaStatsMonthly.php index ddbeef1b6..ee4b35d4a 100644 --- a/app/Livewire/TaStatsMonthly.php +++ b/app/Livewire/TaStatsMonthly.php @@ -44,7 +44,7 @@ public function render() { $this->dispatch('changeSelectedMonth', inclusive_dates: $this->inclusive_dates, graph_data: $this->graph_data); $this->skipRender(); } - $this->trainer_min_sessions = Config::get('ztl.trainer_min_sessions'); + $this->trainer_min_sessions = Config::get('trainer.trainer_min_sessions'); $this->lookback_months(); return view('livewire.ta-stats-monthly'); } diff --git a/app/Mail/PilotPassportMail.php b/app/Mail/PilotPassportMail.php index f9ade11d0..773992dfd 100644 --- a/app/Mail/PilotPassportMail.php +++ b/app/Mail/PilotPassportMail.php @@ -33,7 +33,7 @@ public function envelope(): Envelope { return new Envelope( from: new ZTLAddress('events', 'vZTL ARTCC Events Department'), replyTo: [ - new Address('wm@ztlartcc.org', 'vZTL ARTCC WM') + new Address(config('artcc.email_wm'), 'vZTL ARTCC WM') ], subject: $this::$SUBJECTS[$this->type] ); diff --git a/app/Mail/VisitorMail.php b/app/Mail/VisitorMail.php index 020335d09..c207b277f 100644 --- a/app/Mail/VisitorMail.php +++ b/app/Mail/VisitorMail.php @@ -31,7 +31,7 @@ public function __construct(public $type, public $visitor) { * Get the message envelope. */ public function envelope(): Envelope { - $datm = new Address('datm@ztlartcc.org', 'vZTL ARTCC DATM'); + $datm = new Address(config('artcc.email_datm'), 'vZTL ARTCC DATM'); return new Envelope( from: new ZTLAddress('visitors', 'vZTL ARTCC Visiting Department'), replyTo: [ $datm ], diff --git a/config/artcc.php b/config/artcc.php new file mode 100644 index 000000000..2a1511b35 --- /dev/null +++ b/config/artcc.php @@ -0,0 +1,52 @@ + env('ARTCC_ID', 'ZTL'), + // Facility short name + 'short_name' => env('ARTCC_SHORT_NAME', 'vZTL'), + 'long_name' => env('ARTCC_LONG_NAME', 'Atlanta ARTCC'), + + // Set staff email addresses (used in staff view and email templates) + 'email_atm' => env('ARTCC_EMAIL_ATM', 'atm@ztlartcc.org'), + 'email_datm' => env('ARTCC_EMAIL_DATM', 'datm@ztlartcc.org'), + 'email_ta' => env('ARTCC_EMAIL_TA', 'ta@ztlartcc.org'), + 'email_ec' => env('ARTCC_EMAIL_EC', 'ec@ztlartcc.org'), + 'email_fe' => env('ARTCC_EMAIL_FE', 'fe@ztlartcc.org'), + 'email_wm' => env('ARTCC_EMAIL_WM', 'wm@ztlartcc.org'), + 'email_test' =>env('ARTCC_EMAIL_TEST', 'test@ztlartcc.org'), + + // Training tickets are CC'd to this address + 'email_training' => env('ARTCC_EMAIL_TRAINING', 'training@ztlartcc.org'), + + // Placeholder email address for forms + 'email_placeholder' => env('ARTCC_EMAIL_PLACEHOLDER', 'example@ztlartcc.org'), + + // Merch store email + 'email_merch_store' => env('ARTCC_MERCH_STORE_EMAIL', 'datm@ztlartcc.org'), + + // Number of sessions training staff are required to provide per month + 'trainer_min_sessions' => env('ZTL_TRAINER_MONTHLY_SESSIONS', 3), + + // Solo cert facilities (3-letter ID) + 'solo_twr' => env('ARTCC_SOLO_TWR', 'BHM'), + 'solo_app' => env('ARTCC_SOLO_APP', 'BHM'), + 'solo_ctr' => env('ARTCC_SOLO_CTR', 'ZTL'), + + // Teamspeak (adds teamspeak info views and links) + 'teamspeak' => env('ARTCC_TS', true), + 'teamspeak_server' => env('ARTCC_TS_SERVER', 'ts.ztlartcc.org'), + 'teamspeak_port' => env('ARTCC_TS_PORT', '9987'), + + // IDS Link (adds a link for IDS to the sidebar nav menu) + 'ids' => env('ARTCC_IDS', true), + 'ids_name' => env('ARTCC_IDS_NAME', 'vIDS'), + 'ids_link' => env('ARTCC_IDS_LINK', 'https://ids.ztlartcc.org'), + +]; diff --git a/config/ztl.php b/config/ztl.php deleted file mode 100644 index 0020bc489..000000000 --- a/config/ztl.php +++ /dev/null @@ -1,6 +0,0 @@ - env('ZTL_TRAINER_MONTHLY_SESSIONS', 3), - 'merch_store_email' => env('ZTL_MERCH_STORE_EMAIL', 'datm@ztlartcc.org'), -]; diff --git a/resources/views/dashboard/admin/email/send.blade.php b/resources/views/dashboard/admin/email/send.blade.php index 7ff128392..772f2bf5f 100644 --- a/resources/views/dashboard/admin/email/send.blade.php +++ b/resources/views/dashboard/admin/email/send.blade.php @@ -25,7 +25,7 @@
- {{ html()->text('reply_to', null)->placeholder('ex. youremail@ztlartcc.org (Required)')->class(['form-control']) }} + {{ html()->text('reply_to', null)->placeholder('ex. ' . config('artcc.email_placeholder') . ' (Required)')->class(['form-control']) }}
diff --git a/resources/views/dashboard/admin/trainer_feedback.blade.php b/resources/views/dashboard/admin/trainer_feedback.blade.php index 59b9e1440..a3ba09384 100644 --- a/resources/views/dashboard/admin/trainer_feedback.blade.php +++ b/resources/views/dashboard/admin/trainer_feedback.blade.php @@ -329,7 +329,7 @@
- {{ html()->email('email', 'ta@ztlartcc.org')->class(['form-control']) }} + {{ html()->email('email', config('artcc.email_ta'))->class(['form-control']) }}

diff --git a/resources/views/dashboard/controllers/profile.blade.php b/resources/views/dashboard/controllers/profile.blade.php index e596b7f77..a9860bd76 100644 --- a/resources/views/dashboard/controllers/profile.blade.php +++ b/resources/views/dashboard/controllers/profile.blade.php @@ -282,7 +282,7 @@ class="fas fa-info-circle">
-

Please note that opting out of broadcast emails will only prevent you from receiving broadcast emails issued from staff. Personalized emails (both automated and issued by staff) will not be affected. If you have any questions, please contact the ATM at atm@ztlartcc.org.

+

Please note that opting out of broadcast emails will only prevent you from receiving broadcast emails issued from staff. Personalized emails (both automated and issued by staff) will not be affected. If you have any questions, please contact the ATM at config('artcc.email_atm').


-

Opting into emails will only affect the recieving of mass emails. If you elect to opt into emails, you agree to recieve mass emails sent to groups of members of the vZTL ARTCC. This selection will not affect the reception of personalized emails (both automated and issued by staff) for example, training ticket emails. If you have any questions, please contact the ATM at atm@ztlartcc.org.

+

Opting into emails will only affect the recieving of mass emails. If you elect to opt into emails, you agree to recieve mass emails sent to groups of members of the vZTL ARTCC. This selection will not affect the reception of personalized emails (both automated and issued by staff) for example, training ticket emails. If you have any questions, please contact the ATM at {{config('artcc.email_atm')}}.

You may opt out at any time by using the slider shown on the profile page.


Please check the following check boxes if you would like to continue. diff --git a/resources/views/emails/event_reminder.blade.php b/resources/views/emails/event_reminder.blade.php index b7eaeee7e..39f8c2a45 100644 --- a/resources/views/emails/event_reminder.blade.php +++ b/resources/views/emails/event_reminder.blade.php @@ -36,7 +36,7 @@ @endif
-

If you have any questions or concerns, please contact the events coordinator at ec@ztlartcc.org.

+

If you have any questions or concerns, please contact the events coordinator at {{config('artcc.email_ec')}}.


Sincerely,

diff --git a/resources/views/emails/inactive/controller.blade.php b/resources/views/emails/inactive/controller.blade.php index 0cb81c2f1..ef26ea481 100644 --- a/resources/views/emails/inactive/controller.blade.php +++ b/resources/views/emails/inactive/controller.blade.php @@ -4,7 +4,7 @@

Dear {{ $controller->full_name }},


You have not met the activity requirements within the last thirty days. As a certified controller, you are required to control, on the network, for at least 60 minutes every 30 days. You will have a 30 day grace period to meet this requirement, but after that you may be removed from the roster.

-

If you have any questions or are on an LOA, please contact the DATM at datm@ztlartcc.org.

+

If you have any questions or are on an LOA, please contact the DATM at {{config('artcc.email_datm')}}.


Sincerely,

vZTL ARTCC Staff

diff --git a/resources/views/emails/inactive/obs.blade.php b/resources/views/emails/inactive/obs.blade.php index bbcdb7d84..4d8715a3a 100644 --- a/resources/views/emails/inactive/obs.blade.php +++ b/resources/views/emails/inactive/obs.blade.php @@ -4,7 +4,7 @@

Dear {{ $controller->full_name }},


You have not met the activity requirements within the last thirty days. As an observer, you are required to take part in at least 60 minutes of training each 30 days. You will have a 30 day grace period to meet this requirement, but after that you may be removed from the roster.

-

If you have any questions or are on an LOA, please contact the DATM at datm@ztlartcc.org.

+

If you have any questions or are on an LOA, please contact the DATM at {{config('artcc.email_datm')}}.


Sincerely,

vZTL ARTCC Staff

diff --git a/resources/views/emails/inactive/student.blade.php b/resources/views/emails/inactive/student.blade.php index 87abafeba..0bb9cce43 100644 --- a/resources/views/emails/inactive/student.blade.php +++ b/resources/views/emails/inactive/student.blade.php @@ -4,7 +4,7 @@

Dear {{ $controller->full_name }},


You have not met the activity requirements within the last thirty days. As a student, you are required to take part in at least 60 minutes of training each 30 days. You will have a 30 day grace period to meet this requirement, but after that you may be removed from the roster.

-

If you have any questions or are on an LOA, please contact the DATM at datm@ztlartcc.org.

+

If you have any questions or are on an LOA, please contact the DATM at {{config('artcc.email_datm')}}.


Sincerely,

vZTL ARTCC Staff

diff --git a/resources/views/emails/new_feedback.blade.php b/resources/views/emails/new_feedback.blade.php index 0cc21b737..c73520f49 100644 --- a/resources/views/emails/new_feedback.blade.php +++ b/resources/views/emails/new_feedback.blade.php @@ -19,7 +19,7 @@ @endif
-

If you have any thoughts/comments, please email the DATM at datm@ztlartcc.org.

+

If you have any thoughts/comments, please email the DATM at {{config('artcc.email_datm')}}.


Sincerely,

diff --git a/resources/views/emails/new_trainer_feedback.blade.php b/resources/views/emails/new_trainer_feedback.blade.php index 508b32931..580ac8867 100644 --- a/resources/views/emails/new_trainer_feedback.blade.php +++ b/resources/views/emails/new_trainer_feedback.blade.php @@ -20,7 +20,7 @@ @endif
-

If you have any thoughts/comments, please email the TA at ta@ztlartcc.org.

+

If you have any thoughts/comments, please email the TA at {{config('artcc.email_ta')}}.


Sincerely,

diff --git a/resources/views/emails/ots_assignment.blade.php b/resources/views/emails/ots_assignment.blade.php index e2a006916..cbb0c0016 100644 --- a/resources/views/emails/ots_assignment.blade.php +++ b/resources/views/emails/ots_assignment.blade.php @@ -2,7 +2,7 @@ @section('content')

Dear {{ $ins->fullname }},

-

You have been assigned an OTS. The details are listed below. Please reply to this email, or email the controller separately in order to schedule the OTS exam. If you have any questions, please contact the TA at ta@ztlartcc.org.

+

You have been assigned an OTS. The details are listed below. Please reply to this email, or email the controller separately in order to schedule the OTS exam. If you have any questions, please contact the TA at {{config('artcc.email_ta')}}.


Controller Name: {{ $ots->controller_name }}

Position: {{ $ots->position_name }}

diff --git a/resources/views/emails/pilot_passport/enroll.blade.php b/resources/views/emails/pilot_passport/enroll.blade.php index fd171bec0..2c7960d54 100644 --- a/resources/views/emails/pilot_passport/enroll.blade.php +++ b/resources/views/emails/pilot_passport/enroll.blade.php @@ -11,7 +11,7 @@ email confirmation with each qualifying visit (emails may be delayed up to 5 minutes).

If you did not enroll in this program or otherwise believe this email to be in error, please contact us at: - wm@ztlartcc.org.

+ {{config('artcc.email_wm')}}.

Thank you!
- vZTL Staff

@endsection diff --git a/resources/views/emails/pilot_passport/phase_complete.blade.php b/resources/views/emails/pilot_passport/phase_complete.blade.php index 6b5d226a9..a214a5d54 100644 --- a/resources/views/emails/pilot_passport/phase_complete.blade.php +++ b/resources/views/emails/pilot_passport/phase_complete.blade.php @@ -11,7 +11,7 @@

If you did not enroll in this program or otherwise believe this email to be in error, please contact us at: - wm@ztlartcc.org.

+ {{config('artcc.email_wm')}}.

Thank you!
- vZTL Staff

@endsection diff --git a/resources/views/emails/pilot_passport/visited_airfield.blade.php b/resources/views/emails/pilot_passport/visited_airfield.blade.php index ac4a77a6a..0c61319ad 100644 --- a/resources/views/emails/pilot_passport/visited_airfield.blade.php +++ b/resources/views/emails/pilot_passport/visited_airfield.blade.php @@ -11,7 +11,7 @@ @endif

If you did not enroll in this program or otherwise believe this email to be in error, please contact us at: - wm@ztlartcc.org.

+ {{config('artcc.email_wm')}}.

Thank you!
- vZTL Staff

@endsection diff --git a/resources/views/emails/realops/cancel_bid.blade.php b/resources/views/emails/realops/cancel_bid.blade.php index 0e32ce98e..0709e57a4 100644 --- a/resources/views/emails/realops/cancel_bid.blade.php +++ b/resources/views/emails/realops/cancel_bid.blade.php @@ -3,5 +3,5 @@ @section('content')

Dear {{ $pilot->full_name }},

-

This is an automated email to confirm that you have cancelled your assignment for Realops flight {{ $flight->flight_number }}. If you believe this is a mistake, you can rebid for the flight on the Realops Dashboard if bidding is still open, or you can send an email to ec@ztlartcc.org.

+

This is an automated email to confirm that you have cancelled your assignment for Realops flight {{ $flight->flight_number }}. If you believe this is a mistake, you can rebid for the flight on the Realops Dashboard if bidding is still open, or you can send an email to {{config('artcc.email_ec')}}.

@endsection diff --git a/resources/views/emails/realops/flight_cancelled.blade.php b/resources/views/emails/realops/flight_cancelled.blade.php index b94a06c3c..c12ed0168 100644 --- a/resources/views/emails/realops/flight_cancelled.blade.php +++ b/resources/views/emails/realops/flight_cancelled.blade.php @@ -3,5 +3,5 @@ @section('content')

Dear {{ $pilot->full_name }},

-

This is an automated email to inform you that Realops flight {{ $flight_number }} has been cancelled. If you believe this is a mistake, you can rebid for the flight on the Realops Dashboard if bidding is still open, or you can send an email to ec@ztlartcc.org.

+

This is an automated email to inform you that Realops flight {{ $flight_number }} has been cancelled. If you believe this is a mistake, you can rebid for the flight on the Realops Dashboard if bidding is still open, or you can send an email to {{config('artcc.email_ec')}}.

@endsection diff --git a/resources/views/emails/realops/removed_from_flight.blade.php b/resources/views/emails/realops/removed_from_flight.blade.php index d885a0028..9b1215070 100644 --- a/resources/views/emails/realops/removed_from_flight.blade.php +++ b/resources/views/emails/realops/removed_from_flight.blade.php @@ -3,5 +3,5 @@ @section('content')

Dear {{ $pilot->full_name }},

-

This is an automated email to inform you that you have been removed from Realops flight {{ $flight->flight_number }}. If you believe this is a mistake, you can rebid for the flight on the Realops Dashboard if bidding is still open, or you can send an email to ec@ztlartcc.org.

+

This is an automated email to inform you that you have been removed from Realops flight {{ $flight->flight_number }}. If you believe this is a mistake, you can rebid for the flight on the Realops Dashboard if bidding is still open, or you can send an email to {{config('artcc.email_ec')}}.

@endsection diff --git a/resources/views/emails/student_comment.blade.php b/resources/views/emails/student_comment.blade.php index 942922ab7..827ded5f3 100644 --- a/resources/views/emails/student_comment.blade.php +++ b/resources/views/emails/student_comment.blade.php @@ -6,7 +6,7 @@

One of your students has entered a comment on their training ticket. You can view the comment here: Training Ticket.


-

If you have any thoughts/comments, please email the TA at ta@ztlartcc.org.

+

If you have any thoughts/comments, please email the TA at {{config('artcc.email_ta')}}.


Sincerely,

diff --git a/resources/views/emails/training_reminder.blade.php b/resources/views/emails/training_reminder.blade.php index 5db9be8fd..984e24550 100644 --- a/resources/views/emails/training_reminder.blade.php +++ b/resources/views/emails/training_reminder.blade.php @@ -6,7 +6,7 @@

This email is to remind you about your {{ $session_type }} appointment with {{ $trainer_full_name }} on {{ $appointment_date_time }}. As it is now within 24 hours, please contact your mentor directly to cancel or reschedule, or you may be marked a no-show.


-

This email is automated. If you believe you have received this email in error, please contact the ZTL Webmaster at wm@ztlartcc.org.

+

This email is automated. If you believe you have received this email in error, please contact the ZTL Webmaster at {{config('artcc.email_wm')}}.


Sincerely,

diff --git a/resources/views/emails/training_ticket.blade.php b/resources/views/emails/training_ticket.blade.php index b4df1a941..07083631b 100644 --- a/resources/views/emails/training_ticket.blade.php +++ b/resources/views/emails/training_ticket.blade.php @@ -28,7 +28,7 @@

If you would like to submit comments to be included in your training ticket, you can do that by going to https://www.ztlartcc.org/dashboard/controllers/ticket/{{ $ticket->id }} or by viewing the ticket from your profile page on the controller dashboard. Please note that these comments are viewable by all the training staff and once they are submitted, they cannot be changed.

-

If you believe there are any errors, please contact the training administrator at ta@ztlartcc.org.

+

If you believe there are any errors, please contact the training administrator at {{config('artcc.email_ta')}}.

Best regards,

ZTL Training Staff

diff --git a/resources/views/emails/visit/accept.blade.php b/resources/views/emails/visit/accept.blade.php index 338d56dda..1bec45f28 100644 --- a/resources/views/emails/visit/accept.blade.php +++ b/resources/views/emails/visit/accept.blade.php @@ -6,7 +6,7 @@

You can find all the information for the various facilities within the ARTCC under the files page on the website, www.ztlartcc.org.


TeamSpeak 3 is used for all controller communications. The address for the server we use is ts.ztlartcc.org and there is no password.


Most visitors will be certified to control unrestricted fields through their current rating. It is highly recommended that you review the SOPs and LOAs located on the website prior to logging onto the network.


-

Once again, congratulations on being accepted as a visitor in Atlanta and we hope to see you on the network soon! If you have any questions, feel free to email the DATM at datm@ztlartcc.org.


+

Once again, congratulations on being accepted as a visitor in Atlanta and we hope to see you on the network soon! If you have any questions, feel free to email the DATM at {{config('artcc.email_datm')}}.


Best regards,

ZTL Staff

diff --git a/resources/views/emails/visit/new.blade.php b/resources/views/emails/visit/new.blade.php index c5167d388..b76772674 100644 --- a/resources/views/emails/visit/new.blade.php +++ b/resources/views/emails/visit/new.blade.php @@ -10,7 +10,7 @@ SOPs and LOAs that can be found on the ZTL Website. Some questions will ensure you understand the rules for being a member at ZTL. The answers to these questions can be found in our Facility Administrative Policy.

You will have seven (7) days to complete the exams and you must pass each with a score of 80% or better. If you have any questions or - concerns, please email the DATM at datm@ztlartcc.org.

+ concerns, please email the DATM at {{config('artcc.email_datm')}}.

Best regards,

ZTL Staff

@endsection diff --git a/resources/views/emails/visit/reject.blade.php b/resources/views/emails/visit/reject.blade.php index 2b7f106dc..89c86a7b4 100644 --- a/resources/views/emails/visit/reject.blade.php +++ b/resources/views/emails/visit/reject.blade.php @@ -5,7 +5,7 @@

{!! nl2br(e($visitor->reject_reason)) !!}

-

If you have any questions, please contact the DATM at datm@ztlartcc.org.

+

If you have any questions, please contact the DATM at {{config('artcc.email_datm')}}.


Best regards,

diff --git a/resources/views/emails/visit/remove.blade.php b/resources/views/emails/visit/remove.blade.php index 4c5fa22db..05a8257a4 100644 --- a/resources/views/emails/visit/remove.blade.php +++ b/resources/views/emails/visit/remove.blade.php @@ -4,7 +4,7 @@

Dear {{ $visitor->full_name }},


This email is to inform you that you have been removed from the ZTL Visiting Roster. The causes for removal can be found in ZTL ARTCC Facility Administrative Policy 7230.1B Chapter 3-5.

-

If you are still unsure of the reason for your removal, please contact the DATM at datm@ztlartcc.org.

+

If you are still unsure of the reason for your removal, please contact the DATM at {{config('artcc.email_datm')}}.


Sincerely,

vZTL ARTCC Staff

diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php index 2e8e081e2..2679ba02e 100644 --- a/resources/views/errors/500.blade.php +++ b/resources/views/errors/500.blade.php @@ -36,7 +36,7 @@ function safeErrorMessage($exception) {
-

Something just happened that wasn't supposed to happen and we're really not sure why! Please kindly report this error to wm@ztlartcc.org with descriptive steps to reproduce and a link to the page. Thank you for your help!

+

Something just happened that wasn't supposed to happen and we're really not sure why! Please kindly report this error to {{config('artcc.email_wm')}} with descriptive steps to reproduce and a link to the page. Thank you for your help!


Please include the following message in your email (if applicable):

{{ safeErrorMessage($exception) }}

diff --git a/resources/views/layouts/email.blade.php b/resources/views/layouts/email.blade.php index 2a23709e1..0a7fb3020 100644 --- a/resources/views/layouts/email.blade.php +++ b/resources/views/layouts/email.blade.php @@ -8,6 +8,6 @@ ---------- @yield('footer')

For entertainment purposes only. Do not use for real world purposes. Part of the VATSIM Network.

-

If you believe that you have received this email in error, please contact the vZTL ARTCC Webmaster at wm@ztlartcc.org.

+

If you believe that you have received this email in error, please contact the vZTL ARTCC Webmaster at {{config('artcc.email_wm')}}.

diff --git a/resources/views/site/pilot_passport.blade.php b/resources/views/site/pilot_passport.blade.php index 6c9da9a9b..ecb09ad7f 100644 --- a/resources/views/site/pilot_passport.blade.php +++ b/resources/views/site/pilot_passport.blade.php @@ -76,7 +76,7 @@
Feedback?

Want to tell us what you think about this program? We're always looking for feedback. Send us an email at - wm@ztlartcc.org or visit our + {{config('artcc.email_wm')}} or visit our pilot feedback page.

@@ -132,9 +132,9 @@ @else challenge_id] = $enrollment->title; - } + foreach ($enrollments as $enrollment) { + $enrolled_challenges[$enrollment->challenge_id] = $enrollment->title; + } ?> {{ html()->form()->route('pilotPassportIndex')->open() }} {{ html()->hidden('tab', 'passport_book') }} diff --git a/resources/views/site/privacy.blade.php b/resources/views/site/privacy.blade.php index eb8943393..54875b069 100644 --- a/resources/views/site/privacy.blade.php +++ b/resources/views/site/privacy.blade.php @@ -73,7 +73,7 @@

Opt Out

Given the nature of our services, it is not possible to opt out of data collection and use our services. But if you desire to opt out and no longer desire to use our services, we will purge all information we have collected upon written request.

The first step is to deactivate and request VATSIM to purge your data. Please head to https://membership.vatsim.net to do so.

-

After VATSIM has purged your data, please send a written request to Virtual Atlanta ARTCC's Air Traffic Manager by emailing atm@ztlartcc.org. It is a manual process, so please allow up to 30 days for information to be purged. You will receive an email response once the data has been purged.

+

After VATSIM has purged your data, please send a written request to Virtual Atlanta ARTCC's Air Traffic Manager by emailing {{config('artcc.email_atm')}}. It is a manual process, so please allow up to 30 days for information to be purged. You will receive an email response once the data has been purged.

Note Virtual Atlanta ARTCC cannot guarantee that information collected by parties outside of Virtual Atlanta ARTCC will be purged in the process.

diff --git a/resources/views/site/staff.blade.php b/resources/views/site/staff.blade.php index cc7207a72..8f0751890 100644 --- a/resources/views/site/staff.blade.php +++ b/resources/views/site/staff.blade.php @@ -18,7 +18,7 @@ {{ $s->staff_public_name }} @endforeach @endif -   +  

The Air Traffic Manager is responsible to the Deputy Director - Air Traffic Services for the overall administration of the ARTCC. The ATM is responsible for appointing ARTCC staff members and delegation of authorities.

@@ -33,7 +33,7 @@ {{ $s->staff_public_name }} @endforeach @endif -   +  

The Deputy Air Traffic Manager reports to the Air Traffic Manager and acts as Air Traffic Manager in their absence. The Deputy Air Traffic Manager is jointly responsible for administration and accuracy of the roster including visiting controllers.

@@ -48,7 +48,7 @@ {{ $s->staff_public_name }} @endforeach @endif -   +  

The Training Administrator works with the Air Traffic Manager and Deputy Air Traffic Manager to build training programs, establish training procedures and recommend instructors and mentors. The Training Administrator works with Instructors and Mentors to develop knowledge and mentors to help develop teaching ability.

@@ -79,7 +79,7 @@ {{ $s->staff_public_name }} @endforeach @endif -   +  

Responsible to the Air Traffic Manager for the operation and maintenance of all IT services including, but not limited to, the Website, TeamSpeak and Email services and any other tasking as directed.

@@ -94,7 +94,7 @@ {{ $s->staff_public_name }} @endforeach @endif -   +  

The Events Coordinator is responsible to the Deputy Air Traffic Manager for the coordination, planning, dissemination and creation of events to neighboring facilities, virtual airlines, VATUSA and VATSIM.

@@ -124,7 +124,7 @@ {{ $s->staff_public_name }} @endforeach @endif -   +  

The Facility Engineer is responsible to the Senior Staff for creation of sector files, radar client files, training scenarios, Letters of Agreement, Memorandums of Understanding, Standard Operating Procedures and other requests as directed and submission to the Air Traffic Manager for approval prior to dissemination.

diff --git a/resources/views/site/teamspeak.blade.php b/resources/views/site/teamspeak.blade.php index a2e11a981..b975ef403 100644 --- a/resources/views/site/teamspeak.blade.php +++ b/resources/views/site/teamspeak.blade.php @@ -23,9 +23,9 @@
  • All users must join the TeamSpeak using the name associated with their VATSIM account.
  • Anonymous users will be kicked with a warning and banned upon reconnecting anonymously.
  • TeamSpeak permissions are required to move within the server. Please contact a staff member to receive appropriate permissions. (If you are not a member of the VATUSA region, please provide your CID for rating verification).
  • -
  • Although streaming while controlling is encouraged, you may not stream the audio from the ZTL TeamSpeak server for the privacy of other controllers. Streaming TeamSpeak audio requires the written permission of the ATM (Contact the ATM at atm@ztlartcc.org for permission). Streaming audio without permission from the ATM may result in loss of TeamSpeak privileges.
  • +
  • Although streaming while controlling is encouraged, you may not stream the audio from the ZTL TeamSpeak server for the privacy of other controllers. Streaming TeamSpeak audio requires the written permission of the ATM (Contact the ATM at {{config('artcc.email_atm')}} for permission). Streaming audio without permission from the ATM may result in loss of TeamSpeak privileges.
  • Controlling rooms are limited to controlling only. If a controller asks for you to leave, please do so.
  • -
  • Use of the TeamSpeak is a privilege and can be revoked by a staff member at any time and for any reason. To appeal TeamSpeak bans, please contact the DATM at datm@ztlartcc.org.
  • +
  • Use of the TeamSpeak is a privilege and can be revoked by a staff member at any time and for any reason. To appeal TeamSpeak bans, please contact the DATM at {{config('artcc.email_datm')}}.
  • Please review the TeamSpeak and Discord Policy for the full list of rules prior to joining the TeamSpeak server.

    @@ -52,7 +52,7 @@
    -

    If you have any additional questions, please contact either the ATM or DATM at atm@ztlartcc.org or datm@ztlartcc.org respectively.

    +

    If you have any additional questions, please contact either the ATM or DATM at {{config('artcc.email_atm')}} or {{config('artcc.email_datm')}} respectively.

    @endsection diff --git a/tests/Authentication.php b/tests/Authentication.php index 012ceb8cc..a16633af4 100644 --- a/tests/Authentication.php +++ b/tests/Authentication.php @@ -15,7 +15,7 @@ public static function checkTestUser(): void { $u->id = Config::get('vatsim.auth_dev_credential'); $u->fname = 'Test'; $u->lname = 'User'; - $u->email = 'test@ztlartcc.org'; + $u->email = config('artcc.email_test'); $u->rating_id = 7; $u->visitor = 0; $u->status = 1; diff --git a/tests/Browser/PilotPassportChallengeTest.php b/tests/Browser/PilotPassportChallengeTest.php index 99fa5fa6c..361fa6b3a 100644 --- a/tests/Browser/PilotPassportChallengeTest.php +++ b/tests/Browser/PilotPassportChallengeTest.php @@ -130,7 +130,7 @@ public function checkSamplePilot($with_enrollment): void { $u->id = Config::get('vatsim.auth_dev_credential'); $u->fname = 'Web'; $u->lname = 'Two'; - $u->email = 'wm@ztlartcc.org'; + $u->email = config('artcc.email_test'); $u->save(); } $this->clearSamplePilotActivity($u->id);