Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
preview 2024-02
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcaussades committed Jul 23, 2024
1 parent 31b8e1b commit 1973bf0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 24 deletions.
12 changes: 12 additions & 0 deletions database/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,18 @@
"type": "Feature",
"btn": "success",
"description": "Activation link to the github on the page index"
},
{
"id": 6,
"type": "Delect",
"btn": "dark",
"description": "Delect fav BTN on the page metar"
},
{
"id": 7,
"type": "Feature",
"btn": "success",
"description": "activation pages ATC on the metar plateforme page"
}
]
}
Expand Down
9 changes: 1 addition & 8 deletions resources/views/metar/icao.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@
<h1> {{$metar["station"]}}</h1>
</div>
<div class="d-flex flex-row-reverse text-warning">
@auth
<form action="#" method="post">
<input type="hidden" name="icao" value="{{$metar["station"]}}">
<input type="hidden" name="user_id" value="{{ Auth::user()->id }}">
<button type="submit" class="btn btn-info btn-sm ms-2 disabled"><span class="d-flex align-items-center"><span class="material-symbols-outlined fill">star</span>Add to favorites</span></button>
</form>
@endauth
@guest
<form action="#" method="get">
<a href="{{ Route("ivao.connect") }}">
Expand All @@ -27,7 +20,7 @@
</form>
@endguest
@if ($pilot["outbound"]>=1 || $pilot["inbound"]>=1)
<form action="{{ Route('ivao.plateforme', ["icao" => $metar["station"], false]) }}" method="get">
<form action="{{ Route('atc', ["icao" => $metar["station"], false]) }}" method="get">
<button type="submit" class="btn btn-success btn-sm ms-2"><span class="d-flex align-items-center"><span class="material-symbols-outlined">info</span> &nbsp IVAO</span></button>
</form>
@endif
Expand Down
32 changes: 16 additions & 16 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,22 @@
})->name("pirep.all");
})->middleware(["auth:web"]);

Route::get("atc/{icao}", function (Request $request) {
$request->merge([
"icao" => $request->icao
]);
$request->validate([
"icao" => "required|size:4"
]);
$atconline = new eventController($request->icao);
$atc = $atconline->get_arrival_departure();
$metar = new metarController();
$metar = $metar->metar($request->icao);
$info_atc = null;
return view("plateforme.atc", ["icao" => $request->icao, "atc" => $atc, "metar" => $metar, "info_atc" => $info_atc]);


})->name("atc");

Route::prefix("donwloader")->group(function () {
Route::get("secure_auth", function (Request $request) {
Expand Down Expand Up @@ -612,22 +628,6 @@
dd($encrypted, $decrypted);
})->name("crypto");

Route::get("atc/{icao}", function (Request $request) {
$request->merge([
"icao" => $request->icao
]);
$request->validate([
"icao" => "required|size:4"
]);
$atconline = new eventController($request->icao);
$atc = $atconline->get_arrival_departure();
$metar = new metarController();
$metar = $metar->metar($request->icao);
$info_atc = null;
return view("plateforme.atc", ["icao" => $request->icao, "atc" => $atc, "metar" => $metar, "info_atc" => $info_atc]);


})->name("devs.atc");

});

0 comments on commit 1973bf0

Please sign in to comment.