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

Commit

Permalink
final concept atc page
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcaussades committed Jul 23, 2024
1 parent d07dcb3 commit 0f3e958
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 23 deletions.
139 changes: 117 additions & 22 deletions resources/views/plateforme/atc.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,139 @@
</p>
</div>


<div class="container">
<div class="row">
<div class="col-md-6">
<div class="card mt-3">
<div class="card mt-5">
<div class="card-header">
<h5 class="card-title">Metar</h5>
<h5 class="card-title text-primary text-center">Metar</h5>
</div>
<div class="card-body">
<div class="text-center">
<div class="fw-bolder fs-5 text-primary text-center text-uppercase mt-5">{{$metar["metar"]}}</div>
</div>
<p class="card-text">
<div class="text-uppercase">{{$metar["metar"]}}</div>
</p>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<div class="card mt-3">
<div class="card-header">
<h5 class="card-title">Departure</h5>
<div class="col-md-3">
<div class="card mt-5">
<div class="card-header">
<h5 class="card-title text-primary text-center">{{ $atc["departure"]["count"] < 1 ? "Departure" : "Departures" }}</h5>
</div>
<div class="card-body">
<p class="card-text">
<div class="fw-bolder fs-5 text-center text-uppercase">{{$atc["departure"]["count"]}}</div>
</p>
</div>
</div>
<div class="card-body">
<div class="text-center">
<div class="fw-bolder fs-5 text-primary text-center text-uppercase mt-5">{{$atc["departure"]["count"]}}</div>
</div>
<div class="col-md-3">
<div class="card mt-5">
<div class="card-header">
<h5 class="card-title text-primary text-center">{{ $atc["arrival"]["count"] < 1 ? "Arrival" : "Arrivals" }}</h5>
</div>
<div class="card-body">
<p class="card-text">
<div class="fw-bolder fs-5 text-center text-uppercase">{{ $atc["arrival"]["count"]}}</div>
</p>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<div class="card mt-3">
<div class="card-header">
<h5 class="card-title">Arrival</h5>
</div>
<div class="card-body">
<div class="text-center">
<div class="fw-bolder fs-5 text-primary text-center text-uppercase mt-5">{{$atc["arrival"]["count"]}}</div>
</div>

<div class="container mt-2">
<hr>
</div>

<div class="container mt-2">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h5 class="card-title">ATC online</h5>
</div>
<div class="card-body d-flex justify-content-center">
@foreach ( $atc["atc"] as $atcs )
<div class="row ms-2 ps-2">
<div class="card text-white bg-success ">
<div class="card-body">
<h4 class="card-title fs-6 ">{{$atcs["callsign"]}}</h4>
<p class="card-text">
<div class="fs-6 text-center">{{$atcs["frequency"]}} Mhz</div>
</p>
</div>
</div>
</div>
@endforeach
</div>
</div>
</div>
</div>
</div>
</div>

<div class="container mt-2">
<hr>
</div>

<div class="container mt-2">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h5 class="card-title">Plane</h5>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-12">
<table class="table">
<thead>
<tr>
<th>Flight number</th>
<th>Time of departure :</th>
<th>Arrivals </th>
<th>Type Aircraft</th>
<th>Rules</th>
</tr>
</thead>
<tbody>

@foreach ($atc["departure"]["data"] as $departures)
<tr>
<td>{{$departures["callsign"]}}</td>
<td>{{$departures["departureTime"]}}</td>
<td>{{$departures["arrival"]}}</td>
<td>{{$departures["model"]}}</td>
<td>{{$departures["rule"]}}</td>
</tr>
@endforeach

</tbody>
</table>
</div>
<div class="col-md-12">
<table class="table">
<thead>
<tr>
<th>Flight number</th>
<th>Time of arrival :</th>
<th>Type Aircraft</th>
</tr>
</thead>
<tbody>
@foreach ($atc["arrival"]["data"] as $arrivals)
<tr>
<td>{{$arrivals["callsign"]}}</td>
<td>{{$arrivals["eta"]}}</td>
<td>{{$arrivals["wakeTurbulence"]}}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@
$metar = new metarController();
$metar = $metar->metar($request->icao);
$info_atc = null;
return view("plateforme.atc", ["atc" => $atc, "icao" => $request->icao, "metar" => $metar]);
return view("plateforme.atc", ["icao" => $request->icao, "atc" => $atc, "metar" => $metar, "info_atc" => $info_atc]);


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

0 comments on commit 0f3e958

Please sign in to comment.