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

Commit

Permalink
change validation page
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcaussades committed Apr 3, 2024
1 parent a2a5175 commit ed9cbcd
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 11 deletions.
Binary file added public/asset/img/exam/exam.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/asset/img/training/Examen IVAO ATC 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/asset/img/training/training.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 35 additions & 10 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
@extends("index-base")

@section('content')
<?php
use Illuminate\Support\Carbon;
?>

<div class="col-12">

Expand Down Expand Up @@ -92,23 +95,23 @@
<div class="col-4 mt-2">
<div class="card text-white bg-dark">
<div class="card-body">
<h4 class="card-title text-center text-info">Total</h4>
<h4 class="card-title text-center">TOTAL</h4>
<p class="card-text text-center text-info">{{ $whazzup["total"] }}</p>
</div>
</div>
</div>
<div class="col-4 mt-2">
<div class="card text-white bg-dark">
<div class="card-body">
<h4 class="card-title text-center text-info">ATC</h4>
<h4 class="card-title text-center">ATC</h4>
<p class="card-text text-center text-info">{{ $whazzup["atc"] }}</p>
</div>
</div>
</div>
<div class="col-4 mt-2">
<div class="card text-white bg-dark">
<div class="card-body">
<h4 class="card-title text-center text-info">Pilot</h4>
<h4 class="card-title text-center">PILOT</h4>
<p class="card-text text-center text-info">{{ $whazzup["pilot"] }}</p>
</div>
</div>
Expand Down Expand Up @@ -159,7 +162,7 @@

<hr>
<div class="container mt-2">
<h5>IVAO Event FR</h5>
<h5 class="fw-bold">IVAO Event FR</h5>

<div class="row">
@foreach($event_fr as $events)
Expand All @@ -169,27 +172,49 @@
<div class="card-body">
@if ($events[0]["type"] == "training")
@if (ENV('APP_ENV') == 'local')
<img class="card-img-top" src="{{ asset("asset/img/training/traning.webp") }}" alt="">
<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/traning.webp") }}" alt="">
<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" style="width: 18vw; center" src="{{ asset("asset/img/exam/logo_exam.jpeg") }}" alt="">
<img class="card-img-top" src="{{ asset("asset/img/exam/exam.png") }}" alt="">
@else
<img class="card-img-top" style="width: 18vw; center" src="{{ asset("public/asset/img/exam/logo_exam.jpeg") }}" alt="">
<img class="card-img-top" src="{{ asset("public/asset/img/exam/exam.png") }}" alt="">
@endif
@endif
<p class="card-text text-center text-info">{{$events[0]["name"]}}</p>
<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 "> {{$events[0]["started_at"]}} </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>
@endforeach
</div>
</div>

<hr>
<div class="container mt-2">
<h5 class="fw-bold">IVAO Event World</h5>
<div class="row">
@foreach($event_worl as $events)
<div class="col-6 mt-2">
<div class="card text-white bg-dark">
<div class="card-body">
<img src="{{$events['imageUrl']}}" style="width: 100%; height: 80%;" alt="" srcset="">
<h5 class="card-text text-center text-info mt-2">{{$events["title"]}} / {{$events["airports"][0]}} </h5>
<div class=" d-flex justify-content-center">
@for ($i = 0 ; $i < count($events["divisions"]) ; $i++ )
<span class="badge bg-secondary fs-6 ms-2"> {{$events["divisions"][$i]}}</span>
@endfor
</div>
<p class="card-text text-center ">{{$events["description"]}}</p>
<a href="{{$events["infoUrl"]}}" class="float-end"><button class="btn btn-outline-primary">More Information</button></a>
</div>
</div>
</div>
@endforeach
</div>

@endsection
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@

Route::get("event", function (Request $request) {
$event_world = new EventIvaoController();
$event_world = $event_world->get_event_ivao();
$event_world = $event_world->get_event_ivao_RFE_RFO();
return $event_world;

})->name("event.index");
Expand Down

0 comments on commit ed9cbcd

Please sign in to comment.