This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Maj version Event #157
Merged
Merged
Maj version Event #157
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<h5 class="fw-bold">IVAO Event FR</h5> | ||
|
||
<div class="row"> | ||
@foreach($event_fr as $events) | ||
@if (isset($events[0]["type"]) == "training" || isset($events[0]["type"]) == "exam") | ||
<div class="col-6 mt-2"> | ||
<div class="card text-white bg-dark"> | ||
<div class="card-body"> | ||
@if ($events[0]["type"] == "training") | ||
@if (ENV('APP_ENV') == 'local') | ||
<img class="card-img-top" src="{{ asset("asset/img/training/training.png") }}" alt=""> | ||
@else | ||
<img class="card-img-top" src="{{ asset("public/asset/img/training/training.png") }}" alt=""> | ||
@endif | ||
@endif | ||
@if ($events[0]["type"] == "exam") | ||
@if (ENV('APP_ENV') == 'local') | ||
<img class="card-img-top" src="{{ asset("asset/img/exam/exam.png") }}" alt=""> | ||
@else | ||
<img class="card-img-top" src="{{ asset("public/asset/img/exam/exam.png") }}" alt=""> | ||
@endif | ||
@endif | ||
<p class="card-text text-center text-info mt-2">{{$events[0]["name"]}}</p> | ||
<p class="card-text text-center ">{{$events[0]["description"]}}</p> | ||
<p class="card-text text-center "><button class="btn btn-outline-success">{{Carbon::parse($events[0]["started_at"])->format('d-m H:i') }}Z</button> </p> | ||
</div> | ||
</div> | ||
</div> | ||
@endif | ||
@endforeach | ||
</div> | ||
</div> | ||
<hr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div class="container mt-2"> | ||
<h5 class="fw-bold">IVAO Event World</h5> | ||
<div class="row"> | ||
@foreach($event_worl as $eventss) | ||
<div class="col-6 mt-2"> | ||
<div class="card text-white bg-dark"> | ||
<div class="card-body"> | ||
<img src="{{$eventss['imageUrl']}}" style="width: 100%; height: 80%;" alt="" srcset=""> | ||
<h5 class="card-text text-center text-info mt-2">{{$eventss["title"]}} / {{$eventss["airports"][0]}} </h5> | ||
<div class=" d-flex justify-content-center"> | ||
@for ($i = 0 ; $i < count($eventss["divisions"]) ; $i++ ) | ||
<span class="badge bg-secondary fs-6 ms-2"> {{$eventss["divisions"][$i]}}</span> | ||
@endfor | ||
</div> | ||
<p class="card-text text-center ">{{$eventss["description"]}}</p> | ||
<a href="{{$eventss["infoUrl"]}}" class="float-end"><button class="btn btn-outline-primary">More Information</button></a> | ||
</div> | ||
</div> | ||
</div> | ||
@endforeach | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
use Illuminate\Support\Facades\Http; | ||
use Illuminate\Support\Facades\Mail; | ||
use Monolog\Formatter\JsonFormatter; | ||
use Illuminate\Support\Facades\Crypt; | ||
use Illuminate\Support\Facades\Route; | ||
use App\Http\Controllers\AtcController; | ||
use Illuminate\Support\Facades\Session; | ||
|
@@ -602,13 +603,14 @@ | |
|
||
Route::post("create", function (Request $request) { | ||
$github = new GithubController(); | ||
// dd($request); | ||
// $request->merge([ | ||
// "user_id" => Auth::user()->id ?? null, | ||
// "body" => $request->body, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. validation ok |
||
// "link" => $github, | ||
// "label" => $request->label | ||
// ]); | ||
$github = $github->send_issue($request); | ||
$request->merge([ | ||
"user_id" => Auth::user()->id ?? null, | ||
"body" => $request->body, | ||
"link" => $github, | ||
"label" => $request->label | ||
]); | ||
$discord = new DiscordContoller(); | ||
$discord->send_feedback($request); | ||
return to_route("feedback.index")->with("success", "Votre feedback à été envoyé !"); | ||
|
@@ -670,4 +672,13 @@ | |
return $event_world; | ||
|
||
})->name("event.index"); | ||
|
||
Route::get("crypt", function (Request $request) { | ||
$encrypted = Crypt::encryptString('la vie de devs est cool.'); | ||
$decrypted = Crypt::decryptString($encrypted); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. test de cryptage ok |
||
dd($encrypted, $decrypted); | ||
})->name("crypto"); | ||
|
||
|
||
}); | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mise à jour des crytpages